[TYPO3-english] dynamic content snippets

Lukas Stancik webmaster at robe.cz
Wed Jan 19 21:45:10 CET 2011


Hi Mario,

I'm using a technique described here:
http://buzz.typo3.org/people/soeren-andersen/article/inserting-content-elements-in-the-rte/

It proved to be very useful, maybe it could solve your problem?

Regards,
Lukas Stancik

Dne 15.1.2011 11:29, Mario Šargač napsal(a):
> Hello,
>
> I am trying to construct a weird content blocks and before I do anything
> stupid, I wanted to share thought with you here on the list.
>
> There are some parts in the content that would repeat all over the site,
> like names and titles of people, etc,... and I was thinking of creating
> a content block on one place, where I would define such "constants" (I
> was also thinking of using Constants Editor for that... but I am not
> sure about that anymore).
>
> Anyway in that block I would define content variables, so I can edit
> them later on one place (there might be hundreds of records). The text
> would look like this:
> --------------------
> (VARIABLE) (VALUE)
> headmaster = Jon Bauer
> opening_hours = 13:00 - 15:30
> something_else = <strong>Very important</strong>
> ...
> --------------------
>
> I would use then these "variables" wherever I'd need them, like in
> HtlmArea for instance, like this:
> --------------------
> The headmaster for this season is {headmaster},... Library's opening
> hours are: {opening_hours}.
> --------------------
>
> What do you think about the idea and what would be right approach to
> achieve this?
>
> Best,
> Mario



More information about the TYPO3-english mailing list