Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Hyperlinks- The right URL’s
 
adonkey
Member
 
Total Posts:  67
Joined:  2008-10-28
 

Looking at the sample static block for cell phones in the demo store:

<a href="{{store url="catalog/product/view/s/sony-ericsson-w810i/id/18/category/8/''}}"><img src="{{skin url='images/media/cell_phone_landing_banner1.jpg}}" alt=""/></a>

I noticed that :  “{{store url="catalog/product/view/s/sony-ericsson-w810i/id/18/category/8/’’}}" was used to direct a link to a particular product, my question is how do I know what my link should read?

If I were to take the URL of that particular product it would read “http://demo.magentocommerce.com/sony-ericsson-w810i.html”

For SEO purposes I would prefer not to have to use the full http:// links within the site, and I would also like to get some understanding of the correct method of linking internally.

Any help would be greatly appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
adonkey
Member
 
Total Posts:  67
Joined:  2008-10-28
 

Ok, here is what I have so far

"{{store url="catalog/product/view/s/
- this seems to be generic

Then you add the request path found in catalog>Url Rewrite Management> eg:

sony-ericsson-w810i

subtracting the .html

Then you look at the target path within catalog>Url Rewrite Management section and take the text from after

catalog/product/view/

in this case it would be

id/18/category/8

Then you close it with

/''}}"

This gives you:

<a href="{{store url="catalog/product/view/s/sony-ericsson-w810i/id/18/category/8/''}}">

If there is a more simplified method, I’d like to know wink

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top