Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At the moment FCKEditor integration has no support for templates. It's one things to add in the button but more complex to define the path to custom templates. Is this feature planned for 2.0 version?
Comment | File | Size | Author |
---|---|---|---|
#3 | wysiwyg_templates.tar_.gz | 2.06 KB | wouters_f |
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: guybedford commented