Made a category, but how do i remove the blue box(sidebar) with the foldername, in only this one? sidebar -> categoryBox
i have really no idea what do you mean, could you make a screenshot of a whole page?
Thanks for asking into my issue.
The “TEST” box, is one i made myself. the above one “Design selv” is the standard category one, that i want to have removed. In the end i want only the smarty object in the right
dou yu want to remove this box generally or only in this category?
in both cases have a look into the file: out/your current theme/tpl/layout/sidebar.tpl
I suppose [{block name=“sidebar_categoriestree”}] is responsible for this box, try to put [{* *}] around this code.
That works fine if i want to remove the sidebar from all categories, but i only need it for this single category. some “if statement” is needed or ?
exactly, put something like this around the [{block}]
[if $actCategory->getTitle() ne "name of the category you dont'want to have this box" }]
... block
[{/if}]
[{if $actCategory->getTitle() ne “Markedsplads2”}]
[{block name=“sidebar_categoriestree”}]
[{if $oxcmp_categories }]
[{include file=“widget/sidebar/categoriestree.tpl” categories=$oxcmp_categories->getClickRoot() act=$oxcmp_categories->getClickCat() deepLevel=0}]
[{/if}]
[{/block}]
[{/if}]
isnt working… ill look into it, while its posted here
edit: tryed without the block, but that also makes the page messup, so i guess its the it statement, thats isnt valid. idea?
ok, modify the if-statement:
[{if $oView->getClassName() eq "alist" && $actCategory->getTitle() ne "Markedsplads2"}]
...
Thank worked, thanks a lot
How can i do it on an external link?
I dont know anything about smarty etc. but i tryed some stuff, and the below didnt work:
[{$actCategory->oxcategories__oxextlink->value}]
what exactly do you mean with “it”? Removing external links on category page?
external links usually replaces the “normal” category page with product list and forward you to the url set in the external link
“index.php?cl=marketplace” is the external link. Its for a designer module.
<I have removed the url>
Would have responded faster, but i didnt notice this post has come on page 2… going to bed now, thanks for your help!
so “marketplace” is a class, you should be able to check the usual way if this page/link is active
Dont know what you mean. The only thing i know of, when we talk about “active”, is if the link is active/enabled. i dont know anything about current, “active”, in focus - as i want it to be, just like a category is, when it doesnt use an external link
The following, did it for me. thanks:
[{if $smarty.get.cl == “marketplace”}]
… block
[{/if}]