[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[phoenix-dev] New Nav bar functionality
|
This morning I added the ability to add separators to the Nav bar, and
to indent links as well.
Please see http://phoenix.eclipse.org/downloads/ for a sample.
Downloads Home -> is a separator
By project -> is a "level 2" link
By topic -> also a "level 2" link
Source code -> also a "level 2" link
You can also define "level 3" links, but no deeper.
To use this functionality, please update your eclipse.org-common
directory with the Phoenix CVS (Team/Update) then modify your
_projectCommon.php file as so:
# Define your project-wide Nav bars here.
$Nav->addNavSeparator("Downloads Home", "/downloads/");
$Nav->addCustomNav("By project", "index_project.php", "_self", 2);
$Nav->addCustomNav("By topic","index_topic.php", "_self", 2);
$Nav->addCustomNav("Source code", "http://dev.eclipse.org/","_self", 2);
Note the , 2 at the end of the lines. Replace with ,3 for level 3
links, or ,1 for level 1 links.
If I was to expand "By topic" I could do it like this:
$Nav->addNavSeparator("Downloads Home", "/downloads/"); # collapsed
$Nav->addNavSeparator("By topic","index_topic.php"); # collapsed
$Nav->addCustomNav("Java", "index_java.php", "_self", 3);
$Nav->addCustomNav("PHP","index_php.php", "_self", 3);
$Nav->addCustomNav("Apps", "http://dev.eclipse.org/","_self", 3);
Play around with it and let me know what you think.
Denis
--
Denis Roy
Manager, IT Infrastructure
Eclipse Foundation, Inc.
Office: 613.224.9461 x224
Cell: 819.210.6481
denis.roy@xxxxxxxxxxx