Timeline for linking customer/account url in a static block
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 8, 2014 at 8:51 | vote | accept | Holly | ||
Dec 8, 2014 at 8:40 | answer | added | Marius♦ | timeline score: 6 | |
Dec 8, 2014 at 8:36 | comment | added | David Manners | @Marius I would suggest that these comments would make make a good answer here. | |
Jul 31, 2014 at 10:51 | comment | added | Marius♦ |
Like I said in the previous comment, it only works for module routes. I assume contact is one of your custom pages (unless you are talking about the contacts module). It does not work the same for pages. Because Magento does not know you are linking to a page, nor does it keep track of the changed url keys of static pages. You can use the widgets for links but I guess this is even worse because widgets use page ids which are not protable {{widget type="cms/widget_page_link" anchor_text="some text here" title="some title here" template="cms/widget/link/link_block.phtml" page_id="52"}}
|
|
Jul 31, 2014 at 10:46 | comment | added | Holly |
I see, what if you use <a href="{{store url="contact"}}">Contact Us</a> and later change the url for your contact page? Will the correct url still be generated?
|
|
Jul 31, 2014 at 10:38 | comment | added | Marius♦ |
If you change the customer module route from customer to client (see here how), using the {{store}} directives will automatically generate the correct url. So you are safe. It does NOT work the same for direct_url .
|
|
Jul 31, 2014 at 10:35 | comment | added | Holly | I thought there might be a way of linking to the customer/account page without using the url path so that inncase the url path was ever changed for the for the customer/account to say client/account the links would not break | |
Jul 31, 2014 at 10:24 | comment | added | Marius♦ | These seam like fine ways to do it. Simple and to the point? Can you explain what else you have in mind? | |
S Jul 31, 2014 at 10:22 | history | suggested | VijayS91 | CC BY-SA 3.0 |
Rename blocl to block
|
Jul 31, 2014 at 10:21 | review | Suggested edits | |||
S Jul 31, 2014 at 10:22 | |||||
Jul 31, 2014 at 10:16 | history | asked | Holly | CC BY-SA 3.0 |