{"id":6635,"date":"2014-05-28T13:26:38","date_gmt":"2014-05-28T10:26:38","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=6635"},"modified":"2019-09-26T15:39:34","modified_gmt":"2019-09-26T13:39:34","slug":"creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html","title":{"rendered":"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento"},"content":{"rendered":"\n<p>I am sure many of you have once faced the necessity of creating links in &lsquo;My account&rsquo; or &lsquo;Toplinks&rsquo; menu. It is quite simple to implement &ndash; just add the following code into xml:<!--more--><\/p>\n<pre class=\"lang:php decode:true\">&lt;customer_account&gt;\r\n    &lt;reference name=\"customer_account_navigation\"&gt;\r\n        &lt;action method=\"addLink\" translate=\"label\" module=\"mymodule\"&gt;\r\n           &lt;name&gt;mylink&lt;\/name&gt;\r\n           &lt;path&gt;mymodule\/myblock&lt;\/path&gt;\r\n           &lt;label&gt;My Link&lt;\/label&gt;\r\n        &lt;\/action&gt;\r\n    &lt;\/reference&gt;\r\n&lt;\/customer_account&gt;<\/pre>\n<p align=\"left\">After that all you need is to create an appropriate controller (mymodule\/myblock\/index), a template for the content (mymodule\/myblock.phtml), a block (mymodule\/myblock) and to define them in the xml:<\/p>\n<pre class=\"lang:php decode:true\">&lt;mymodule_myblock_index&gt; \r\n    &lt;update handle=\"customer_account\"\/&gt;\r\n    &lt;reference name=\"root\"&gt;   \r\n        &lt;action method=\"setTemplate\"&gt;\r\n            &lt;template&gt;page\/2columns-left.phtml&lt;\/template&gt;\r\n        &lt;\/action&gt;   \r\n    &lt;\/reference&gt;\r\n    &lt;reference name=\"content\"&gt;\r\n        &lt;block type=\"mymodule\/myblock\" name=\"mymodule_myblock\" template=\"mymodule\/myblock.phtml\" \/&gt;\r\n    &lt;\/reference&gt;\t\t\r\n&lt;\/mymodule_myblock_index&gt;<\/pre>\n<p align=\"left\">The only drawback is that the link is a static one, so it does not depend on any conditions or events. The easiest way to make it dynamic (dependent on events and conditions) is to use Magento events together with handles.<\/p>\n<p align=\"left\">First off, let&rsquo;s change the default handle &lt;customer_account&gt; to the custom handle &lt;random_name_handle&gt; in the aforementioned xml:<\/p>\n<pre class=\"lang:php decode:true\">&lt;random_name_handle&gt;\r\n    &lt;reference name=\"customer_account_navigation\"&gt;\r\n        &lt;action method=\"addLink\" translate=\"label\" module=\"stores\"&gt;\r\n           &lt;name&gt;mylink&lt;\/name&gt;\r\n           &lt;path&gt;mymodule\/myblock&lt;\/path&gt;\r\n           &lt;label&gt;My Link&lt;\/label&gt;\r\n        &lt;\/action&gt;\r\n    &lt;\/reference&gt;\r\n&lt;\/random_name_handle&gt;<\/pre>\n<p>Next we assign an observer to the event &lt;controller_action_layout_load_before&gt;:<\/p>\n<pre class=\"lang:php decode:true\">&lt;frontend&gt;\r\n&hellip;\r\n    &lt;events&gt;\r\n        &lt;controller_action_layout_load_before&gt;\r\n            &lt;observers&gt;\r\n                &lt;mymodule_name_controller_action_layout_load_before&gt;\r\n                    &lt;type&gt;singleton&lt;\/type&gt;\r\n                    &lt;class&gt;mymodule\/observer&lt;\/class&gt;\r\n                    &lt;method&gt;myLink&lt;\/method&gt;\r\n                &lt;\/mymodule_name_controller_action_layout_load_before&gt;\r\n            &lt;\/observers&gt;\r\n        &lt;\/controller_action_layout_load_before&gt;\r\n    &lt;\/events&gt;\r\n&hellip;\r\n&lt;\/frontend&gt;<\/pre>\n<p>Creating an appropriate observer and a method for it:<\/p>\n<pre class=\"lang:php decode:true\">public function myLink(Varien_Event_Observer $observer)\r\n{\r\n    if (in_array($this-&gt;getGroupId(), Mage::helper('mymodule')-&gt;getAllowedGroups())) {\r\n        $observer-&gt;getEvent()-&gt;getLayout()-&gt;getUpdate()-&gt;addHandle(&lsquo;random_name_handle&rsquo;);\r\n    }\r\n}\r\n\r\npublic function getGroupId()\r\n{\r\n    $login = Mage::getSingleton( 'customer\/session' )-&gt;isLoggedIn();\r\n    if($login) {\r\n        return Mage::getSingleton('customer\/session')-&gt;getCustomerGroupId();\r\n    }\r\n\r\n    return FALSE;\r\n}<\/pre>\n<p>The key point &ndash; $observer-&gt;getEvent()-&gt;getLayout()-&gt;getUpdate()-&gt;addHandle(&lsquo;random_name_handle&rsquo;) &ndash; adds the handle &lt;random_name_handle&gt; and thereby adds the link if the condition is true.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-custom-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/magento-custom-development.png\" width=\"120\" height=\"120\" alt=\"magento custom development\" class=\"module_image\" title=\"Creating Dynamic Links in 'My Account' or in the 'Toplinks' Menu in Magento\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Custom Development<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento Custom Development <\/p><a href=\"https:\/\/belvg.com\/magento-custom-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"I am sure many of you have once faced the necessity of creating links in &#8230;","protected":false},"author":30,"featured_media":8967,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,34],"tags":[3,223],"class_list":["post-6635","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento","category-tipstricks","tag-magento","tag-magento-tips","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"I am sure many of you have once faced the necessity of creating links in &#039;My account&#039; or &#039;Toplinks&#039; menu. It is quite simple to implement...\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andrei Danilchyk\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#article\",\"name\":\"Creating Dynamic Links in 'My Account' or in the 'Toplinks' Menu in Magento | BelVG Blog\",\"headline\":\"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/05\\\/blog-links1.jpg\",\"width\":682,\"height\":170},\"datePublished\":\"2014-05-28T13:26:38+02:00\",\"dateModified\":\"2019-09-26T15:39:34+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#webpage\"},\"articleSection\":\"Magento, Tips&amp;Tricks, magento, Magento tips, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"position\":2,\"name\":\"Magento\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#listItem\",\"name\":\"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#listItem\",\"position\":3,\"name\":\"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk\",\"name\":\"Andrei Danilchyk\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/035c7a3d986ac8d09b60f02a1d47ab8822a92657f10160d588ea28f14db1efb7?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andrei Danilchyk\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html\",\"name\":\"Creating Dynamic Links in 'My Account' or in the 'Toplinks' Menu in Magento | BelVG Blog\",\"description\":\"I am sure many of you have once faced the necessity of creating links in 'My account' or 'Toplinks' menu. It is quite simple to implement...\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/05\\\/blog-links1.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html\\\/#mainImage\",\"width\":682,\"height\":170},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#mainImage\"},\"datePublished\":\"2014-05-28T13:26:38+02:00\",\"dateModified\":\"2019-09-26T15:39:34+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Creating Dynamic Links in 'My Account' or in the 'Toplinks' Menu in Magento | BelVG Blog","description":"I am sure many of you have once faced the necessity of creating links in 'My account' or 'Toplinks' menu. It is quite simple to implement...","canonical_url":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#article","name":"Creating Dynamic Links in 'My Account' or in the 'Toplinks' Menu in Magento | BelVG Blog","headline":"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento","author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2014\/05\/blog-links1.jpg","width":682,"height":170},"datePublished":"2014-05-28T13:26:38+02:00","dateModified":"2019-09-26T15:39:34+02:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#webpage"},"articleSection":"Magento, Tips&amp;Tricks, magento, Magento tips, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","position":2,"name":"Magento","item":"https:\/\/belvg.com\/blog\/category\/magento","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#listItem","name":"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#listItem","position":3,"name":"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author","url":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk","name":"Andrei Danilchyk","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/035c7a3d986ac8d09b60f02a1d47ab8822a92657f10160d588ea28f14db1efb7?s=96&d=mm&r=g","width":96,"height":96,"caption":"Andrei Danilchyk"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#webpage","url":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html","name":"Creating Dynamic Links in 'My Account' or in the 'Toplinks' Menu in Magento | BelVG Blog","description":"I am sure many of you have once faced the necessity of creating links in 'My account' or 'Toplinks' menu. It is quite simple to implement...","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2014\/05\/blog-links1.jpg","@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html\/#mainImage","width":682,"height":170},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html#mainImage"},"datePublished":"2014-05-28T13:26:38+02:00","dateModified":"2019-09-26T15:39:34+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"6635","title":"Creating Dynamic Links in 'My Account' or in the 'Toplinks' Menu in Magento | #site_title","description":"I am sure many of you have once faced the necessity of creating links in 'My account' or 'Toplinks' menu. It is quite simple to implement...","keywords":[{"label":"magento Dynamic Links","value":"magento Dynamic Links"}],"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:38:01","updated":"2026-11-03 18:38:01"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento\" title=\"Magento\">Magento<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating Dynamic Links in \u2018My Account\u2019 or in the \u2018Toplinks\u2019 Menu in Magento\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento","link":"https:\/\/belvg.com\/blog\/category\/magento"},{"label":"Creating Dynamic Links in &#8216;My Account&#8217; or in the &#8216;Toplinks&#8217; Menu in Magento","link":"https:\/\/belvg.com\/blog\/creating-dynamic-links-in-my-account-or-in-the-toplinks-menu-in-magento.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/6635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=6635"}],"version-history":[{"count":-3,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/6635\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/8967"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=6635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=6635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=6635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}