Re: Dreamweaver template + Smarty template

From: Date: Thu, 19 May 2005 17:20:08 +0000
Subject: Re: Dreamweaver template + Smarty template
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12639@lists.php.net to get a copy of this message
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.


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