Suggest: documentation update
Alain Williams <[email protected]> Tue, 27 Jun 2006 09:59:48 +0100
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Organization | Parliament Hill Computers Ltd |
| Message-ID | <[email protected]> |
The page :
http://smarty.php.net/manual/en/language.modifier.default.php
This is the one that talks about |default:
I was doing a web page & wanted to normally use one variable but occasionally another,
I found that it is possible for the default to be a variable, this might make a nice
extra example:
To sometimes have a different title in the browser toolbar:
<HEAD><TITLE>{$tooltitle|default:$title|escape:"html"}</TITLE></HEAD>
<BODY>
<H1>{$title|escape:"html"}</H1>
...
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include <std_disclaimer.h>
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php