Re: [TYPO3-english] Rendering shortcuts

2009-11-21 Thread Tomas Mrozek
Alright, try the following code. Notice that I replaced "id" with "class" in the DIV tags as each element on the page gets wrapped so "id" doesn't make sense. temp.myImage = COA temp.myImage { wrap = | 10 = IMAGE 10 { stdWrap { typolink { parameter.field = image_link

Re: [TYPO3-english] Rendering shortcuts

2009-11-20 Thread Paul Johnson
Thanks Tomas... I think I am almost there... I hope. Yes, I am trying to set it up so an image inserted in a page using "insert records" will render exactly as an image place on that page (locally)... I managed to customize the rendering of images on the page, I just want the shortcuts to

Re: [TYPO3-english] Rendering shortcuts

2009-11-20 Thread Tomas Mrozek
> Could you give a quick example how I would, for example, access and wrap > an image field from the shortcut record in the below, then I should be > all set ? It depends on which tt_content type you want to set it for. The content "Insert records" includes tt_content records which again are of c

Re: [TYPO3-english] Rendering shortcuts

2009-11-20 Thread Paul Johnson
Thanks for your help Tomas, this is great. Could you give a quick example how I would, for example, access and wrap an image field from the shortcut record in the below, then I should be all set ? Thanks again! -Paul On Nov 20, 2009, at 4:24 AM, Tomas Mrozek wrote: Please, DO NOT hija

Re: [TYPO3-english] Rendering shortcuts

2009-11-20 Thread Tomas Mrozek
Please, DO NOT hijack threads! Start a new one! > How can I render tt_content records which are of ctype: shortcut ? Copy the way this type of content is set in TypoScript (see tt_content.shortcut). In short, use the RECORDS object. But remember that in the "Insert records" content element (= sh

[TYPO3-english] Rendering shortcuts

2009-11-19 Thread Paul Johnson
How can I render tt_content records which are of ctype: shortcut ? temp.shortlist = CONTENT temp.shortlist { table=tt_content wrap=| select{ where=colPos=2 } renderObj = COA renderObj.wrap = | renderObj { ... 5 = TEXT 5 { if.value = shortcut if.equals.field