Keyword

K2 Auto Categories and Auto Articles

More
14 years 9 months ago #78416 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
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.

More
14 years 9 months ago #78417 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
I have the file in "/templates/mytemplate/html/mod_k2_content/Default/default.php"

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.

More
14 years 9 months ago #78418 by Ron Farber
Replied by Ron Farber on topic K2 Auto Categories and Auto Articles
Im having a different issue with this. I love the idea, however, if I manually create a side menu with the sub categories which is a pain, I can assign a template to the results and also use the K2 leading , primary, secondary settings.

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.

More
14 years 9 months ago #78419 by Ron Farber
Replied by Ron Farber on topic K2 Auto Categories and Auto Articles
oops my bad, I had hard menu items for the subcategories set up previously, so maybe thats why it didnt display on them automatically. Checking into that now..

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

More
14 years 7 months ago #78420 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
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.

More
14 years 7 months ago #78421 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
Feel free to test it on www.charterbarometern.se
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.

More
14 years 7 months ago #78422 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
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.

More
14 years 7 months ago #78423 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
Is this something that will be fixed in upcoming versions of K2? if not I think i will have to search for an alternativ :/

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.

More
14 years 7 months ago #78424 by Guy Borghouts
Replied by Guy Borghouts on topic K2 Auto Categories and Auto Articles
Hey Omar,
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.

More
14 years 6 months ago #78425 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
is there some way to also show the parent category? Would make it alot better if you could navigate back :)

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

More
14 years 4 months ago #78426 by valkyria
Replied by valkyria on topic K2 Auto Categories and Auto Articles
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.

More
14 years 4 months ago #78427 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
Well actually this is not a bug in the module...The problem is that you need to create menu items to all the categories :/

 

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.

More
14 years 2 months ago #78428 by Marty Peet
Replied by Marty Peet on topic K2 Auto Categories and Auto Articles
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
Attachments:

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

  • Third Sun Productions
  • Third Sun Productions's Avatar
  • Offline
  • Junior Member
More
14 years 2 weeks ago #78429 by Third Sun Productions
Replied by Third Sun Productions on topic K2 Auto Categories and Auto Articles
Hi Marty - thanks for providing this module, its just what I need.  One questions - It seems to be creating URLs to a static itemID of 198 - can that be changed to link to whatever the current itemID is?  Thanks again

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.

More
14 years 2 weeks ago #78430 by Marty Peet
Replied by Marty Peet on topic K2 Auto Categories and Auto Articles
Edit the default.php file in the tmpl folder, line 51. Not sure which variable is the container for the current item probably id by the look of the k2_items table, so swap the Itemid=198 to Itemid='.$v.id' and see how that works I suppose... good luck!!!

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

More
14 years 3 days ago #78431 by datshay
Replied by datshay on topic K2 Auto Categories and Auto Articles
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.

More
14 years 3 days ago #78432 by Marty Peet
Replied by Marty Peet on topic K2 Auto Categories and Auto Articles
Hey Datshay

 

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.

More
13 years 10 months ago #78433 by Markus Thiel
Replied by Markus Thiel on topic K2 Auto Categories and Auto Articles
Is there any way to show the parent category?

 

Because when you are in an item the module is just empty :P

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


Powered by Kunena Forum