|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello!
Is there a way to use the name of the page-template name in use in order to put a condition with TS. This example works OK: [treeLevel = 1] page.headerData.5 = IMG_RESOURCE page.headerData.5.file { import.data = levelmedia: 2,slide import = uploads/media/ import.listNum = 0 # width = 270 # height= 300 } ..... ) [end] Now I want something like: [templateName = Home] page.headerData.5 = IMG_RESOURCE page.headerData.5.file { import.data = levelmedia: 2,slide import = uploads/media/ import.listNum = 0 # width = 270 # height= 300 } ..... ) [end] With 'templateName' I refer to a TemplaVoila template-object. Hope I made myself clear. Many thanks in advance!!! Best regards, -brt Bert Hiddink hiddink (AT) bendoo (DOT) com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi Bert,
On 10/3/07, Bert Hiddink <hiddink (AT) bendoo (DOT) com> wrote: > Hello! > > Is there a way to use the name of the page-template name in use in order > to put a condition with TS. > > This example works OK: > > [treeLevel = 1] > page.headerData.5 = IMG_RESOURCE > page.headerData.5.file { > import.data = levelmedia: 2,slide > import = uploads/media/ > import.listNum = 0 > # width = 270 > # height= 300 > } > .... > ) > [end] > > > Now I want something like: > > [templateName = Home] > page.headerData.5 = IMG_RESOURCE > page.headerData.5.file { > import.data = levelmedia: 2,slide > import = uploads/media/ > import.listNum = 0 > # width = 270 > # height= 300 > } > .... > ) > [end] > > With 'templateName' I refer to a TemplaVoila template-object. > > Hope I made myself clear. Many thanks in advance!!! I don't know of any way that that would be possible, but you can use the TS datatype 'gettext' to retrieve information about the current template (or the last template in the rootline). Check the TV newsgroup for a thread titled "how to map a body attribute" for a working example of how to change the body tag based on the current TV template. -- Christopher Torgalson http://www.typo3apprentice.com/ _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] who i can help me convert hbook template into ave-guestbook template | Roelof Wobben | typo3-english@lists.netfielders.de | 0 | 27.05.2007 17:37 |
| [TYPO3] template selector | Bas van der Togt | typo3-english@lists.netfielders.de | 3 | 30.01.2007 20:11 |
| [Typo3-UG France] Template et root template | Olivier Laurent | typo3-france@lists.netfielders.de | 0 | 23.03.2005 16:55 |
| [Typo3-UG France] Template et root template | Pages, Benoit | typo3-france@lists.netfielders.de | 0 | 23.03.2005 16:28 |
| [Typo3-UG France] Template et root template | Olivier Laurent | typo3-france@lists.netfielders.de | 0 | 23.03.2005 16:20 |