- Posts: 149
COMMUNITY FORUM
K2 Auto Categories and Auto Articles
- Markus Thiel
-
- Offline
- Premium Member
Markus Thiel said:hmm also I noticed that my earlier template override on the mod_k2_content no longer work...? Or am I doing something wrong?
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
Markus Thiel said:Any idea what could the problem could be?
Markus Thiel said:hmm also I noticed that my earlier template override on the mod_k2_content no longer work...? Or am I doing something wrong?
Please Log in or Create an account to join the conversation.
- Ron Farber
-
- Offline
- New Member
- Posts: 15
With this, I get a generic category listing layout (which I would love to know how to make 1 column, and play with the leading , primary, secondary image sizes, etc...
is this possible. Is there a place where I can adjust the default K2 category leading items, primary items, etc... to say "if I dont specify anything, do this for my default layout options". Also, interestingly enough, if I place this menu on the main category, and the results come up displaying my sub-category results when someone clicks one of these links generated automatically, the menu is not displayed on those subcategory results to go to another person (subcategory). I am not given the option to place this menu on those auto generated menu items beforehand, since there is no hard menu item for it. It only shows on the one page I place it on originally. Not everything "under" that.
Additionally, when an automenu reaches a user configurable length (i.e. 20 items or 30 items or even 100) it could automatically be set to display the select box option instead so the categories can fit in a reasonable amount of space (since you are using people in your categories, what if you have 500 people?)
Please Log in or Create an account to join the conversation.
- Ron Farber
-
- Offline
- New Member
- Posts: 15
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
Seem as there is an ItemID problem.. :/
Markus Thiel said:There seems to be some bugs with the category select box... it dosen´t allways show the correct category when viewing an article.. ? any ideas on my?
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
Markus Thiel said:There seems to be some bugs with the category select box... it dosen´t allways show the correct category when viewing an article.. ? any ideas on my?
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
Markus Thiel said:I think this is the same "bug" as the content module has... It wont get the correct itemid... :(
Markus Thiel said:There seems to be some bugs with the category select box... it dosen´t allways show the correct category when viewing an article.. ? any ideas on my?
Please Log in or Create an account to join the conversation.
- Guy Borghouts
-
- Offline
- New Member
- Posts: 7
Thanks a lot for a great contribution! I'm looking for this kinda stuff quite some time... The automatic menu is a big time saver for editors and they don't have to hassle with menu's.
Cheers,
Guy
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
Please Log in or Create an account to join the conversation.
- valkyria
-
- Offline
- New Member
- Posts: 2
Now as mentioned before, there's no itemID when following the links created in the auto list, so articles/sub-category lists are shown with the default or current (main page/Home) templates and modules positions. Eg: I've got the slideshow module to show only on the main page, but following a link from this auto module, the slideshow appears anyway.
Is there a way to add this, even a hard coded solution will do for me now, I can create a generic layout itemID.
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
At least that fixed it for me.. took some time (have about 300 categories hehe) but it worked :)
valkyria said:
This is a great addition to the K2 component! Both modules work great.
Now as mentioned before, there's no itemID when following the links created in the auto list, so articles/sub-category lists are shown with the default or current (main page/Home) templates and modules positions. Eg: I've got the slideshow module to show only on the main page, but following a link from this auto module, the slideshow appears anyway.
Is there a way to add this, even a hard coded solution will do for me now, I can create a generic layout itemID.
Please Log in or Create an account to join the conversation.
- Marty Peet
-
- Offline
- Premium Member
- Posts: 84
Publish the module in whatever position you like, CSS needs a class named menu. If you don't like that class name, or already have it, hack the default.php file in the tmpl folder. If you browse to a directory that contains sub-directories it will create a list of them with their titles as the links. The parent category name becomes the menu title. If you're in a sub-directory that contains articles, it'll create a list of those articles using their titles as links.
That's about all it does, but it's saved me massive amounts of time. Enjoy
Please Log in or Create an account to join the conversation.
- Third Sun Productions
-
- Offline
- Junior Member
- Posts: 32
Marty Peet said:
Hey I created something like this not long ago, not as good as Omar's but someone might find it useful
Publish the module in whatever position you like, CSS needs a class named menu. If you don't like that class name, or already have it, hack the default.php file in the tmpl folder. If you browse to a directory that contains sub-directories it will create a list of them with their titles as the links. The parent category name becomes the menu title. If you're in a sub-directory that contains articles, it'll create a list of those articles using their titles as links.
That's about all it does, but it's saved me massive amounts of time. Enjoy
Please Log in or Create an account to join the conversation.
- Marty Peet
-
- Offline
- Premium Member
- Posts: 84
Please Log in or Create an account to join the conversation.
- datshay
-
- Offline
- New Member
- Posts: 13
thanks
Please Log in or Create an account to join the conversation.
- Marty Peet
-
- Offline
- Premium Member
- Posts: 84
Not entirely sure what you want here...
If you read my description of the module that is what it's supposed to do, if the category has items, list the items, if the category has sub-categories, list the categories. Shouldn't be to difficult to locate the if statement and break it out into blocks so that it can/does display both categories and items? or to comment out the categories display altogether
datshay said:
Hay can u help me to do same with categories.... i mean in the above module u have fetched the items, instead can i fetch the categories.... please help me....
thanks
Please Log in or Create an account to join the conversation.
- Markus Thiel
-
- Offline
- Premium Member
- Posts: 149
Because when you are in an item the module is just empty :P
Please Log in or Create an account to join the conversation.