adding extra Categories/link

top250

Member
hello i want to ad a partner categorie the sidebar end want to know if this is possible
by using the menu creator in the acp.

i have only header in my list to ad a new menu to so want to know if it is also possible to ad menus/categories to the sidebar ??



grtz patrick
 

leonor

Active Member
License Active
open wrapper.html and search for <div id="sidebar"> and adding there <h3 class="heading">Partners</h3> ...
 

Mark

Administrator
Staff member
if you create a category in admin panel it will automatically populate the list of categories in the sidebar.

You can also make a new menu using the menu manager, and simply paste the {$menu-2} tag provided into wrapper.
 

Basti

Administrator
Staff member
You mean a new block in the sidebar with partners right? Then read on.
This may sound like much text and stuff to do, but some explaining is there as well.

First of create a new menu in ACP at Content -> manage menus -> Create new Menu tab.
Then add a few links to it by going to the Add new menu item tab and select the menu which you want to add it to.
Now when you edit that menu "Sidebar" or however you named it, which you created before, you will see a template tag which you have to use. Its located at the menu details right to the menu name.
Copy this template tag ( most likely {$menu-2} )

Now you will want to put this into your template, asuming you use parabola go to Settings -> Skins and Categories and click "Edit Child"
This is only supported in VL 0.8, so you dont need to edit the main parabola files.
On that page see all the files below "Select Template to Copy" ?? Click on wrapper.html and screen.css
That will copy them into the parabola child folder so you can update parabola safely in the future

Now you see your 2 new child files under "Edit Child Template", click on wrapper.html and find
* if not on 0.8 or your server dont support editing from admin control panel, you need to create a folder named "child" in parabola and copy wrapper.html and screen.css to that folder
Code:
{$sidebar_1_bottom}
And below that put
Code:
<h3 class="heading">Your text</h3>
{$menu-2}
Replace {$menu-2} with the template tag from your new menu

Now this is the minimum, to give a little extra to it and style it the same way as for example the rankings method menu, in wrapper.html find this
Code:
$(".category_menu > li a").hover(
Change that to
Code:
$(".category_menu > li a, .menu-2 > li a").hover(
menu-2 is your template tag again, change if needed. This change is to give it the same hover effect as the other sidebar menus

Next a small css change
in screen.css
Code:
.category_menu li{
change to
Code:
.category_menu li, .menu-2 li {
menu-2 is agin your template tag
This will give this new menu the same styling as the other menu blocks on the sidebar.
 

top250

Member
ok thank you for the information i will going to try if i can do this let you know when finished-or whit problems LOL
 

top250

Member
looks like i got it done the only question left is how cane i ad a small logo in the partner section so that when you click the picture you will be redirected to that page of your partner ??


thanks for the help so fare


patrick
 

Basti

Administrator
Staff member
Just add your img code into the title field instead of text <img src="imagepath.png" alt="" />
and the link goes normally into the url field
 
Top