Here is my solution. I found it through trial and error and have probably misused K2 functionality :-) All comments are welcome. Hopefully next K2 makes all this a bit easier.
My setup:
- Joomla 1.5.20
- K2 2.4.1
- onecssperk2template 1.2.3
1) add K2 categories, let's say you have
- toplevelcat
-- subcat1
--- subsubcat11
-- subcat2
--- subsubcat21
--- subsubcat22
-- subcatnotused
2) add K2 items under each categories
- leave subcatnotused category empty
- mark few items in different categories as featured
3) add two menus with menu manager
- mainmenu
- featuredmenu
4) add few menu items to mainmenu and configure one
- title: Home
- K2 >> Itemslist / Category and mark it as default
- select only categories toplevelcat and notusedcat
- select show only featured items
5) add menu item to featuredmenu and configure it
- title: Featured
- K2 >> Itemslist / Category
- select all categories
- select show only featured items
6) Optional step to show user path when item is selected
- add mod_breadcrumbs in module manager
- assign all other menus except Home
7) add other modules in module manager
- assign all other menus except Home
With these steps you should have
- front page with only featured items listed from various categories and selected modules
- when you select one item it opens to full page (of course this depends on your template and css settings)
- open item have following path e.g. Home - Featured - subcat2 - subsubcat22 - ItemTitle, where
-> Home goes back to front page showing all modules and listing featured items
-> Featured shows featured items in full page
-> subcat2 shows that category and its child items
-> subsubcat22 shows only that category items
I am one step from perfect solution to my needs. My problems:
- k2.css is used in frontpage aka Home even custom template is selected for that menu item
- k2.css is used in Home - Featured page even custom template is selected for that menu item
- all other categories and items use custom template, no matter what is selected from category???
-> I'd like to use custom template everywhere
Feature request:
-
community.getk2.org/forum/topics/how-to-override-k2css-used-by
Known bug:
-
community.getk2.org/forum/topics/k2-category-item-layout
Marko