SEF URL for loading within Article

  • Posts: 6
  • Thank you received: 0
10 years 9 months ago #182059

Hi there,

Did some research for a while but none of the solutions worked for me.

What I am trying to do: Show contents of a category on an article.

How I am doing it: Creating Hikashop Content module and then using {loadposition position} within the article.

ISSUE: Everything works fine - the products get displayed and are linked through - however, they have an ugly URL /com/hikashop...

Now what I wanted to know is whether it is possible to have a URL such as /category/product -> where category comes from the menu item the module is being displayed on WITHOUT the use of Hikashop menu item (as I have pages set up in articles).

EG.

Stockings page has "hikashop content display" module loaded in, each product then would then have URLs as Stockings/productname

Kind Regards,

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

  • Posts: 84301
  • Thank you received: 13697
  • MODERATOR
10 years 9 months ago #182169

Hi,

The component/hikashop part of the URL is there because you didn't specify a target menu item in the module and without one the SEF system of Joomla cannot use the alias of the menu item instead of component/hikashop so that it knows which component should display the content of the URL when you click on it.
More than that, the menu item that you select needs to be a hikashop menu item, otherwise, as for when you don't set a menu item at all, the SEF system of Joomla cannot use the alias of the menu item instead of component/hikashop.
So if you select a menu item displaying a Joomla article as menu of your HikaShop module, you'll still get the component/hikashop because if the SEF system was replacing it by the alias of that menu item, you would get a 404 error when clicking on the link as the Joomla article component wouldn't know what to do.
So the problem is not in HikaShop, but in the fact that the SEF system of Joomla with the menu item/alias system is not meant to work like you want it to. You would have the same issue between any extension if you tried to have links generated from one extension to go to another one but trying to keep the menu item of where the links get displayed.

So there are two things you can do here:
- You rethink your structure so that you don't try to have the links of a hikashop module use the alias of a joomla article menu item.
- You use a third party SEF system like SH404SEF which can alias URLs so that you can actually put any URL you want for your SEF links and it will be able to display the product page.

The following user(s) said Thank You: cruz777

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

  • Posts: 6
  • Thank you received: 0
10 years 9 months ago #182180

Good early morning from Australia!

My apologies, I was so busy last night fixing the site I didn't have time to repost with an update.

After much research and reading into the system, I finally wrapped my head around how it is suppose to work and how it is integrated in Joomla, and after this my question does sound indeed silly! I've removed the individual articles and replaced them with the corresponding menu types. Thank you for these awesome forums, the amount of searching I did and random bits of information all tied in nicely!

To help future people searching, there is the ability to add descriptions, images, custom modules and images into the category content this will allow you to have a custom product page, or edit the design of the product page to insert modules into the page - much the same as having an article and loading the products in - except the opposite, you will have a proper structure of products and load in the other modules.

For template design:
- For individual design elements simply edit the description of the category to include {loadposition position-} , can also add images. descriptions etc...
- For design changes across the entire view - edit the view

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

  • Posts: 84301
  • Thank you received: 13697
  • MODERATOR
10 years 9 months ago #182181

Hi,

That is indeed a better way to handle the display of your products listings :)

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

Time to create page: 0.046 seconds
Powered by Kunena Forum