Linking to Category from a Custom HTML(i.e. ad banner) module and keeping SEF

Started by coruja, December 10, 2012, 07:13:08 AM

Previous topic - Next topic

coruja

Hello,

I am on I am using Joomla 2.5.8 with VirtueMart 2.0.14 (PHP 5.3.18)

I would link from a simple ad banner (Custom HTML module) from the Joomla site homepage to a VM Shop Category and retain the standard Joomla SEF URLs and also the correct breadcrumb path.

Please note - I only have one link to the shop in the main menu - I do not have the shop categories created as sub-menu items.

I am not using any SEF component apart from the Joomla built-in and it seems to be working great within the Joomla site and VM Shop. But when I link to a Category from anything else other than the site menu it loses the SEF URL and the breadcrumb is incorrect.

I have tried using a 'hidden' menu to get around this issue but this causes problems with 'aliases'
Joomla 2.5.8    VM 2.0.14   PHP 5.2.18

bytelord

Hello,

I had similar issues with you and i am using the sef url inside custom html module, no link to menu items (hidden or not hidden) or not link with index.php?.....
Just create a link with sef, eg. virtuemart_alias/account/account-maintenance

Was my first post on the same a similar question: http://forum.virtuemart.net/index.php?topic=104139.msg346395#msg346395

Ragrds
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

coruja

Thank you for the help.

As suggested I  have used 'http://www.../shop/category' and also just '/shop/category' as the links from my Custom HTML image banner but I am still getting non-SEF Urls on the resulting page and incorrect breadcrumbs.

May be I have not understood your explanation, could you give a little more detail?


Joomla 2.5.8    VM 2.0.14   PHP 5.2.18

bytelord

Is working fine for me ... create just a new url with my editor under custom module and place the url like shop/category/sub-category
The produced link is sef and working fine.
Work fine also if you have sef disabled and place a NON sef url.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

coruja

Hello, I think I finally understand.

I created a Weblink (Components >> Weblinks)  and inserted the full SEF in there (http://www..../shop/category)

Then I inserted that Weblink as the link from my Custom HTML module banner.

This seems to work well, the breadcrumbs work  and the URL on the address bar is SEF.

Although the URL when I hover over the banner shows http://www.../weblinks/weblink/1-<weblink alias>

But this is better than where I was at earlier.

If I am doing this wrong or not in the way you had in mind please correct me.

Joomla 2.5.8    VM 2.0.14   PHP 5.2.18

bytelord

Hello,

I just place the url inside the editor in custom html module ... like ... : shop/category/product or like shop/acount/maintenance ... that refers on my joomla menu items and the breadcrubs are working fine ...

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

coruja

Thank you for helping me with this.

I see where we having having some differences, you have the URLs you are linking to from the Custom HTML module already set-up as Menu Items.  I don't have that.

I just have one link to the shop on my main top menu  - the rest of the shop categories are displayed in a VM Category Listing Module as another menu on the left.

So because the Category I am trying to link to does not exist as a Joomla Menu Item, the SEF and breadcrumbs 'break' if I try to link directly to it.

I don't think there is any other way to deal with my situation other than weblinks. This is just how Joomla works and VM doesn't 'expose' its URLs to Joomla.

Joomla 2.5.8    VM 2.0.14   PHP 5.2.18

bytelord

Hello,

It's not something to expose ... Joomla using menu items for breadcrambs, etc ... else you could use the component link ... that what joomla do, but again you will have a long url. You could create a hidden menu under your shop menu and create there 1-2 links you gonna need.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

coruja

Hello,

The hidden menu option creates more issues with 'aliases' - because both 'shop' links will have the same root I will need to make the shop link of the hidden menu to be say 'shop1'. And this becomes a part of the URL throughout the users session!

If I use Menu Alias item it is even worse as it gets a date as a part of the url.

May be at this point I need to use a SEF extension?



Joomla 2.5.8    VM 2.0.14   PHP 5.2.18

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!