This content has been marked as final.
Show 3 replies
-
1. Re: Can Contribute edit a DW template and allow it to propagate?
ThinkInk Mar 26, 2009 4:01 AM (in response to TrentSC)Users of Contribute cannot update templates.
The 'breathtakingly simple approach' could be to use an SSI (server side include) in your template.
Example php: <?php include("inc.included-file.php"); ?>
You provide your user with an url to the include file, so he can edit the file in Contribute.
NB: works also great with menu's (make an include file with just an unordered list, style it with css, and provide your user with the url to the menu). -
2. Re: Can Contribute edit a DW template and allow it to propagate?
TrentSC Mar 26, 2009 4:14 AM (in response to TrentSC)Thanks for the helpful and extremely prompt suggestion.
For the most part, these are fairly straightforward news story links - a short para with a thumbnail image and a headline, linking to the main news page.
I think I need to go and do some research on SSIs and see if I can get my head around them. Are they relatively straightforward?
Cheers -
3. Re: Can Contribute edit a DW template and allow it to propagate?
ThinkInk Mar 27, 2009 12:46 AM (in response to TrentSC)Do you want more straightforward then this: <?php include("inc.included-file.php"); ?> ?
That's all there is to it.
Your files need the extension .php, but can contain all the html you want, so just renaming your pages from .html to .php is enough. Then you can call the indluded files like I suggested: <?php include("inc.included-file.php"); ?>

