logo       

Re: [SMARTY] replacing tags: msg#00440

php.smarty.general

Subject: Re: [SMARTY] replacing tags

Hello,

On Wed, Jan 29, 2003 at 09:42:42PM +0100, Uros Gruber wrote:
> Hi,
>
> I tried but it does not solve my problem. It's hard to
> understand I know, but please try.

You know that prefilters are only applied before compilation of the
page, and *not* before display? so you can not setup your data inside
a pre-filter. but you can perhaps replace all occurrances of
"{$block_[foo]}" with "{loadblock name=[foo]}" and setup the and
output the data inside your custom loadblock-function.

> --
> bye,
> Uros
>
> Wednesday, January 29, 2003, 7:21:10 PM, you wrote:
>
> MM> Hello,
>
> MM> On Wed, Jan 29, 2003 at 05:43:52PM +0100, Uros Gruber wrote:
> >> Hi!
> >>
> >> Here is my scenario. I have some templates. For example
> >>
> >> header.tpl, index.tpl, someblock.tpl, footer.tpl
> >>
> >> Then i made some engine to generate all data.
> >>
> >> Now i'm stucked and i don't know how to solve my problem.
> >>
> >> Let say i want to generate some dynamic data and show this in
> >> index.tpl.
> >>
> >> For this i can use assign before i fetch or display with
> >> smarty. But i have many those index.tpl like files with very
> >> different tags.
> >>
> >> I also have list of all possible tags in all those files. So
> >> my designer can't use any tag he want. I tell him what he can
> >> use and then he use what ever he need. Sometimes one tag,
> >> sometimes 3 or four or maybe even more.
> >>
> >> Those tags are just placement tags for output of some modules
> >> i made in my engine. So designer specify where to put this
> >> data.
> >>
> >> Now my engine works that it generate output of all those
> >> modules. This how i have all replacements for all possible
> >> smarty tags. But i have more and more modules and generating
> >> all outputs started to slow down everything.
> >>
> >> I was thinking of getting list of those special tags used in
> >> all templates needed for outputing my page. But i don't now
> >> how to get this from smarty. I also use special naming like
> >> {$block_nameofblock}
> >>
> >> Can somebody help me or have any ideas.
>
>
> MM> your setup sounds *really* strange, but if i understand you right
> MM> you need a prefilter-plugin for your template:
>
> MM> http://smarty.php.net/manual/en/plugins.prefilters.postfilters.php
>
> MM> have fun
> MM> messju
>
> >> --
> >> tia,
> >> Uros
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise