redtoad Reply #1, 11 months, 1 week ago
Yeah, I know. someone will thunk me for even bringing this up. However this is super easy and I thought I would share.
1. Disable htmlentities in your template. I was using smoothgallery so I went into assets/maxigallery/templates/gallerypicturetpl and took out the :htmlent
it went from
to
then in assets/snipplets/maxigallery/manageoutertpl.html
I pasted this. At the top.
I also added closing body and html rags at the bottom of the tpl file.
so now my manager looks thusly (screenshot attached below)
this makes it so my happy little business owner can add his own links to his photo captions without knowing html. Yay.
1. Disable htmlentities in your template. I was using smoothgallery so I went into assets/maxigallery/templates/gallerypicturetpl and took out the :htmlent
it went from
[+maxigallery.embedtype:is=`smoothgallery`:then=` <div class="imageElement"> <h3>[+maxigallery.picture.title:htmlent+]</h3> <p>[+maxigallery.picture.descr:htmlent+]</p> <a href="[+maxigallery.picture_link_url+]" title="[+maxigallery.strings.click_to_zoom+]" class="open"></a> <img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" /> <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" /> </div> `+]
to
[+maxigallery.embedtype:is=`smoothgallery`:then=` <div class="imageElement"> <h3>[+maxigallery.picture.title+]</h3> <p>[+maxigallery.picture.descr+]</p> <a href="[+maxigallery.picture_link_url+]" title="[+maxigallery.strings.click_to_zoom+]" class="open"></a> <img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" /> <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" /> </div> `+]
then in assets/snipplets/maxigallery/manageoutertpl.html
I pasted this. At the top.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script type="text/javascript" src="assets/plugins/tinymce/jscripts/tiny_mce/tiny_mce.js" ></script > <script type="text/javascript" > tinyMCE.init({ mode : "textareas", theme : "advanced", //(n.b. no trailing comma, this will be critical as you experiment later) theme_advanced_buttons1 : "bold,italic,underline,link,unlink,removeformat", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true }); </script > </head><body>
I also added closing body and html rags at the bottom of the tpl file.
so now my manager looks thusly (screenshot attached below)
this makes it so my happy little business owner can add his own links to his photo captions without knowing html. Yay.