{TEASER_EX} Replacement tag v1.90 - 10.1.2007

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

{TEASER_EX} Replacement tag v1.90 - 10.1.2007

Post by erich_k4 »

{TEASER_EX} Replacement tag

Use it for news-sections, calendar of events etc.

VERSION: 1.90 - 10.1.2007

Whats new in this version:

* table less rendering, all column formating is now done by css
* some bugfixes



Tested with phpwcms ver 1.2.3 - 1.2.8, (standard .phtml) rewrite url on and off

Req. MySQL 4.0.0 or newer and phpwcms ver >= 1.2.x DEV!

TeaserEX-Tag-Generator:
http://www.kmedv.at/wcms/index.php?teaser_ex_generator

DEMO:
http://www.kmedv.at/wcms/index.php?teaser_ex_samples

Sites using teaser_ex RT (afaik)
http://www.stichtingflash.nl/
http://www.vdj.de
http://www.friul.it/
http://www.aetmis.gouv.qc.ca
http://www.fitmess.com/index.php?id=7,0,0,1,0,0
http://www.swisscopter.net/index.php?media
http://www.nccbmwcca.org
http://www.okobo.com/cms/index.php
http://www.hegg.li
http://www.fzd.kom.pl/



INSTALL:
Download teaser_ex from
http://www.kmedv.at/wcms/index.php?download

extract the zip-file and copy the file reptag_teaser_ex.php to
phpwcms_template\inc_script\frontend_render

FORMATING:
CSS Classes for version 1.9x

Code: Select all

.teaserExContainer       { 
                                 width:100%;
                                 font-size:9px;
                                 color:gray;
                               }
      
.teaserExColumnContainer {
                                 float:left;
                                 margin-right:-1px;
                               }
      
.teaserExColumnSingle    {
                                 padding-right:8px;
                               }
      
.teaserExColumnLeft      {
                                border-right:1px solid red;
                                 padding-right:8px;
                               }
      
.teaserExColumnMiddle    {
                                 border-left:1px solid red;
                                 border-right:1px solid red;
                                 padding-right:8px; 
                                 padding-left:8px;
                               }

.teaserExColumnRight     {
                                 border-left:1px solid red;
                                 padding-left:8px;
                               }

CSS Classes for version 1.8x

Code: Select all

#teaserTable    {
                         border:0px; 
                         border-collapse:collapse;
                       }

#teaserTableLeftCell    {
                                    border:0px;
                                    padding-right:4px;
                                  }


#teaserTableRightCell   {
                                     border-left:1px solid C4C4C4;
                                     padding-left:4px;
                                   }

#teaserTableLeftCell_Horizontal  {
                                                  background-color:gold;
                                                  border:1px solid #C4C4C4;
                                                  padding-left:4px;
                                                }

#teaserTableRightCell_Horizontal  {
                                                    background-color:lime;
                                                    border:1px solid #C4C4C4;
                                                    padding-left:4px;
                                                  } 

#teaserTable_Right_Empty_Cell_Horizontal { background-color:gray; }
#teaserTable_Left_Empty_Cell_Horizontal  { background-color:silver; }
Pagination CSS-classes:
#teaserPageNav
#teaserPageNavItems


HISTORY
http://www.kmedv.at/wcms/index.php?history

Suggestions and Bugreports welcome .....

Greetings ERICH
Last edited by erich_k4 on Wed 10. Jan 2007, 19:47, edited 51 times in total.
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

New improved version is available, see above...

Erich
Jens*
Posts: 56
Joined: Fri 18. Jun 2004, 18:53

Post by Jens* »

Hi,

maybe i do something wrong but it don't work

{TEASER_EX:studium|3:5:default:0:Seite}

Jens
Mehlinger
Posts: 76
Joined: Mon 22. Nov 2004, 14:49
Contact:

Post by Mehlinger »

Igendwie krieg ich da immer ein {SPACER:1x5} (erscheint so geschrieben auf dem Screen) rein. Weiß jemand wo das herkommt?
jscholtysik

Post by jscholtysik »

Hi Jens*


look at the syntax:
EXAMPLE:
{TEASER_EX:en_news|10;en_fairs|3:5:default:0:Seite}
shows 10 articles from the caterfory en_news, 3 articles from category en_fairs, 5 articles per page, default sortorder, no category name and Pagelinktext = Seite
You don't have used the right syntax of all fields...


Joachim
Mehlinger
Posts: 76
Joined: Mon 22. Nov 2004, 14:49
Contact:

Post by Mehlinger »

Jens* wrote:Hi,

maybe i do something wrong but it don't work

{TEASER_EX:studium|3:5:default:0:Seite}

Jens
Hi Jens,

ich habs bei mir so eingebaut:

Code: Select all

{TEASER_EX:index|-1:20:article_tstamp|DESC:0:Seite:1}
und es läuft.
Jens*
Posts: 56
Joined: Fri 18. Jun 2004, 18:53

Post by Jens* »

danke :)
Mehlinger
Posts: 76
Joined: Mon 22. Nov 2004, 14:49
Contact:

Post by Mehlinger »

Erscheinen bei dir auch Bilder? Bei mir werden nämlich keine Bilder angezeigt. Bei http://www.kmedv.at/sbm/cms/index.php?en_news geht es ja.

Hat viell. jemand nen kleinen Tipp?
Jens*
Posts: 56
Joined: Fri 18. Jun 2004, 18:53

Post by Jens* »

Mehlinger
Posts: 76
Joined: Mon 22. Nov 2004, 14:49
Contact:

Post by Mehlinger »

Ich hab die Bilder best. Kategorien zugeordnet und sie direkt in die versch. Vorlagen eingesetzt. Damit wirds wohl nicht gehen...

Bleib lieber bie der Lösung mit Related-RT mit Datum. :D
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

stupid question

Post by volkman »

sorry for the stupid question, just starting with phpwcms. Where do i have to put the teaser-string? Article, article-template or list-template.
i looked at the example-site, exact the function i was looking for.
all my tests always showed up the teaser as plain text.
think i have been missing something.javascript:emoticon(':cry:')

would be great if you could help out

volkman :cry:
tinoo
Posts: 311
Joined: Thu 16. Jun 2005, 11:16
Location: Zürich, Switzerland
Contact:

Post by tinoo »

Hi ERICH

Pagelink doesn't work at my site. Look here:
http://www.hegg.li/phpwcms/index.php?test

thnx
Greetz, tinoo
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

What's your php version? (Should be at least 4.1.0)
register_globals on or off?
Webserver? Apache, IIS ?

Erich
tinoo
Posts: 311
Joined: Thu 16. Jun 2005, 11:16
Location: Zürich, Switzerland
Contact:

Post by tinoo »

erich_k4 wrote:What's your php version? (Should be at least 4.1.0)
register_globals on or off?
Webserver? Apache, IIS ?

Erich
PHP Version 4.3.10
register_globals On (should be off, i know)
Webserver Microsoft-IIS/6.0
Greetz, tinoo
creep
Posts: 10
Joined: Tue 28. Dec 2004, 15:53

Post by creep »

some problem in

PHP Version 4.3.10
Apache
RewriteEngine On

and {TEASER_EX} plasement in indexpage
Post Reply