I want something like this
<a href="<?php echo getcmsurl('Faqs')">FaQ's</a>
means on clicking FAQ's ,cms page created named faqs
from admin panel would be linked (called) and displayed.
Or is there any other way ?
Thanks.
If you are writing in phtml file then you can use
<a href="<?php echo $this->getUrl('cms page identifer'); ?>">yourlink</a>
and if you are writing in static block or page then you can use
<a href={{store url="cms page identifer"}}>your link</a>
尝试这个
<a href="<?php echo $this->getUrl('Your cms page identifier'); ?>">My url</a>
试试这样吧
<a href="<?php echo $this->getUrl('')?>Faqs">FaQ's</a>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.