We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Navigation - Feature Requests!

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey guys, I’m about 90% through my brand spanking new LG Navigation extension and I would like to ask everyone regarding features.

Basically my module adds a new tab to the publish form which allows you to:

  • Choose a page parent
  • Toggle “Show in nav”
  • Create an optional navigation title rather than use the page title
  • Create an alternate url for a navigation item rather than use the page url
  • Set the position of the page in the nav
  • Generate a nested ub ordered list of navigation with classes out the ying yang for styling

What would you like to see in the navigation module?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Oh and so far the output looks like:

<ul>
    <li class='page_item page-item-1'><a href="#one">one</a></li>
    <li class='page_item page-item-2'><a href="#two">two</a></li>
    <li class='page_item page-item-3 current_page_parent'><a href="#three">three</a>
        <ul>
            <li class='page_item page-item-4'><a href="#three.one">three.one</a>
                <ul>

                    <li class='page_item page-item-6'><a href="#3.1.1">three.one.one</a></li>
                </ul>
            </li>
            <li class='page_item page-item-5 current_page_parent'><a href="#three.two">three.two</a>
                <ul>
                    <li class='page_item page-item-7 current_page_item'><a href="#3.2.1">three.two.one</a></li>
                    <li class='page_item page-item-9'><a href="#3.2.2">three.two.two</a></li>

                </ul>
            </li>
            <li class='page_item page-item-10'><a href="#3.3">three.three</a>
                <ul>
                    <li class='page_item page-item-11'><a href="#3.3.1">three.three.one</a></li>
                </ul>
            </li>
        </ul>

    </li>
    <li class='page_item page-item-8'><a href="#4">four</a></li>
</ul>
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Create an alternate url for a navigation item rather than use the page url

Just thought I should clarify this point… Basically this will allow you to create top level nav items that link to a sub-nav item. Unfortunaltely these will just be empty pages with a title so the status will need to be set to closed or something like that 😊

       
ExpressionEngineer's avatar
ExpressionEngineer
148 posts
17 years ago
ExpressionEngineer's avatar ExpressionEngineer

Looks brilliant - as always with your work Leevi, I don’t use Pages much, so unfortunately I don’t have any requests at the moment.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
17 years ago
Ingmar Greil's avatar Ingmar Greil

Looks good. You might consider using double quotes instead of single ones.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Looks good. You might consider using double quotes instead of single ones.

Might make that an option… but personally I use single quotes for html and double quotes for php…

Why double quotes? I wasn’t aware of a difference

       
ExpressionEngineer's avatar
ExpressionEngineer
148 posts
17 years ago
ExpressionEngineer's avatar ExpressionEngineer

I believe double quotes in php are always parsed (for variables etc), while single quotes are treated as pure strings and are not parsed.

In html I have no idea, but I always go the other way around; I use single quotes in php and double quotes in html - where applicable.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen
I use single quotes in php and double quotes in html - where applicable.

Same here and also not sure why. It’s just always the way I learnt from books and the like. I’m sure there must be something about that on http://www.w3.org though.

Looks like a nice new add-on Leevi, congrats!

I probably won’t have any feature requests though either as I don’t like to use the Pages module, sorry.

Good luck with it all though, I’m certain you will be on to another winner again! Do you ever stop to eat that’s what I ask myself? 😉

Best wishes,

Mark

       
ExpressionEngineer's avatar
ExpressionEngineer
148 posts
17 years ago
ExpressionEngineer's avatar ExpressionEngineer

I just realized, the EE dev guidelines mention this; http://expressionengine.com/docs/development/guidelines/general.html#strings

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
17 years ago
Ingmar Greil's avatar Ingmar Greil

In PHP code, I agree, but for XHTML the W3C recommends double quotes, I seem to remember.

       
Random_Seed's avatar
Random_Seed
24 posts
17 years ago
Random_Seed's avatar Random_Seed

Flip this looks awesome LG!

A tree structure for ordering and editing entries would be a winner in my book!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
I just realized, the EE dev guidelines mention this; http://expressionengine.com/docs/development/guidelines/general.html#strings

Ah true…

Correct: ‘My String’
Correct: “”SELECT foo FROM bar WHERE baz = ‘bag’”

I’ll just keep using double quotes rather than a combination of the two to keep it simple 😊

       
Jason Morehead's avatar
Jason Morehead
454 posts
17 years ago
Jason Morehead's avatar Jason Morehead

This looks really cool. Wish I would’ve had something like this for a couple of sites that I’m just now wrapping up. 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
This looks really cool. Wish I would’ve had something like this for a couple of sites that I’m just now wrapping up. 😊

Yeah I finally cracked it during a project I am working on now! I just couldn’t figure out why there was not an easy to use menu building system in EE… THeres plenty of hacks which are ok for developers but clients want it to be easy and infront of them

So no one has any feature requests for this addon? 😉

       
Eric Barstad's avatar
Eric Barstad
198 posts
17 years ago
Eric Barstad's avatar Eric Barstad

I do use Pages quite a lot, and this extension looks fantastic. I have no requests either, but it’s hard to know what could be added until we’ve tried it out.

Is this a “when it’s done” project, or do you have a specific date in mind for release/testing?

       
1 2 3 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.