Forum
Album Details Description Box Text Editor Issues
I'm trying to use ckeditor as my editor for my Album Details Description Box. I've modified the template file accordingly but when logged into Perch the editor still shows as the default markitup one.
Here is my code from my template file.
<perch:before>
<div class="galleryofevents_page_header_text"><perch:gallery id="albumTitle" /></div>
<perch:gallery id="description" type="textarea" label="Description" editor="ckeditor" html="true" order="1" size="m" />
<div style="height:20px; width:96%; clear:left;"></div>
<ul class="imagelisting">
</perch:before>
<li>
<a rel="fancybox_album" href="<perch:gallery id="main" />" title="<perch:gallery id="imageAlt" />" rel="album<perch:gallery id="albumID" />">
<img src="<perch:gallery id="small" />" width="<perch:gallery id="small-w" />" height="<perch:gallery id="small-h" />" alt="<perch:gallery id="imageAlt" />" />
</a>
</li>
<perch:after>
</ul>
</perch:after>
Here is a link to a screenshot of the Album Details Description Box. https://killyman.com/perchforum/gallery-album-details-description.jpg
My Perch Diagnostics Basic Info follows.
Perch: 2.5.4, PHP: 5.4.30, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.5.4), assets (2.5.4), perch_events (1.9), perch_gallery (2.5.1), perch_blog (4.1), perch_backup (1.2)
Have you installed the ckEditor plugin?
Is it working on other templates in your site?
Yes to both. ckEditor plugin works fine for page content and my blog app.
Any browser console errors?
Not seeing any errors.
I've solved the problem. The ckeditor is now showing up.
The "album.html" file located in \perch\templates\gallery\ was still referencing markitup.
I'm using a different template named "MAF_c_list_image.html" and thought that was all I had to modify to reference ckeditor, but apparently the "album.html" file is playing a role somewhere in the mix. Once I referenced the ckeditor in this file, the ckeditor appeared.
That's right, all of your changes have to be in the master template as that is the template the creates the admin forms.
On the Template Tags page in the docs for each app we list the master templates, but it is generally the one that is the detail page for that content, so album.html for the display of an album, image.html for the display of an image.