Re: Smarty news/article admin?

From: Date: Fri, 08 Mar 2002 16:05:15 +0000
Subject: Re: Smarty news/article admin?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2981@lists.php.net to get a copy of this message
If it is static article content, use a prefilter to parse your template. Parsing is an expensive operation, so make it happen once at compile time. I assume you need this parsing so that your content doesn't need to contain the actual HTML entities to create a link? Peter Bowyer wrote: > > At 01:39 AM 3/9/02 +1000, Jimmy Harlindong wrote: > >Is there something that can maintain news / articles (with embedded > >images - not just text), and can be easily integrated with smarty (and > >the rest of my site) ? > >Perhaps the admin area can be stand alone but the news / article index / > >content itself would ideally be integrated with smarty... > > I'm working on something like this right now. Unfortunately it isn't > finished yet (got to sleep sometime...) but I'm willing to share the code > if you think it may be useful. > > Related, does anyone know where the regex in Smarty to parse > {foo key1='val1' key2=val2} and return the array > key1 => 'val1' > key2 => 'val2' > ??? > > I want to find this as it seems silly to use Smarty to parse my > news/article text for things like [img id=56 align=left] as I'm having to > parse it outside of smarty anyhow (when we can write custom Smarty > functions like [url]http://foo.bar[/url] (eg with closing tags) > I'll be > _extremely_ happy) so I thought one function to do all the parsing would be > better. Of course, as Smarty's already initialised I guess it wouldn't be > much overhead - and I can now use the eval function :-) > > Regards, > Peter. > > -- > Maple Design - http://www.mapledesign.co.uk > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

« previous php.smarty.general (#2981) next »