我想知道是否有任何方法可以使用根路径而不是硬链接链接到magento中的页面。例如,不使用http://dev.southlandautomation.com/index.php/t-automationrepair.aspx/?___store=default,有没有什么方法可以让magento在不使用url的情况下链接到这个页面。
您可以通过以下方式获取Store URL:
{{store url=""}}
所以你可以添加类似双向的链接
{{store url="t-automationrepair.aspx"}}
{{store url=""}}t-automationrepair.aspx
只要你在CMS块或页面中,这应该会给你源
Get Url in cms pages or static blocks
1. Get Base Url :
{{store url=""}} //eg. <a href="{{store url=''}}"
2. Get Skin Url :
{{skin url='images/imagename.jpg'}}
3. Get Media Url :
{{media url='/imagename.jpg'}}
4. Get Store Url :
{{store url='mypage.html'}}
参考&更多信息