For the site I am currently working on I need several directories, eg company directory and weblinks directory.
However I want this to appear on the site as two different directories, although they share a common design and layout. To complete this illusion I wanted to get rid of the Root-link displayed in the category list on the Bookmarks-component detail page.
Also, I put all my "new root categories" directly below the category named "Root".
This is how you do it.
Here is the file that needs editing:
joomla15/components/com_bookmarks/bookmarks.php
Change
while ( $curcat != -2 ) { // Until Cat is RootCat's parent (-2)...
to
while ( $curcat != -1 ) { // Until Cat is RootCat's parent (-2)...
AND a few lines down comment out the arrowimage output:
/*
if (!$pathway) {
$ref = mosBookmarksTools::imageArrow() . ' ' . $ref;
}
*/
You will also need to do some hacking to get the menu link right. You need to use the menu type "External URL" and then send in something like this for the URL:
index.php?option=com_bookmarks&mode=0&catid=1
then you do the same for your other menu items linking to your specific directories:
index.php?option=com_bookmarks&mode=0&catid=2
...
That's it!
Only problem remaining is how to get the menu items to light up when they have been clicked...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment