Finding out layout handles being evaluated for a page The Next CEO of Stack OverflowTargeting multiple layout handles in layout XMLCMS XML Handles for Layout Updatesupdate layout using custom layout handlesUnderstanding types of layout handlesLoading layout on rewritten Mage_Adminhtml_Cms_Wysiwyg_ImagesController, handles emptyMagento xml layout for specific URLHow to find out which layout handles to be changed?Custom page layout handleHow to determine when custom layout XML is being usedHow to add custom layout handles programatically for Category View in Magento 2
Are police here, aren't itthey?
Solving system of ODEs with extra parameter
Why isn't acceleration always zero whenever velocity is zero, such as the moment a ball bounces off a wall?
RigExpert AA-35 - Interpreting The Information
How to scale a tikZ image which is within a figure environment
Beveled cylinder cutout
Why is information "lost" when it got into a black hole?
How to avoid supervisors with prejudiced views?
Won the lottery - how do I keep the money?
INSERT to a table from a database to other (same SQL Server) using Dynamic SQL
Is it possible to replace duplicates of a character with one character using tr
Which one is the true statement?
What happened in Rome, when the western empire "fell"?
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?
No sign flipping while figuring out the emf of voltaic cell?
Where do students learn to solve polynomial equations these days?
How to invert MapIndexed on a ragged structure? How to construct a tree from rules?
Bartok - Syncopation (1): Meaning of notes in between Grand Staff
Is French Guiana a (hard) EU border?
How do I align (1) and (2)?
Why did CATV standarize in 75 ohms and everyone else in 50?
Recycling old answers
Finding out layout handles being evaluated for a page
The Next CEO of Stack OverflowTargeting multiple layout handles in layout XMLCMS XML Handles for Layout Updatesupdate layout using custom layout handlesUnderstanding types of layout handlesLoading layout on rewritten Mage_Adminhtml_Cms_Wysiwyg_ImagesController, handles emptyMagento xml layout for specific URLHow to find out which layout handles to be changed?Custom page layout handleHow to determine when custom layout XML is being usedHow to add custom layout handles programatically for Category View in Magento 2
I am working on a project where I want to display few links on left side of top bar at Home page, as shown below.

To do this i created a new block with name left.top.links very similar to Magento's block top.links and modified header template and added this block before currency block, very similar to as described in the post here.
but even though i have named this block differently i.e. left.top.links when I logout Sign Up links gets added on both the blocks, top.links and left.top.links.
First place which I wanted to check was customer_logged_out handle in customer.xml, which looks completely OK to me and In fact, i could not find Sign Up link being added anywhere in Magento frontend layouts.
So, my question is, Is there any way to find out how Sign Up link is added in block? Also, what all layout handles are evaluated to render a page? Which will help me in checking on all those places.
layout blocks controllers toplinks layout-update
add a comment |
I am working on a project where I want to display few links on left side of top bar at Home page, as shown below.

To do this i created a new block with name left.top.links very similar to Magento's block top.links and modified header template and added this block before currency block, very similar to as described in the post here.
but even though i have named this block differently i.e. left.top.links when I logout Sign Up links gets added on both the blocks, top.links and left.top.links.
First place which I wanted to check was customer_logged_out handle in customer.xml, which looks completely OK to me and In fact, i could not find Sign Up link being added anywhere in Magento frontend layouts.
So, my question is, Is there any way to find out how Sign Up link is added in block? Also, what all layout handles are evaluated to render a page? Which will help me in checking on all those places.
layout blocks controllers toplinks layout-update
please confirm the right question.
– Fra
Jul 1 '14 at 17:48
Hi @Fra, my main question was to know, If there is any alternate way to addlinks. At the same time how we can figure out what all handles are being used so that we can confirm that it is definitely layout update handle. Answer to 2nd part is already answered below.
– Lalit
Jul 1 '14 at 17:59
maybe it is better to split the question in 2 question
– Fra
Jul 1 '14 at 19:32
add a comment |
I am working on a project where I want to display few links on left side of top bar at Home page, as shown below.

To do this i created a new block with name left.top.links very similar to Magento's block top.links and modified header template and added this block before currency block, very similar to as described in the post here.
but even though i have named this block differently i.e. left.top.links when I logout Sign Up links gets added on both the blocks, top.links and left.top.links.
First place which I wanted to check was customer_logged_out handle in customer.xml, which looks completely OK to me and In fact, i could not find Sign Up link being added anywhere in Magento frontend layouts.
So, my question is, Is there any way to find out how Sign Up link is added in block? Also, what all layout handles are evaluated to render a page? Which will help me in checking on all those places.
layout blocks controllers toplinks layout-update
I am working on a project where I want to display few links on left side of top bar at Home page, as shown below.

To do this i created a new block with name left.top.links very similar to Magento's block top.links and modified header template and added this block before currency block, very similar to as described in the post here.
but even though i have named this block differently i.e. left.top.links when I logout Sign Up links gets added on both the blocks, top.links and left.top.links.
First place which I wanted to check was customer_logged_out handle in customer.xml, which looks completely OK to me and In fact, i could not find Sign Up link being added anywhere in Magento frontend layouts.
So, my question is, Is there any way to find out how Sign Up link is added in block? Also, what all layout handles are evaluated to render a page? Which will help me in checking on all those places.
layout blocks controllers toplinks layout-update
layout blocks controllers toplinks layout-update
asked Jul 1 '14 at 7:11
LalitLalit
10912
10912
please confirm the right question.
– Fra
Jul 1 '14 at 17:48
Hi @Fra, my main question was to know, If there is any alternate way to addlinks. At the same time how we can figure out what all handles are being used so that we can confirm that it is definitely layout update handle. Answer to 2nd part is already answered below.
– Lalit
Jul 1 '14 at 17:59
maybe it is better to split the question in 2 question
– Fra
Jul 1 '14 at 19:32
add a comment |
please confirm the right question.
– Fra
Jul 1 '14 at 17:48
Hi @Fra, my main question was to know, If there is any alternate way to addlinks. At the same time how we can figure out what all handles are being used so that we can confirm that it is definitely layout update handle. Answer to 2nd part is already answered below.
– Lalit
Jul 1 '14 at 17:59
maybe it is better to split the question in 2 question
– Fra
Jul 1 '14 at 19:32
please confirm the right question.
– Fra
Jul 1 '14 at 17:48
please confirm the right question.
– Fra
Jul 1 '14 at 17:48
Hi @Fra, my main question was to know, If there is any alternate way to addlinks. At the same time how we can figure out what all handles are being used so that we can confirm that it is definitely layout update handle. Answer to 2nd part is already answered below.
– Lalit
Jul 1 '14 at 17:59
Hi @Fra, my main question was to know, If there is any alternate way to addlinks. At the same time how we can figure out what all handles are being used so that we can confirm that it is definitely layout update handle. Answer to 2nd part is already answered below.
– Lalit
Jul 1 '14 at 17:59
maybe it is better to split the question in 2 question
– Fra
Jul 1 '14 at 19:32
maybe it is better to split the question in 2 question
– Fra
Jul 1 '14 at 19:32
add a comment |
4 Answers
4
active
oldest
votes
try this
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
1
this is work like a charm, it is the correct answer !
– Fra
Jul 1 '14 at 17:48
@deepak, Thanks for this, worked well for me but even after going through all layout handles, I couldn't find any place whereSign Uplink is being added. Do you know, any other place where i should look?
– Lalit
Jul 1 '14 at 17:49
sign up link is added through addLink action which can be found in customer.xml
– Deepak Mallah
Jul 2 '14 at 6:54
add a comment |
or better use some developer extensions like
Commerce Bug
or
Mgt Developer Toolbar
We use both of them and give you a lot of usefull information.
regards
@glueseppe,@marius Thanks for great share. Even after looking into these layout update handles, I can't find any sign of howSign Uplink is being added in my custom link navigation. Is there any other way to find that out?
– Lalit
Jul 1 '14 at 17:46
add a comment |
To list all layout handle, the approach suggested by @Deepak Mallah works fine:
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
Anyway I think it is not exactly clear to you what is Layout Handle is suggest to dig more on its function in layout files. ( not part of the question/answer )
Here what you are looking for
Give a look at Mage_Page_Block_Template_Links and addlink() method.
In default Magento theme the link "Sign up" is labeled "Log In", this link it is added to the block top.links in app/design/frontend/base/default/layout/customer.xml layout file using the method addlink()
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Log Out</label>
<url helper="customer/getLogoutUrl"/>
<title>Log Out</title>
<prepare/>
<urlParams/>
<position>100</position>
</action>
</reference>
</customer_logged_in>
Note:customer_logged_in is a special layout handle that:
<!--
Load this update on every page when customer is logged in
-->
I have checked in all these places but wasn't able to find out. Even i can't see it anywhere in layout of theme i have installed. but as you mentioned in base Magento themeSign Upbutton is labeled asLoginso there is good chance that i can find it in theme's code.
– Lalit
Jul 2 '14 at 4:52
search layout files for this textcustomer_logged_in... if you cannot find anything it is probably added by template or code. I would also suggest to put a breakpoint in theaddlink()method so you can see if it added by it
– Fra
Jul 2 '14 at 11:03
In my case it'scustomer_logged_outas i want to show this link when customer is logged out but I can try debugging in addlink method, that should help. :)
– Lalit
Jul 2 '14 at 11:16
Hi @Fra, I added logs in addLink method to check whenSign Upis being added in navigation and to see If i can figure out how this link is being added But to my surprise, it seemsSign Uplink is Not added using addLink method inpage/template_links. I can see the log for all the other navigation links but not forSign Up. Is there any other way to add the navigation links?
– Lalit
Jul 5 '14 at 5:17
The reason why i couldn't find it inpage/template_linksbecause link was added in template file (links.phtml) for theme I was using. For people who might find same issue for Shopper theme, here is discussion thread: help.queldorei.com/discussion/comment/18537
– Lalit
Jul 9 '14 at 7:13
add a comment |
For Magento 2 within phtml template files:
<?php var_dump($block->getLayout()->getUpdate()->getHandles()); ?>
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f25565%2ffinding-out-layout-handles-being-evaluated-for-a-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
try this
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
1
this is work like a charm, it is the correct answer !
– Fra
Jul 1 '14 at 17:48
@deepak, Thanks for this, worked well for me but even after going through all layout handles, I couldn't find any place whereSign Uplink is being added. Do you know, any other place where i should look?
– Lalit
Jul 1 '14 at 17:49
sign up link is added through addLink action which can be found in customer.xml
– Deepak Mallah
Jul 2 '14 at 6:54
add a comment |
try this
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
1
this is work like a charm, it is the correct answer !
– Fra
Jul 1 '14 at 17:48
@deepak, Thanks for this, worked well for me but even after going through all layout handles, I couldn't find any place whereSign Uplink is being added. Do you know, any other place where i should look?
– Lalit
Jul 1 '14 at 17:49
sign up link is added through addLink action which can be found in customer.xml
– Deepak Mallah
Jul 2 '14 at 6:54
add a comment |
try this
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
try this
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
answered Jul 1 '14 at 7:48
Deepak MallahDeepak Mallah
1,25421425
1,25421425
1
this is work like a charm, it is the correct answer !
– Fra
Jul 1 '14 at 17:48
@deepak, Thanks for this, worked well for me but even after going through all layout handles, I couldn't find any place whereSign Uplink is being added. Do you know, any other place where i should look?
– Lalit
Jul 1 '14 at 17:49
sign up link is added through addLink action which can be found in customer.xml
– Deepak Mallah
Jul 2 '14 at 6:54
add a comment |
1
this is work like a charm, it is the correct answer !
– Fra
Jul 1 '14 at 17:48
@deepak, Thanks for this, worked well for me but even after going through all layout handles, I couldn't find any place whereSign Uplink is being added. Do you know, any other place where i should look?
– Lalit
Jul 1 '14 at 17:49
sign up link is added through addLink action which can be found in customer.xml
– Deepak Mallah
Jul 2 '14 at 6:54
1
1
this is work like a charm, it is the correct answer !
– Fra
Jul 1 '14 at 17:48
this is work like a charm, it is the correct answer !
– Fra
Jul 1 '14 at 17:48
@deepak, Thanks for this, worked well for me but even after going through all layout handles, I couldn't find any place where
Sign Up link is being added. Do you know, any other place where i should look?– Lalit
Jul 1 '14 at 17:49
@deepak, Thanks for this, worked well for me but even after going through all layout handles, I couldn't find any place where
Sign Up link is being added. Do you know, any other place where i should look?– Lalit
Jul 1 '14 at 17:49
sign up link is added through addLink action which can be found in customer.xml
– Deepak Mallah
Jul 2 '14 at 6:54
sign up link is added through addLink action which can be found in customer.xml
– Deepak Mallah
Jul 2 '14 at 6:54
add a comment |
or better use some developer extensions like
Commerce Bug
or
Mgt Developer Toolbar
We use both of them and give you a lot of usefull information.
regards
@glueseppe,@marius Thanks for great share. Even after looking into these layout update handles, I can't find any sign of howSign Uplink is being added in my custom link navigation. Is there any other way to find that out?
– Lalit
Jul 1 '14 at 17:46
add a comment |
or better use some developer extensions like
Commerce Bug
or
Mgt Developer Toolbar
We use both of them and give you a lot of usefull information.
regards
@glueseppe,@marius Thanks for great share. Even after looking into these layout update handles, I can't find any sign of howSign Uplink is being added in my custom link navigation. Is there any other way to find that out?
– Lalit
Jul 1 '14 at 17:46
add a comment |
or better use some developer extensions like
Commerce Bug
or
Mgt Developer Toolbar
We use both of them and give you a lot of usefull information.
regards
or better use some developer extensions like
Commerce Bug
or
Mgt Developer Toolbar
We use both of them and give you a lot of usefull information.
regards
edited Jul 1 '14 at 12:31
Marius♦
167k28319686
167k28319686
answered Jul 1 '14 at 11:03
GiuseppeGiuseppe
1,043711
1,043711
@glueseppe,@marius Thanks for great share. Even after looking into these layout update handles, I can't find any sign of howSign Uplink is being added in my custom link navigation. Is there any other way to find that out?
– Lalit
Jul 1 '14 at 17:46
add a comment |
@glueseppe,@marius Thanks for great share. Even after looking into these layout update handles, I can't find any sign of howSign Uplink is being added in my custom link navigation. Is there any other way to find that out?
– Lalit
Jul 1 '14 at 17:46
@glueseppe,@marius Thanks for great share. Even after looking into these layout update handles, I can't find any sign of how
Sign Up link is being added in my custom link navigation. Is there any other way to find that out?– Lalit
Jul 1 '14 at 17:46
@glueseppe,@marius Thanks for great share. Even after looking into these layout update handles, I can't find any sign of how
Sign Up link is being added in my custom link navigation. Is there any other way to find that out?– Lalit
Jul 1 '14 at 17:46
add a comment |
To list all layout handle, the approach suggested by @Deepak Mallah works fine:
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
Anyway I think it is not exactly clear to you what is Layout Handle is suggest to dig more on its function in layout files. ( not part of the question/answer )
Here what you are looking for
Give a look at Mage_Page_Block_Template_Links and addlink() method.
In default Magento theme the link "Sign up" is labeled "Log In", this link it is added to the block top.links in app/design/frontend/base/default/layout/customer.xml layout file using the method addlink()
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Log Out</label>
<url helper="customer/getLogoutUrl"/>
<title>Log Out</title>
<prepare/>
<urlParams/>
<position>100</position>
</action>
</reference>
</customer_logged_in>
Note:customer_logged_in is a special layout handle that:
<!--
Load this update on every page when customer is logged in
-->
I have checked in all these places but wasn't able to find out. Even i can't see it anywhere in layout of theme i have installed. but as you mentioned in base Magento themeSign Upbutton is labeled asLoginso there is good chance that i can find it in theme's code.
– Lalit
Jul 2 '14 at 4:52
search layout files for this textcustomer_logged_in... if you cannot find anything it is probably added by template or code. I would also suggest to put a breakpoint in theaddlink()method so you can see if it added by it
– Fra
Jul 2 '14 at 11:03
In my case it'scustomer_logged_outas i want to show this link when customer is logged out but I can try debugging in addlink method, that should help. :)
– Lalit
Jul 2 '14 at 11:16
Hi @Fra, I added logs in addLink method to check whenSign Upis being added in navigation and to see If i can figure out how this link is being added But to my surprise, it seemsSign Uplink is Not added using addLink method inpage/template_links. I can see the log for all the other navigation links but not forSign Up. Is there any other way to add the navigation links?
– Lalit
Jul 5 '14 at 5:17
The reason why i couldn't find it inpage/template_linksbecause link was added in template file (links.phtml) for theme I was using. For people who might find same issue for Shopper theme, here is discussion thread: help.queldorei.com/discussion/comment/18537
– Lalit
Jul 9 '14 at 7:13
add a comment |
To list all layout handle, the approach suggested by @Deepak Mallah works fine:
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
Anyway I think it is not exactly clear to you what is Layout Handle is suggest to dig more on its function in layout files. ( not part of the question/answer )
Here what you are looking for
Give a look at Mage_Page_Block_Template_Links and addlink() method.
In default Magento theme the link "Sign up" is labeled "Log In", this link it is added to the block top.links in app/design/frontend/base/default/layout/customer.xml layout file using the method addlink()
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Log Out</label>
<url helper="customer/getLogoutUrl"/>
<title>Log Out</title>
<prepare/>
<urlParams/>
<position>100</position>
</action>
</reference>
</customer_logged_in>
Note:customer_logged_in is a special layout handle that:
<!--
Load this update on every page when customer is logged in
-->
I have checked in all these places but wasn't able to find out. Even i can't see it anywhere in layout of theme i have installed. but as you mentioned in base Magento themeSign Upbutton is labeled asLoginso there is good chance that i can find it in theme's code.
– Lalit
Jul 2 '14 at 4:52
search layout files for this textcustomer_logged_in... if you cannot find anything it is probably added by template or code. I would also suggest to put a breakpoint in theaddlink()method so you can see if it added by it
– Fra
Jul 2 '14 at 11:03
In my case it'scustomer_logged_outas i want to show this link when customer is logged out but I can try debugging in addlink method, that should help. :)
– Lalit
Jul 2 '14 at 11:16
Hi @Fra, I added logs in addLink method to check whenSign Upis being added in navigation and to see If i can figure out how this link is being added But to my surprise, it seemsSign Uplink is Not added using addLink method inpage/template_links. I can see the log for all the other navigation links but not forSign Up. Is there any other way to add the navigation links?
– Lalit
Jul 5 '14 at 5:17
The reason why i couldn't find it inpage/template_linksbecause link was added in template file (links.phtml) for theme I was using. For people who might find same issue for Shopper theme, here is discussion thread: help.queldorei.com/discussion/comment/18537
– Lalit
Jul 9 '14 at 7:13
add a comment |
To list all layout handle, the approach suggested by @Deepak Mallah works fine:
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
Anyway I think it is not exactly clear to you what is Layout Handle is suggest to dig more on its function in layout files. ( not part of the question/answer )
Here what you are looking for
Give a look at Mage_Page_Block_Template_Links and addlink() method.
In default Magento theme the link "Sign up" is labeled "Log In", this link it is added to the block top.links in app/design/frontend/base/default/layout/customer.xml layout file using the method addlink()
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Log Out</label>
<url helper="customer/getLogoutUrl"/>
<title>Log Out</title>
<prepare/>
<urlParams/>
<position>100</position>
</action>
</reference>
</customer_logged_in>
Note:customer_logged_in is a special layout handle that:
<!--
Load this update on every page when customer is logged in
-->
To list all layout handle, the approach suggested by @Deepak Mallah works fine:
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
Anyway I think it is not exactly clear to you what is Layout Handle is suggest to dig more on its function in layout files. ( not part of the question/answer )
Here what you are looking for
Give a look at Mage_Page_Block_Template_Links and addlink() method.
In default Magento theme the link "Sign up" is labeled "Log In", this link it is added to the block top.links in app/design/frontend/base/default/layout/customer.xml layout file using the method addlink()
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer">
<label>Log Out</label>
<url helper="customer/getLogoutUrl"/>
<title>Log Out</title>
<prepare/>
<urlParams/>
<position>100</position>
</action>
</reference>
</customer_logged_in>
Note:customer_logged_in is a special layout handle that:
<!--
Load this update on every page when customer is logged in
-->
edited Jul 1 '14 at 19:48
answered Jul 1 '14 at 19:35
FraFra
4,565114994
4,565114994
I have checked in all these places but wasn't able to find out. Even i can't see it anywhere in layout of theme i have installed. but as you mentioned in base Magento themeSign Upbutton is labeled asLoginso there is good chance that i can find it in theme's code.
– Lalit
Jul 2 '14 at 4:52
search layout files for this textcustomer_logged_in... if you cannot find anything it is probably added by template or code. I would also suggest to put a breakpoint in theaddlink()method so you can see if it added by it
– Fra
Jul 2 '14 at 11:03
In my case it'scustomer_logged_outas i want to show this link when customer is logged out but I can try debugging in addlink method, that should help. :)
– Lalit
Jul 2 '14 at 11:16
Hi @Fra, I added logs in addLink method to check whenSign Upis being added in navigation and to see If i can figure out how this link is being added But to my surprise, it seemsSign Uplink is Not added using addLink method inpage/template_links. I can see the log for all the other navigation links but not forSign Up. Is there any other way to add the navigation links?
– Lalit
Jul 5 '14 at 5:17
The reason why i couldn't find it inpage/template_linksbecause link was added in template file (links.phtml) for theme I was using. For people who might find same issue for Shopper theme, here is discussion thread: help.queldorei.com/discussion/comment/18537
– Lalit
Jul 9 '14 at 7:13
add a comment |
I have checked in all these places but wasn't able to find out. Even i can't see it anywhere in layout of theme i have installed. but as you mentioned in base Magento themeSign Upbutton is labeled asLoginso there is good chance that i can find it in theme's code.
– Lalit
Jul 2 '14 at 4:52
search layout files for this textcustomer_logged_in... if you cannot find anything it is probably added by template or code. I would also suggest to put a breakpoint in theaddlink()method so you can see if it added by it
– Fra
Jul 2 '14 at 11:03
In my case it'scustomer_logged_outas i want to show this link when customer is logged out but I can try debugging in addlink method, that should help. :)
– Lalit
Jul 2 '14 at 11:16
Hi @Fra, I added logs in addLink method to check whenSign Upis being added in navigation and to see If i can figure out how this link is being added But to my surprise, it seemsSign Uplink is Not added using addLink method inpage/template_links. I can see the log for all the other navigation links but not forSign Up. Is there any other way to add the navigation links?
– Lalit
Jul 5 '14 at 5:17
The reason why i couldn't find it inpage/template_linksbecause link was added in template file (links.phtml) for theme I was using. For people who might find same issue for Shopper theme, here is discussion thread: help.queldorei.com/discussion/comment/18537
– Lalit
Jul 9 '14 at 7:13
I have checked in all these places but wasn't able to find out. Even i can't see it anywhere in layout of theme i have installed. but as you mentioned in base Magento theme
Sign Up button is labeled as Login so there is good chance that i can find it in theme's code.– Lalit
Jul 2 '14 at 4:52
I have checked in all these places but wasn't able to find out. Even i can't see it anywhere in layout of theme i have installed. but as you mentioned in base Magento theme
Sign Up button is labeled as Login so there is good chance that i can find it in theme's code.– Lalit
Jul 2 '14 at 4:52
search layout files for this text
customer_logged_in ... if you cannot find anything it is probably added by template or code. I would also suggest to put a breakpoint in the addlink() method so you can see if it added by it– Fra
Jul 2 '14 at 11:03
search layout files for this text
customer_logged_in ... if you cannot find anything it is probably added by template or code. I would also suggest to put a breakpoint in the addlink() method so you can see if it added by it– Fra
Jul 2 '14 at 11:03
In my case it's
customer_logged_out as i want to show this link when customer is logged out but I can try debugging in addlink method, that should help. :)– Lalit
Jul 2 '14 at 11:16
In my case it's
customer_logged_out as i want to show this link when customer is logged out but I can try debugging in addlink method, that should help. :)– Lalit
Jul 2 '14 at 11:16
Hi @Fra, I added logs in addLink method to check when
Sign Up is being added in navigation and to see If i can figure out how this link is being added But to my surprise, it seems Sign Up link is Not added using addLink method in page/template_links. I can see the log for all the other navigation links but not for Sign Up. Is there any other way to add the navigation links?– Lalit
Jul 5 '14 at 5:17
Hi @Fra, I added logs in addLink method to check when
Sign Up is being added in navigation and to see If i can figure out how this link is being added But to my surprise, it seems Sign Up link is Not added using addLink method in page/template_links. I can see the log for all the other navigation links but not for Sign Up. Is there any other way to add the navigation links?– Lalit
Jul 5 '14 at 5:17
The reason why i couldn't find it in
page/template_links because link was added in template file (links.phtml) for theme I was using. For people who might find same issue for Shopper theme, here is discussion thread: help.queldorei.com/discussion/comment/18537– Lalit
Jul 9 '14 at 7:13
The reason why i couldn't find it in
page/template_links because link was added in template file (links.phtml) for theme I was using. For people who might find same issue for Shopper theme, here is discussion thread: help.queldorei.com/discussion/comment/18537– Lalit
Jul 9 '14 at 7:13
add a comment |
For Magento 2 within phtml template files:
<?php var_dump($block->getLayout()->getUpdate()->getHandles()); ?>
add a comment |
For Magento 2 within phtml template files:
<?php var_dump($block->getLayout()->getUpdate()->getHandles()); ?>
add a comment |
For Magento 2 within phtml template files:
<?php var_dump($block->getLayout()->getUpdate()->getHandles()); ?>
For Magento 2 within phtml template files:
<?php var_dump($block->getLayout()->getUpdate()->getHandles()); ?>
answered 2 days ago
Chris RogersChris Rogers
255211
255211
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f25565%2ffinding-out-layout-handles-being-evaluated-for-a-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
please confirm the right question.
– Fra
Jul 1 '14 at 17:48
Hi @Fra, my main question was to know, If there is any alternate way to addlinks. At the same time how we can figure out what all handles are being used so that we can confirm that it is definitely layout update handle. Answer to 2nd part is already answered below.
– Lalit
Jul 1 '14 at 17:59
maybe it is better to split the question in 2 question
– Fra
Jul 1 '14 at 19:32