- Posts: 60
COMMUNITY FORUM
Set ItemID for links from k2 Content module?
- Wire Creative
-
Topic Author
- Offline
- Senior Member
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.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Wire Creative
-
Topic Author
- Offline
- Senior Member
- Posts: 60
I have a hidden menu item, which, when used, loads the pages using the correct /our-blog/ slug. When the items are clicked on from this category listing, the individual items load correctly using that slug followed by the item title alias. In these instances, all blog pages load with the correct modules and template settings.
The problem is that there are two K2 Content modules on the site. One is on all pages and one is just on the home page. Both of these modules link to the blog items using URLs like this:
/component/k2/item-title-alias
which loads the item pages without the correct module/layout assignments.
Interestingly, the one k2 content module that displays on all pages uses the correct "/our-blog/" slug in the URLs when its loaded on blog pages, but uses the "/component/k2/" slug when it loads on other pages, like the home page.
Please Log in or Create an account to join the conversation.
- Wire Creative
-
Topic Author
- Offline
- Senior Member
- Posts: 60
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Wire Creative
-
Topic Author
- Offline
- Senior Member
- Posts: 60
I didn't set-up this site, so anything's possible in terms of things being screwed up and not working normally.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
You'll need it for sh404SEF to work with K2 v2.7.0+.
If you already have that, it could be a faulty override. First off, upgrade to the latest K2 release (v2.9.0). Then have a look at the templating guide here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Disable any overrides by adding an underscore in front of the related module name inside your template's /html folder, e.g. rename /html/mod_k2_content to /html/_mod_k2_content. Clean site and sh404SEF caches. Does this issue still occur?
Please Log in or Create an account to join the conversation.
- Wire Creative
-
Topic Author
- Offline
- Senior Member
- Posts: 60
However, it is using overrides for the K2 Content module. I'll see if I can take a look at those. It's complicated by my not having FTP access, but there is a Joomla extension that gives me file access.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Wire Creative
-
Topic Author
- Offline
- Senior Member
- Posts: 60
It does look like these overrides were made using K2 v2.6.0 while the site is using k2 v2.8.0. Could that be a problem?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Please Log in or Create an account to join the conversation.
- Wire Creative
-
Topic Author
- Offline
- Senior Member
- Posts: 60
I installed sh404SEF and the K2 plugin, and everything seems to work fine now, even with the overrides restored. There may have been some other system customization in play, but my firewall software didn't detect any changed Joomla core files.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Glad it's resolved for now.
Please Log in or Create an account to join the conversation.