Keyword

Article view jumps to different page with same category in category view

More
2 weeks 11 hours ago #168399 by RT
RT created the topic: Article view jumps to different page with same category in category view
Hello Joomla Community,

I copied and translated my german post , since I realized how this board seems to be a lot more frequented and I'm hoping for an increased chance of getting some help here.

I'm currently working on an Online News Viewer implemented with K2 in Joomla.

It shows news of 4 different newspapers, each with its own page to view current news. I created categories for any combination of newspapers (i.e. "alle newspapers", "newspaper 1 and newspaper 3", "only newspaper 1", etc.), since one newsitem may be relevant for different combinations of newspapers.
The module on the News Page then shows all news of categories where the current newspaper is part of the category.

But now I got a strange problem:
If I click on an article which belongs to various newspapers, it often leaves the URL of the newspaper with the category list and jumps to another newspaper for the item-view (probably the newspaper with the lowest ID).

For example:
www.bad-lippspringer-nachrichten.de , the article from 2nd july "Flutbr├╝cke auf der Kreisstrasse[...]".
It will jump from the pages of the BLN newspaper to the pages of the PJ newspaper. (It is in the category "PJ + BLN" and is supposed to be shown in both newspapers)

And now my question:
Is there a way to teach K2 article view to just stay in the path the category view of the displayed article is in?

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

More
2 weeks 10 hours ago #168401 by Krikor
Krikor replied the topic: Article view jumps to different page with same category in category view
Hello,
Mein Deutsch ist scheisse, so hier ist ein bischen besser.
This comes down to your menu structure.
Map each category into a separate menu item, and have the menu item 'retrieve' items from all these categories.
This way each item will be rendered with the correct URL, modules and category.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
2 weeks 9 hours ago - 1 week 6 days ago #168402 by RT
RT replied the topic: Article view jumps to different page with same category in category view
Hello Krikor,
Thanks for your reply.

Well, the idea of the summarized categories (i.e. "newspaper 1 + Newspaper 3") was to use that category on different menu items. ( In that case: the news page of newspaper 1 and the news page of newspaper 3 ), so I can't really make a seperate menu item for each of those.
But maybe I'm not understanding you correctly here.

The current state is as follows:
Each newspaper has an own menu, built like this:



The alias of each item is different for each newspaper. I also tried changing the title to be different (i.e. "Start2" and "Start3") for testing purposes, but it made no difference.

The category view has all the relevant (combo-)categories implemented like this:

Attachments:
Last Edit: 1 week 6 days ago by RT.

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

More
1 week 6 days ago #168414 by Krikor
Krikor replied the topic: Article view jumps to different page with same category in category view
This way all of the items will be rendered through the home page, or if you have another menu item pointing to one or more of the categories.
The correct setup would be to keep the homepage as is and create a hidden menu,
In that menu, create a separate menu item with the correct alias as weill for each of the categories.
This will solve the layout and potentials module issues.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
1 week 5 days ago #168417 by RT
RT replied the topic: Article view jumps to different page with same category in category view
Ah, I see. So the problem stems from Menu Items which got Aliases pointing at the Category Views?
Because, in fact, we have those. We got another "Main Menu" for the Heggemannmedien Main Pages. That one is the root (for the breadcrumb for example) and has a Menu Item "Zeitungen"(Newspapers) with a Menu Item as Alias to each of the 4 newspapers (which then got those own Menus as shown before).

I'm not sure I understand your suggested setup though.
What would be the correct alias for the categories? And how would Joomla/K2 understand where to show the Item View of the various newspaper pages, if I create another independent hidden Menu?

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

More
4 days 9 hours ago #168500 by RT
RT replied the topic: Article view jumps to different page with same category in category view
Hello Krikor,

Thank you for your support so far, and sorry if I might seem a bit dense in this matter.
But a little bit more information would be very appreciated.

So, up until now I created the item like this:


I guess you meant "item" as correct alias.
So .. which menu type would I need for it to work?
So far I tried adding another Category View, a Featured View and a Article View ( to some randomly picked article), but none of those worked. (Caches were cleared)
Attachments:

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

More
4 hours 54 minutes ago #168526 by Krikor
Krikor replied the topic: Article view jumps to different page with same category in category view
You are not dense, we all started from somewhere.
Lets start from the beginning.

Create a menu item towards the categories you want to show on your homepage and adjust its settings.
Create a menu and call it eg: hidden menu.
In that menu create a menu item for each of your K2 Categories.
Remember to double check your modules and have them shown or hidden on these new menu items.
Create some new menu items should you need them.

This way you will get a consistent layout, consistent modules across items and categories.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

Moderators: william white