Re[2]: Caching all but part (fixed, ignore previous message)

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re[2]: Caching all but part (fixed, ignore previous message)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2613@lists.php.net to get a copy of this message
I've done somehting similar to this: <%insert script="insert_site_functions.php" name="userLoggedIn" true=" %3Ca+class%3D%22submenu%22+href%3D%22{$site_url}%3Ffunc%3Dcore%3A%3Aps_user -%3Elogout%22%3ELogout%3C%2Fa%3E%3Cbr%3E " false=" %3Ca+class%3D%22submenu%22+href%3D%22{$site_url}community%2Flogin.php%22%3E Login%3C%2Fa%3E%3Cbr%3E "%> So, the "userLoggedIn function inserts either the 'true' or the 'false' part if the user is logged in / not logged in. This works, but since the true and false parts contains " and other characters, I have to write it URL-encoded. Is there a better way to do this, so that the true and false parts can still be written in clear text? (I don't want the html as a part of the function!) /Linus (Sorry, Monte - didnt mean to send it to your personal mail, still didnt get used to this email program) On Tue, 29 Jan 2002 23:59:32 -0600 Monte Ohrt <monte@ispi.net> wrote: > check out the insert function, see if that could help. > > Patrick Quinn-Graham wrote: > > > (sorry, it appears outlook screwed up my digital sig) > > > > I want to cache all of a page except a little bit (wich is a simple > > {if}{else}{/if} block). > > > > Is there a way to do this? > > > > Thanks. > > > > Patrick. > > > > --- > > 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/ > > > --- > You are currently subscribed to smarty as: linus@mccabe.nu > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ > >

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