Wednesday, January 20, 2010

ADDITION OF TABS IN MAIN NAVIGATION OF PLONE 3




First create folders for the Required sections, into which you will add content. Each of the above sections will be visible in your top-level navigation. Within each top-level folder, you can also create subfolders.
To create a folder, go to your homepage, select Add new... and choose the Folder option from the drop-down list, Specify the Title and the optional Description.
Click on Save, and then make sure that your folder has been published, after that on refreshing you can be able to see the Brand New tab which you have added.

OR
IF YOU HAVE ALREADY INSTALLED qPloneDropDownMenu-0.2.1 (VERSION NOT IMPORTANT) THAN THIS METHOD WILL NOT WORK
THEN TRY THIS
Go to the Plone Site Setup and choose the DROP DOWN MENU from the Add-on Product Configuration which you have recently installed and simply add the TAB by adding the lines for new tab by giving the path.
The Script will be like as shown except the code written between ul Tag (that code is for Drop Down Menu) if and only if you have installed the qPloneDropDownMenu-0.2.1 package otherwise older method will work.


FOR GETTING DROP DOWN MENUS

* You have to install qPloneDropDownMenu-0.2.1 and add the following lines between the TABS code like this

<li id="portaltab-Members" class="plain">
<a href="http://localhost:8080/ncra/Members" accesskey="t" title="Container for users' home directories">Users</a>
<ul>
<li><a href="localhost:8080/ncra/Members/akshat">Akshat</a></li>
<li><a href="localhost:8080/ncra/Members/xyz">XYZ</a></li>
</ul>
</li>


FULL SCRIPT WILL LOOK LIKE THIS

<li id="portaltab-index_html" class="plain">
<a href="http://localhost:8080/ncra" accesskey="t" title="">Home</a>
</li>
<li id="portaltab-Members" class="plain">
<a href="http://localhost:8080/ncra/Members" accesskey="t" title="Container for users' home directories">Users</a>
<ul>
<li><a href="localhost:8080/ncra/Members/akshat">Akshat</a></li>
<li><a href="localhost:8080/ncra/Members/xyz">XYZ</a></li>
</ul>
</li>
<li id="portaltab-gmrt-1" class="plain">
<a href="http://localhost:8080/ncra/gmrt-1" accesskey="t" title="GIANT METERWAVE RADIO TELESCOPE - KHODAD">GMRT</a>
<ul>
<li><a href="http://localhost:8080/ncra/gmrt-1/gmrt-array">GMRT Array</a></li>
<li><a href="http://localhost:8080/ncra/gmrt-1/images/folder_contents">Images</a></li>
</ul>
</li>

No comments:

Post a Comment