1 person found this helpful
One cannot edit the templates (.dwt) using Contribute. We can only play with the contents within inside editable region of the page created using the templates.
Hi Dominic and thanks for your response. This is as I feared and, I think, a serious failing in contribute. I might add this to the wishlist for the next version.
Seems that the answer is here http://forums.adobe.com/thread/88028. Found it a little while ago, but was hoping that CS5 had a better solution available. Not my ideal solution to have php includes and make all pages PHP in that I can see it having a few traps to get it setup just right and it will make it harder for me to update the site locally and check things out before uploading to the live site but I can see that it's workable. Cut the widget code from the main template, put it in its own file and replace the widget code with the PHP include. Hmmm
Anyone see any issues with the solution I linked to above?
Thanks Dominic. Very useful.
Just for completion and in case someone else finds this in the future...
Having played around with this, I really don't think there is a workable way to do it with the Spry Menu Object. Basically for the spry object component to be editable in its own file it needs code which will end up in the Body of the HTML, when it needs to be in the Head part of the HTML file. The more I played with trying to get it to work, the more complicated it became....
It is possible to put the list component of the Spry menu into an include file and tell the client to add to the list at the right <UL> level, but that is not really a satisfactory solution.