Try the Demo

Magento Forum

   
How to link to a static page
 
Andrea, Argentina
Sr. Member
 
Total Posts:  164
Joined:  2007-12-05
Buenos Aires, Argentina
 

Hi all…
I am working with Xampp and my url is http://localhost/store

When I use

<a href="{{store url=""}}novedades"> as it used to be and as I saw at the forum, I receive a 400 error and the url was:

http://localhost/magento/&#x7B;&#x7B;store%20url=

I’ve tried with quotes in different places but nothing worked. It can be a problem at local usage? I can’t figure out why this simple issue does not work. Any help will be welcome!!

Andrea

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrea, Argentina
Sr. Member
 
Total Posts:  164
Joined:  2007-12-05
Buenos Aires, Argentina
 

I’ve forgot to say that the place i want to put this link to my static page is a phtml file

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

if it is going in a phtml file try this

<a href="<?php echo $this->getUrl(’novedades’) ?>">

i think thats right but its from memory as im not on my computer.

 Signature 

If someone tells you its impossible, try anyway or you will never know.
Compound Interest Calculator

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrea, Argentina
Sr. Member
 
Total Posts:  164
Joined:  2007-12-05
Buenos Aires, Argentina
 

Thank you lazzy but that didn’t work.

Here is my complete issue: I’ve changed the top menu to show buttons throug css styles. Then, in my top.phtml file I have this:

<span class="enlaces-barra-1"><a class="enlaces">
<a href="{{store url=""}}novedades-trucos-de-magia"><img src="skin/frontend/default/default/images/nav_btn_tra.gif"></a></span>

This code generates a transparent image with a link. But the link isn’t working because the browser reads this:
http://localhost/magento_1_0_Tienda/&#x7B;&#x7B;store%20url=
and redirects to a “not found” page.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

{{store url=""}} doesnt work in .phtml files. if i remember correctly that is cms pages.

<span class="enlaces-barra-1"><class="enlaces">
<
a href="<a href="<?=$this->getUrl('novedades-trucos-de-magia')?>"><img src="skin/frontend/default/default/images/nav_btn_tra.gif"></a></span>

try that

 Signature 

If someone tells you its impossible, try anyway or you will never know.
Compound Interest Calculator

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrea, Argentina
Sr. Member
 
Total Posts:  164
Joined:  2007-12-05
Buenos Aires, Argentina
 

Great!!! It worked. Thank you very much

 
Magento Community Magento Community
Magento Community
Magento Community
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

No problem

 Signature 

If someone tells you its impossible, try anyway or you will never know.
Compound Interest Calculator

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top