Template Quick Start

Quick start to build a custom template.

Template Generator

Use the Template Generator on the bottom of content type list in SEBLOD 1.x administration. Check your content type. In the template generator, select "content" and click on Generate button.
template-new-etapes-template-generator-900
Save the file on your computer.

Template Creation

Go to SEBLOD 1.x template manager and click on new button.

Write a title 1, select "content" template type and custom template mode 2.

"Install / Update" parameter must be on "From Package Upload" 3.

Select the template file downloaded on your computer with Upload Package parameter 4 (name parameter will be automatically filled, it's define during template generator and use in xml file).

Click on apply 5.

template-new-etapes-from-upload-900
Template is installed 6. Edit the index.php file 7.
template-new-etapes-from-upload-to-edit-index-php-900
Change copyright with yours 8. Insert HTML, PHP, JAVASCRIPT code between your field 9.
template-new-etapes-from-upload-custom-html-900
Click on Apply and close the lightbox.

Assign a template to a content type

Go on content type manager, select the content type which correspond to this custom template, edit it and assign your custom template as default content template 10.
template-new-etapes-assign-template-to-content-type-900
If you use some advanced field like FieldX, GroupX, image look how call the field in your template: http://www.jseblod-cck.com/documentation/templates/list-of-field-attributes.html

If you want to have a custom content template (index2.php) for introtext part which can be displayed on Joomla category blog view read this: http://www.jseblod-cck.com/documentation/how-to/3969-create-your-own-index2php-content-template.html
Lapoux
November 11, 2011
797

About Author

sebastien_lapoux

Sebastien

Lapoux

France
Production Manager @Octopoos.