RE: [SMARTY] Re: Dreamweaver template + Smarty template

From: Date: Thu, 19 May 2005 19:17:42 +0000
Subject: RE: [SMARTY] Re: Dreamweaver template + Smarty template
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12640@lists.php.net to get a copy of this message
Tak a look at this: http://smarty.incutio.com/?page=SmartyDreamweaver -----Message d'origine----- De : pete M [mailto:pmorgan@ukds.net] Envoyé : 19 mai 2005 13:20 À : smarty-general@lists.php.net Objet : [SMARTY] Re: Dreamweaver template + Smarty template Maximillian Schwanekamp wrote: > Hello all, > > I'm building a smarty-based site that will likely get edited by non-tech > users via DWMX 2004 and/or Contribute 3. I'm using smarty include > statements for each template file, for the html head and a standardized > masthead, and a standard footer. I'm adapting from supplied Dreamweaver > templates, so now my template markup looks like this, for example: > {* smarty *} > {include file="inc/head.tpl.html"} > > <!-- InstanceBeginEditable name="Content" --> > <h1>Login</h1> > <div id="content"> > <!-- ==== HTML code here ==== --> > </div> <!-- content --> > <!-- InstanceEndEditable --> > > {include file="inc/foot.tpl.html"} > {* /smarty *} > > Is there some easy way to configure DWMX to display the contents of > those includes so that the non-tech users don't freak out and wonder why > the site looks broken when they edit? My first though was to put in the > contents of those template files inside Smarty comments, e.g.: > <!-- InstanceEndEditable --> No can do !!! sorry > > {include file="inc/foot.tpl.html"} > {* > <div id="nav"> > <ul>....</ul> > </div> > </div><!-- /pagewrap --> > </body> > </html> > *} > > But while this leaves my include functional, it seems rather a wasted > effort. Must I use the DW Templates functions? I'm not real fond of DW > anymore, so I would prefer a solution that would allow me to use a text > editor while working well enough for DW users too. Any suggestions are > most appreciated. > -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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