kele7 Posted July 11, 2014 Share Posted July 11, 2014 Hello I hope that someone can help me... i made cms page about company data and their is subcatagories such as contact, public information etd.. they are shown in left column in cmsblock.. now i made another cms page with another subcatagories and show in left column.. but now are both in subcategories in left column.. soo when on my web site go to the page abaout company i have in left column categories about company and categories about the new page...when go to the new cms page i have both left column in my page too.. so have can i made that when i am in page about company thaht shows only subcategories about company and when i am in new cms page that shows only about new page categories in left.. please help Link to comment Share on other sites More sharing options...
NemoPS Posted July 11, 2014 Share Posted July 11, 2014 Hi!Did you create 2 separate cms categories for them? Or do they sit in the same one? Link to comment Share on other sites More sharing options...
kele7 Posted July 11, 2014 Author Share Posted July 11, 2014 i made two separate cms categories for them.. one categories is company information second is other offers and then in cmsblock modul i made two left block for each of categories Link to comment Share on other sites More sharing options...
NemoPS Posted July 12, 2014 Share Posted July 12, 2014 But they get mixed up under the same? can you share a link to the site? Link to comment Share on other sites More sharing options...
kele7 Posted July 13, 2014 Author Share Posted July 13, 2014 (edited) Yes. Edited July 15, 2014 by kele7 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 14, 2014 Share Posted July 14, 2014 Yes, of course Link to comment Share on other sites More sharing options...
NemoPS Posted July 15, 2014 Share Posted July 15, 2014 Ok, I tested the site. But the fact is, they already belong to 2 different blocks, do you want to hide one of the 2 when not in a page belonging to that category? If so, it requires code modifications, I am afraid Link to comment Share on other sites More sharing options...
kele7 Posted July 15, 2014 Author Share Posted July 15, 2014 thanks for testing site... yes you have right, my purpose is to hide one of the two unfortunately.. so only way is with code mogifications, i can not used a other or copy cms block for each category specifically..? Link to comment Share on other sites More sharing options...
NemoPS Posted July 16, 2014 Share Posted July 16, 2014 Well no, you can copy the code of cmsblock in the block itself, the use and if statement to target the current id_page, but it might get tricky to actually know if the current page belongs to the parent category, directly from the template (and defeats the MVC pattern anyway) Link to comment Share on other sites More sharing options...
kele7 Posted July 16, 2014 Author Share Posted July 16, 2014 This sounds difficult to do.. i have in my minde to do with if statemant, but like you say it's gonna be tricky. because i don't know were to use if statemant.. I really appreciate your help! tnx Link to comment Share on other sites More sharing options...
Recommended Posts