Unfortentley I am still having trouble with this. I am useing this code
(taken from k2)
<?php
// Menu tabs
foreach ( $pages as $tab ) {
?>
<li<?php if(isset($post) && $post->slug == $tab->slug) { ?>
class="current_page_item"<?php } ?>><a href="<?php echo $tab->permalink;
?>" title="<?php echo $tab->title; ?>"><?php echo $tab->title; ?></a>|</li>
<?php
}
if ( $user instanceof User ) { ?>
<?php } ?>
How do i get the following working on it?
<?php
// List Pages
foreach ( $pages as $page ) {
echo '<li><a href="' . $page->permalink . '" title="' . $page->title .
'">' . $page->title . '</a></li>' . "\n"; }
?>
On Tue, Feb 24, 2009 at 5:22 PM, Andrew Rickmann
<[email protected]>wrote:
>
> I have created a plugin for the theme I am working on that adds a menu
> order option to pages.
>
> I have also created a menu class that can be used to generate menus
> with the intention that the classes will eventually allow input and
> output so a UI can be attached to it.
>
> The theme is hosted here http://code.google.com/p/onion-theme/
>
> This might be of use to you.
>
> Andrew
>
>
>
> 2009/2/24 John Edmondson <[email protected]>:
> > As most of you know by now, I know enough about php to get me in trouble
> but
> > not enough to get me out of it so i probably wont be any good unless its
> for
> > testing puposes.
> >
> > On Tue, Feb 24, 2009 at 12:43 AM, Owen Winkler <[email protected]>
> wrote:
> >>
> >> Michael Bishop wrote:
> >> > I do not think we have a way of ordering the pages explicitly, ie,
> >> > About == page 1, contact == page 2, etc. I believe it defaults to
> >> > ordering them by ID, you may be able to order them in some ascending/
> >> > descending order by slug.
> >> >
> >> > That's not to say that might not be a feature/plugin that other people
> >> > also desire.
> >>
> >> If anyone is interested in putting effort forward in this direction, the
> >> best place to look at contributing would likely be in the
> >> as-yet-unwritten Taxonomy classes, which would allow you to not only set
> >> an order of pages, but also create parent-child relationships between
> >> pages.
> >>
> >> Alternatively, it may be possible to implement this with postinfo, but
> >> it would probably not be as flexible, and also wouldn't get Taxonomy
> >> done, which would be useful for other stuff. ;)
> >>
> >> Owen
> >>
> >>
> >
> >
> >
> > --
> > ==========About============
> > Website can be found at www.mumbles-uk.com or www.john.edmondosn-uk.com
> > Msn is [email protected]
> > irc://irc.borknet.org/#alt-f4 (if you use IRC)
> > skype is john.j.edmondson
> > ========================
> >
> > >
> >
>
> >
>
--
==========About============
Website can be found at www.mumbles-uk.com or www.john.edmondosn-uk.com
Msn is [email protected]
irc://irc.borknet.org/#alt-f4 (if you use IRC)
skype is john.j.edmondson
========================
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---