[TYPO3] content items to be wrapped with a div if is a text item but not if it's an image
John Kavanagh
john.kavanagh at roomthree.com
Thu Feb 8 15:43:35 CET 2007
Hi Dmitry,
Thanks a million for that. One small question: do I paste my changes
into the template setup or do I change the setup.txt file itself?
Thanks,
John.
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Dmitry
Dulepov
Sent: 08 February 2007 14:34
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] content items to be wrapped with a div if is a text
item but not if it's an image
Hi!
John Kavanagh wrote:
> I am editing a typo3 site that doesn't have templavoila installed and
am
> trying to get the following result:
>
> In the right hand column (colPos=2) I want each content item to be
> wrapped with a div if is a text item but not if it's an image.
>
> I have looked at all the guides and the messages and I can't find a
way
> to get it to work (I am a typoscript beginner).
Take a look into typo3/sysext/css_styled_content/static/setup.txt. It
contains typoscript for various content types. I think you need to
modify some of wrap properties depending on the type. This is very
similar to what you did in your script but better do it using
css_styled_content properties.
There you also can find code for getting content for right column. You
need not to write it all manually, reuse existing and modify what you
need to modify. Also it would be a very good experience with typoscript!
--
Dmitry Dulepov
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list