Re: Creating Custom Content Objects in Jahia 5.0
Michel Romy <[email protected]> Mon, 24 Sep 2007 12:10:44 +0200
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Keith, Basically all content structure you have in your site is made through templates. Its in the templates that you define how your containerlists and containers should be constructed, then this template will be used to create pages. In the case of the "add box" button, its only a template which calls different pieces of jsp code depending on the kind of content you want to add on a given page. If you open the template file simple.jsp, you can see that it will include another file called box.jsp, which in turns includes various pieces of code (for instance files.inc ) depending on the content you are adding. If you want to have another type of "box", you simply have to make a new include with the corresponding code (lets say addresslist.inc) which will be included in the box.jsp file. I would suggest you check the template developer guide here http://www.jahia.net/jahia/Jahia/site/jahia_net/pid/585 for more details on how to create templates. best regards, Michel -------- Original Message -------- My group and I are at the beginning of creating a customized Jahia 5.0 implementation and I have what I believe to be a basic question. When you add content to a page via ‘Add a Box’ button you have the choice of several types for the content, for example Files, Groups Container, Pages, Portlet etc. My question is how to we create our own custom types. For example on several of our pages we have a structure such as - Containerlist o Container § Title § First Name § Last Name § Phone § Fax Obviously this is not a template as this containerlist construct will be added to several pages. In order to do this does it have to be a portlet or is there some other way it is done. If you could supply a starting point would greatly be appreciated. Cheers Keith Chadwick Keith Chadwick Senior Web Developer iStudio Canada 11 Holland Ave, Suite 715 Ottawa, ON K1Y 4S1 Tel: (613) 244-4747, ext. 237 Fax: (613) 244-4613 ---------- _______________________________________________ dev_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list _______________________________________________ dev_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list