Forums » Customize

restruction the menu

chirs
UNITED STATES
2008-06-29 21:27:50
 

My navigation menu is getting a bit long, and I thought it would be nice to organize everything in paragraph format. Instead of having a list of menu items 20+ lines long, everything would just be comma delineated instead.
for example: www.damonzucconi.com
How would i do this? Is it the tag that's structuring this in list form, or do I need to mess with index.php?
thanks!

Vaska A
I WROTE THIS
2008-06-29 21:34:29
 

Yes, you would need to edit the menu setup in index.php. But, I encourage you to write a custom plugin and drop it into place. You an start out by copying and pasting the existing menu code...and reading the basic tutorial about plugin creation...see how far you can go and keep us posted on your progress. If you give it a shot...we'll try to get you over some of the rough parts...

chirs
UNITED STATES
2008-06-29 21:36:36
 

thanks vaska. i'll begin looking into it.

chirs
UNITED STATES
2008-06-29 21:52:20
 

looks like i'll be working with lines 88-197 of index.php in the site/plugins. is that correct?
do i cut this out of index.php to make a new plugin? or do copy and paste it?

chirs
UNITED STATES
2008-06-29 22:20:01
 

ok. i just duplicated index.php and made some modifications. i'll try making this a plugin when i get my head around how the php works a little better.
for now this hack seems to be working.
this isn't comma delineated but maybe some css can make it look a bit more organized


$s = '';

foreach($order as $key => $out)
{
$s .= "

\n";

if ($out[0]['disp'] == 1) $s .= "" . $key . "\n";

foreach($out as $page)
{
$active = ($rs['id'] == $page['id']) ? " class='active'" : '';

$s .= "" . $page['title'] . "\n";
}

$s .= "

\n\n";
}

return $s;

Showing 1 - 5 of 5 posts in Forum > Customize > restruction the menu
 

You need to be logged in to post.