Vinothini Vinothini - 8 days ago 7
PHP Question

How to write base url in cms page in magento?

In my cms page im writing url for a tag is

<a class="blue-btn" title="Personalize Now" href="{{store url="personalizer?pid=custom"}}">Personalize Now</a>


I want to get link like below


http://localhost/appcustomizer-pdt-003/index.php/personalizer?pid=custom


I got url upto this - http://localhost/appcustomizer-pdt-003/index.php

But i dont know how to get -


personalizer?pid=custom

Answer

Try this,

For store url

<a class="blue-btn" title="Personalize Now" href="{{store url=''}}personalizer?pid=custom">Personalize Now</a>

For Base url

<a class="blue-btn" title="Personalize Now" href="{{base url=''}}personalizer?pid=custom">Personalize Now</a>

Reference

Comments