开发者

Correct way to call a product page using a static block in Magento

开发者 https://www.devze.com 2023-02-17 22:59 出处:网络
I have a content slider setup and works correctly, but when try to add a url to the content navigation I am still seeing my placeholder (#) in the link inst开发者_运维技巧ead of see the link. What is

I have a content slider setup and works correctly, but when try to add a url to the content navigation I am still seeing my placeholder (#) in the link inst开发者_运维技巧ead of see the link. What is the correct way to call a product in a static block? I tried using something along the lines of this:

<ul id="nav1">
<li><input id="array_text_0" type="hidden" value="<li><a href="#"></a></li>"/></li>
<li><input id="array_text_1" type="hidden" value="<li><a href="#"></a></li>"/></li>
<li><input id="array_text_2" type="hidden" value="<li><a href="{{store direct_url='/apparel/shoes/mens/asics-men-s-gel-kayano-xii.html'}}"></a></li>"/></li>
</ul>

however the link does not change from (#)


I have just tested with a product at /frame.html. To link to that page in a static block I used {{store direct_url="frame.html"}} (the use of direct_url, instead of url, removes the trailing slash.)

I assume you've got caching disabled? If not, disable it and try again.

Edit: There's also the fact that you've used double-quotes to wrap the arguments and in the value. You'll either need to escape the double-quotes you're using as a value, or use single-quotes.

0

精彩评论

暂无评论...
验证码 换一张
取 消