Magento call cms page through anchor tag from phtml file

后端 未结 3 1227
傲寒
傲寒 2021-01-13 16:34

I want something like this
FaQ\'s

means on clicking FAQ\'s ,cms page created named <

相关标签:
3条回答
  • 2021-01-13 16:59

    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>
    
    0 讨论(0)
  • 2021-01-13 17:01

    Try like this

    <a href="<?php echo $this->getUrl('')?>Faqs">FaQ's</a>
    
    0 讨论(0)
  • 2021-01-13 17:22

    Try this

      <a href="<?php echo $this->getUrl('Your cms page identifier'); ?>">My url</a>
    
    0 讨论(0)
提交回复
热议问题