WYSIWYG HTML and / or 'token' insert menu?
2 posts by 2 authors in: Forums > CMS Builder
Last Post: September 28, 2009 (RSS)
By (Deleted User) - September 27, 2009
Hi,
I'm just getting up to speed with CMSB - trying it out on my own site first before I offer it as a solution to a major new client (thank you for the recent special pricing!). I've been scouring the forums and documentation for two solutions... no luck so far. Both of these could be add ons / plugins / modifications to the TinyMCE WYSIWYG:
1. A dropmenu that automatically inserts HTML snippets - especially, but not only - preformatted tables with CSS tags, and
2. A dropmenu for inserting 'tokens' - references to data stored in other records - so that the resultant PHP page would then be automatically updated when the data in these other records is updated (sitewide copyright date, etc.)
Has someone solved these already? Can you point me to related articles / solutions? I have looked at the CMSB cookbook, it appears to have much useful info and I will buy it soon, but I found nothing in the index that seemed to address these specifics.
Thank you!
I'm just getting up to speed with CMSB - trying it out on my own site first before I offer it as a solution to a major new client (thank you for the recent special pricing!). I've been scouring the forums and documentation for two solutions... no luck so far. Both of these could be add ons / plugins / modifications to the TinyMCE WYSIWYG:
1. A dropmenu that automatically inserts HTML snippets - especially, but not only - preformatted tables with CSS tags, and
2. A dropmenu for inserting 'tokens' - references to data stored in other records - so that the resultant PHP page would then be automatically updated when the data in these other records is updated (sitewide copyright date, etc.)
Has someone solved these already? Can you point me to related articles / solutions? I have looked at the CMSB cookbook, it appears to have much useful info and I will buy it soon, but I found nothing in the index that seemed to address these specifics.
Thank you!
Re: [DomainTeks] WYSIWYG HTML and / or 'token' insert menu?
By Dave - September 28, 2009
Hi DomainTeks,
We use the open-source tinyMCE component for the WYSIWYG and it has some extensive documentation here:
http://wiki.moxiecode.com/index.php/TinyMCE:Index
You can find CMS Builders tinymce config settings in: cmsAdmin/lib/wysiwyg.php
For HTML snippets, you could try the templates plugin described here:
http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template
It's the 4th last button on the bottom row in the full demo here:
http://tinymce.moxiecode.com/examples/full.php
And for tokens that reference other data and get updated with that data... If you don't need that data embedded in the wysiwyg content I'd recommend having it as a separate field (or having multiple viewers on the same page and loading it from a separate section).
Or, if you absolutely need it in the wysiwyg you can always use placeholders (like #this# or using any format you like) and then replacing them with something else using PHP.
Note that we don't typically provide free support for custom wysiwyg configurations, but hopefully this will point you in the right direction.
Hope that helps!
We use the open-source tinyMCE component for the WYSIWYG and it has some extensive documentation here:
http://wiki.moxiecode.com/index.php/TinyMCE:Index
You can find CMS Builders tinymce config settings in: cmsAdmin/lib/wysiwyg.php
For HTML snippets, you could try the templates plugin described here:
http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template
It's the 4th last button on the bottom row in the full demo here:
http://tinymce.moxiecode.com/examples/full.php
And for tokens that reference other data and get updated with that data... If you don't need that data embedded in the wysiwyg content I'd recommend having it as a separate field (or having multiple viewers on the same page and loading it from a separate section).
Or, if you absolutely need it in the wysiwyg you can always use placeholders (like #this# or using any format you like) and then replacing them with something else using PHP.
Note that we don't typically provide free support for custom wysiwyg configurations, but hopefully this will point you in the right direction.
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com