(solved) Für CP-Template: Ausgabe Artikel-ID?

Bitte alle templatebezogenen Beiträge in diesem Forum veröffentlichen.

(solved) Für CP-Template: Ausgabe Artikel-ID?

Postby santscho on Tue Aug 12, 2008 03:31

Bastle gerade an einem neuen Teaser-Template (Quick Jump Menü). Um Konflikte zu vermeiden, soll dem CSS-Form-Container dynamisch eine ID zugeteilt werden.

id="{TITLE}" ->evtl. Problem wegen Leerzeichen
id="{DATE}" ->kann doppelt vorkommen

Am liebsten würde ich etwas wie id="{CP-ID}" verwenden. Diese ID ist nur einmal vergeben.

Kann mittels RT die CP-ID ausgegeben werden?
Last edited by santscho on Tue Aug 12, 2008 14:18, edited 1 time in total.
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org
User avatar
santscho
 
Posts: 814
Joined: Mon Apr 02, 2007 06:56
Location: Singapore

Re: Für CP-Template: Ausgabe Artikel-ID?

Postby flip-flop on Tue Aug 12, 2008 08:07

Contentpart ID: {CPID} :idea:

Article ID: {ARTICLEID} (bisher nur im Listenmodus)

Category ID: $GLOBALS['content']['cat_id']
>> DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
flip-flop
 
Posts: 5474
Joined: Sat May 21, 2005 19:25
Location: HAMM (Germany)

Re: Für CP-Template: Ausgabe Artikel-ID?

Postby santscho on Tue Aug 12, 2008 10:37

Danke! Werds gleich ausprobieren. Dann gibt es schon bald Ein QuickJump Menü (basiert auf dem Teaser CP) zum runterladen.
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org
User avatar
santscho
 
Posts: 814
Joined: Mon Apr 02, 2007 06:56
Location: Singapore

Re: Für CP-Template: Ausgabe Artikel-ID?

Postby santscho on Tue Aug 12, 2008 11:01

Natürlich ein Volltreffer ins Schwarze! Jetzt habe ich auch den Filelist Selector abgeändert. Jetzt kann der Dropdown-Downloader mehrmals auf der Seite verwendet werden. Das spart Platz!
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org
User avatar
santscho
 
Posts: 814
Joined: Mon Apr 02, 2007 06:56
Location: Singapore


Return to phpwcms Templates Deutsch

Who is online

Users browsing this forum: Alexa [Bot] and 0 guests