Closed (works as designed)
Project:
Wysiwyg API template plugin
Version:
7.x-2.9
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2009 at 16:23 UTC
Updated:
24 Sep 2013 at 20:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunMoving to http://drupal.org/project/wysiwyg_template
Comment #2
jenlamptonI need to do some research to see how the FCK Editor supports templates, but I would like to update the way this WYSIWYG API template plugin handles the UI for template file location anyway. This seems like a good reason to dig back in. :-)
Will get to it as soon as I can.
Jen
Comment #3
wouters_f commentedThis nifty module enables you to let the users add/remove/update their own templates.
Probably there are some imperfections, please point them out for me.
Attached you may find code to have a content type html_template
contenttype
-> html_template
fields
-> body is used to save the html in
-> filename is the file of the html used by wysiwyg.
functionalities
-> writes templates.js index file
-> writes template files to specified folder.
Comment #4
guybedford commentedThanks for the code. Looks interesting, but there is already an admin interface for templates being worked on here -
http://drupal.org/node/922842
We're running the templates through the database rather than files and have also included additional editor support.
You have got me thinking again about whether we should be using nodes for the templates though.
Comment #5
shaneherrington commentedWould be nice if when you updated the template content all nodes that use that template were updated to reflect the changes. Like the module as is but if I have to manually update 100+ pages every time I update a template... there's not much point for the template to begin with. No?
Comment #6
guybedford commented