Page 1 of 1
Template Thumbnail
Posted: Mon Nov 21, 2005 9:39 pm
by lemkepf
I plan on setting up a CMS for a company with many pre-built templates installed for them so they can go ahead and just use them whenever.
What i would like to do is something like "joomla" where each template can have a small thumbnail of it for quick reference of what it is. Is there a way we can do something similar without hacking the code to bits? Can anyone think of a good way to do this?
Re: Template Thumbnail
Posted: Tue Nov 22, 2005 4:18 am
by estring
lemkepf, I'm not sure if you can have a thumbnail for a main layout template, but if you want to have different templates with thumbnails for content you can use the templates option within FCKeditor. From within CMSMS, there is a FCKeditor template XML file where you can define your own templates. It's located here:
\modules\FCKeditorX\FCKeditor\fcktemplates.xml
You can define multiple templates within the xml file. Your template code is placed within the CDATA section of the Html node of the XML document and you can add a description and image for your customer to pick from when creating content within FCKeditor.
Each template node represents one template. Here's an excerpt from fcktemplates.xml:
Code: Select all
<Template title="Image and Title" image="template1.gif">
<Description>One main image with a title and text that surround the image.
</Description>
<__html>
<![CDATA[
<img style="MARGIN-RIGHT: 10px" height="100" alt="" width="100" align="left"/>
<h3>Type the title here</h3>
Type the text here
]]>
</__html>
</Template>
To use a template within FCKeditor, click on the templates icon. Hope this helps.
-estring