|
Posted by pete M on 09/30/08 11:16
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.
>
Navigation:
[Reply to this message]
|