Keyword

Set ItemID for links from k2 Content module?

  • Wire Creative
  • Wire Creative's Avatar Topic Author
  • Offline
  • Senior Member
More
1 week 3 days ago #169042 by Wire Creative
Wire Creative created the topic: Set ItemID for links from k2 Content module?
Hi, I'm trying to help someone out with a site that uses K2 for their blog. They have no link to the blog in their navigation, only a k2 content module on the home page showing the three most recent posts. The template they are using adds some design options to each menu item. However, there is no way to set these options for pages that don't come from a menu item, like the links from the k2 content module, so the design looks unfinished on the blog pages.

I've tried creating a hidden menu item for the blog (latest items from k2 category) with the correct design settings, but the links from the content module still display differently. Is there a way to set the k2 content module to load links with a specific itemid so that we can control the design on those pages?

Thanks!

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 2 days ago #169046 by Fotis
Fotis replied the topic: Set ItemID for links from k2 Content module?
Make sure the menu item you create points to the related K2 category that you use as blog, add a "blog" menu alias, make sure it's published and belongs to a Joomla menu that is also published but simply not displayed anywhere in Joomla through some module. Then clean your cache and re-test. All links will now become /blog/X-something. If you have sh404SEF on, you will need an extra addon for K2 to work with it. If you already have that, purge sh404SEF's cache. Similarly, if you use any other 3rd party SEF component, just delete its cache.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white