Forums / Developer / create new template

create new template

Author Message

Ahmed Zakaria

Monday 22 August 2011 4:32:14 am

Hi all

I hope to be fine

I am beginner in ez publish and i need to learn more and more, it is seem powerful and stable CMS

but i am still can not work well with template

i need create new template for the following task (e.g artis.tpl)

 

   Create a new content class called Artist with the following fields.

a.        Artist name (text line).

b.       Biography (text block).

c.       Photo (image).

d.      Is featured (check box).

3-      Under “Home” node in the content structure tree create a new folder called Artists.

4-      Inside the folder you created above, create five artist objects (you can enter any dummy text, lorem ipsum for example), three out of the five artists should be featured artists (by having the checkbox ticked) .

5-      Create a new template named artists.tpl under the proper extension.

1-      Inside artists.tpl, write the required code to loop on the folder artists and display only the name of the featured ones along with their biography and photos.

 

I am aleardy create the class (artist) with its attributes but i can not know to to create the template that achieve that

 

Thanx in advanced

Hamdi Laadhari

Tuesday 23 August 2011 2:42:27 am

read the whole ez documentation http://doc.ez.no/eZ-Publish/Technical-manual/4.x

Certified eZ Publish Entreprise 4.5
http://www.laadhari.fr