Keyword

Starting my first K2 website with templates and sub templates

More
15 years 1 month ago #73455 by Rhand
I have a new project. I will need to build one website with 4 templates. Each template will have at least four custom fields or areas. There will a home page, a few category pages, product pages and a few static pages. A product page for example will have a text area (main content), two list fields (unordered specs), a small text field, a large image field, three sub images with captions and a links box split into two columns. K2 indicates in its templating documentation:
So if your website had 3 major areas, say a news section, a knowledge base and a catalog of products, you create 3 copies of the "default" folder, rename them to something relative to these areas (e.g. news, kb, catalog) and then you create your create each parent category, assigning the respective sub-template each time. Then you edit each sub-template and get the desired layout for your site.
So I guess mine - as I described - will have four major areas. So I need to create four copies of the default K2 Template folder /components/com_k2/templates/, rename them they way I wish and start editing them? So I could make 1) /templates/home/html/com_k2/ 2) /templates/categories/html/com_k2/ 3) /templates/products/html/com_k2/ 4) /templates/static-pages/html/com_k2/But what do you mean by creating a parent category? A parent category will get the name of one of the four areas and will be connected to its template, correct? But how do a add sub templates to my templates? A sub template is just a custom fields I add?

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #73456 by Rhand
Well, anybody? I started this thread a while ago. Too many questions to answer and too little time I guess. No problem, I will try other Joomla! extensions - such as Pages and Items or another commercial one I found - or even another OS CMS option for my project if I cannot figure this out soon enough. But if someone here can give me shove in the right direction I would be very grateful. I find the K2 project very promising..

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum