magento - Update left column for certain Category/how to set Category Id in layout file -
I want a block that displays slideshow on the left for some class. I found a slideshow block display in all the pages by referencing the left column in the layout file, although the slideshow is shown in only a few categories on the left (id 225)
My Solution Road Map has so far Is: 1. Re-write the special category URL in my specific module / controller / action (test / index / index). 2. Layout file in test / index / index test.xml I want to override list header handle catalog_category_default (I found it by using Alan storm layout scenes) which will update the left column with my new slide show block. How does this look like my test.xml file
This is giving me the following error: Critical Error: Call a member function getMetaTitle ()
By the error I have concluded that the handle is overheaded, but the category id is missing in I / O / I / I / I / because the line is 43:
if ($ Title = $ this-> getCurrentCategory () -> getMetaTitle ()) {
As you see, I have tried to set the range ID Test.xml is in the layout file but without much success.
How to set the category id in the layout file? Is this possible solution or the right way? Do I really have overhead handles?
Thanks Margotes
In the Admin section, a category for applying layout updates There is a field while editing, you can add your block XML there, if you like it in the code, the Category page adds a 'handle' which contains the identity card, 'CATEGORY_123' for example and you By adding it to your reference, you can add:
& lt; CATEGORY_123 & gt; & Lt; Reference name = "left" & gt; & Lt; Block type = "" & gt; (Etc) & lt; / References & gt; & Lt; / CATEGORY_123 & gt;
Comments
Post a Comment