[jifty-devel] Help with jifty navigation menu tabs

William Heath wgheath at gmail.com
Tue Sep 12 20:41:26 EDT 2006


Hi All,

I love jifty thanks for making this excellent framework.  I am still a
little new to jifty and have a web menu tab navigation issue.  The code I am
using to build my menu is:

my $top = Jifty->web->navigation;

$top->child("Records"       => url => "/", sort_order => 1);
$top->child("Work Order"       => url => "/workorder", sort_order => 2);
$top->child("Grid Calibration"       => url => "/gridcalib", sort_order =>
3);
$top->child("Inventory"       => url => "/inventory", sort_order => 4);
$top->child("BOMs"       => url => "/boms", sort_order => 5);
$top->child("Schedules"       => url => "/schedules", sort_order => 6);
$top->child("Manuals"       => url => "/manuals", sort_order => 7);

Then in my index.html I have:

<%init>

  my $nav = Jifty->web->navigation->child("Records" => url => '/');
    $nav->child("Grid Calibration" => url => 'gridcalib', label => "Grid
Calibration");
    $nav->child("Equipment Maintenance" => url => 'equipmaint', label =>
"Equipment Maintenance");
    $nav->child("Environmental Conditions" => url => 'envcond', label =>
"Environmental Conditions");
    $nav->child("CARs" => url => 'cars', label => "CARs");
    $nav->child("Meeting Minutes" => url => 'meetingminutes', label =>
"Meeting Minutes");
    $nav->child("Internal Audits" => url => 'internalaudits', label =>
"Internal Audits");
    $nav->child("Reviews" => url => 'reviews', label => "reviews");
    $nav->child("Training" => url => 'training', label => "training");

  </%init>

The problem is everything is jumbled together and not spaced right.  How can
I change this?  I want other tabbed areas below this, how can I do that?  I
am really enjoying the framework.  Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060912/6010a698/attachment.htm


More information about the jifty-devel mailing list