Keyword

K2 articles url under sp pagebuilder menu item

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #175554 by Andrea
Hi, i've got an issue with the website im currently working on.
I have installed both k2 and sp pagebuilder, created a menu item that refers to a sp page which has an article block that fetches article from a given k2 category.
Even though i applied sef urls within k2 (correctly, i suppose), the resulting url does not take account of the menu item alias (see link below)

bussolinomarafioti.it/component/k2/sample-3

Any suggestions? What i need to achieve is an url like this: bussolinomarafioti.it/aree-di-attivita/sample-3

Many thanks, have a nice day!

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

More
4 years 4 months ago #175557 by JoomlaWorks
Replied by JoomlaWorks on topic K2 articles url under sp pagebuilder menu item
In order to have SEF URLs, content from components has to be mapped to at least one menu item.

In this case, SPPB may be mapped to a menu item, but K2 isn't. SPPB just fetches K2 content directly, either by calling one of K2's modules or by direct SQL queries. SPPB acts as a shell, it doesn't hold/resolve the actual content.

To address your issue, you can create a menu in Joomla to map your K2 categories and in there create on or more menu items pointing to K2. This menu does not have to be public on the site. However it will allow you to have better looking URLs for your K2 content.

Keep in mind that what you face here is not K2 specific. The same would apply for any other component that is being retrieved inside SPPB.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #175559 by Andrea
Hi Fotis,
thank you once again for your quick replies!
I was guessing this thing also, but wanted an expert advice :P
So i should create a new site menu with a menu item that references to the k2 category the sample items are cointained in, giving it the alias "aree-di-attivita" right?
Then when accessing the page made with sp pagebuilder and clicking on the link of one article what i'll have is the following url, right?
bussolinomarafioti.it/aree-di-attivita/sample-3

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

More
4 years 4 months ago #175562 by JoomlaWorks
Replied by JoomlaWorks on topic K2 articles url under sp pagebuilder menu item
Yes and yes. :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 4 months ago #175574 by Andrea
Hi Fotis,

there's a problem with that: if the sp pb menu item has the alias "news-e-formazione", the same can't be placed in the k2 category menu item...
Any workaround?

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

More
4 years 4 months ago #175589 by JoomlaWorks
Replied by JoomlaWorks on topic K2 articles url under sp pagebuilder menu item
Nest the menu items. Use the one for SPPB as the top level menu item and then add any/all K2 menu items as children to the SPPB menu item. This way URLs won't clash.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 4 months ago #175590 by JoomlaWorks
Replied by JoomlaWorks on topic K2 articles url under sp pagebuilder menu item
BTW, this is not a K2 or SPPB limitation, it's how menu item aliases work in Joomla.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum