Hi,
Just trying out the EE pages module. Looks good.
What I’m after is creating a static section of a website, with sidelinks that match the structure and possible 2 levels of navigation.
I’ll create a new template for this section and use that, but what would be the best way to handle navigation sidelinks? Would the best thing be to embed a core template that just has the sidelinks in it, and update that everytime I add new static pages?
I will be away for the weekend but I’ll pick this up again on Monday.
A beta version can be downloaded here.
This version already has quite some features, parameters, variables, conditionals etc, so it should work for most people. Bug reports and suggestions are always welcome.
Enjoy the weekend!
ps. the EE team might be working on some tags for the Pages module, so if I need to change the name of this plugin just let me know.
EDIT: Obviously this plugin only works with EE 1.6 and the new Pages module installed.
Wow that’s quick, Cocoaholic! I’m looking forward to what happens with this. It’s great to have it built in, but I’m definitely seeing loop holes like navigation generation that you’re covering.
Hopefully, someone will figure out something with the serach results so they don’t have to go through a template path!
I could actually use this right now on the site I’m developing, except that {count} doesn’t seem to be working, FYI. I have my nav being output, but need the last <li> to have a different class. I generally do that by stating something like: {if count == total_results}class=”last”{/if}. Almost there with it…and it’s only a .5 beta!
Hi all,
I just updated the plugin and would love some more feedback before I submit it to the add-on library.
These are the changes.
Added parameters: switch=”one|two”
Added variables: {count} {item_total} {switch}
@mdesign, I added the “total_results” variable but named it “item_total” to avoid possible conflicts.
Changes:
Switched to the weblog “switch” style introduced in EE 1.5.2 (can switch more than 2 values)
Example:
{exp:pages_menu}
{switch="red|white|blue"}
{/exp:pages_menu}
instead of:
{exp:pages_menu switch="red|white"}
{switch}
{/exp:pages_menu}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.