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

New Module: Structure - Uses entries to create a page hierarchy for static and listing pages

Development and Programming

rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

New release v1.2.5!

http://www.ngenworks.com/software/ee/structure/

IMPORTANT: There is a behavior change with the start_from parameter in this release- read below. If there are concerns or issues with this change please contact me.

This mode switches the tag to “fixed” mode, where it will show ALL levels of children as you drill down instead of just children pages. The “start_form” parameter MUST BE FULL URI! Example: start_form=”/about/company” or start_form=”/{segment_1}/{segment_2}”. This parameter can be used to switch certain pages back to the alternate mode if required.

ALL CHANGES

• {exp:structure:nav_sub} rewritten • {exp:structure:nav_sub} when using start_from param now moves into ‘fixed’ mode • Bug fix: Windows host issue - \ was returned instead of / in get_site_path() function

       
Geof Harries's avatar
Geof Harries
109 posts
16 years ago
Geof Harries's avatar Geof Harries

Travis,

A small detail, but on a Windows machine, your zip is littered with some hidden OS X files: the usual suspects of .DS_Store and a __MACOSX directory. Not a big deal, but it could cause some confusion.

May I humbly suggest you create zip files with CleanArchiver? http://www.sopht.jp/en/cleanarchiver/ I’ve used that software for years.

geof

       
2techchicks's avatar
2techchicks
49 posts
16 years ago
2techchicks's avatar 2techchicks

I just upgraded to the latest version - so happy to have the sitemap feature!! Has anyone successfully turned the sitemap into a CSS vertical flyout menu? I really need this feature for a site that I’m working on. If anyone is able to help with this, please contact me. Thanks!

       
Traverse's avatar
Traverse
66 posts
16 years ago
Traverse's avatar Traverse
I just upgraded to the latest version - so happy to have the sitemap feature!! Has anyone successfully turned the sitemap into a CSS vertical flyout menu? I really need this feature for a site that I’m working on. If anyone is able to help with this, please contact me. Thanks!

I’ve only briefly looked at this but as far as I can see the sitemap produces a semantic, nested unordered list.

Qrayg has a good example of how to adapt the menu with CSS.

I hope that helps!

       
Jaybe Allanson's avatar
Jaybe Allanson
13 posts
16 years ago
Jaybe Allanson's avatar Jaybe Allanson

I am using Structure within a few sections of a larger site. I am trying to simple pull in another weblog into one of the structure template and its isn’t diplaying at all. Its like it is completely ignoring that code.

Does Structure allow you to embed another weblog within a template?

       
2techchicks's avatar
2techchicks
49 posts
16 years ago
2techchicks's avatar 2techchicks
I’ve only briefly looked at this but as far as I can see the sitemap produces a semantic, nested unordered list. Qrayg has a good example of how to adapt the menu with CSS. I hope that helps!

Thanks for the link, very helpful!

       
huze's avatar
huze
21 posts
16 years ago
huze's avatar huze

I think there might be a bug with {exp:structure:nav_sub} in 1.2.5. When I use a exclude_status=”hidden” I get a bunch of empty <li></li> tags in the markup.

example:

{exp:structure:nav_sub show_overview_link="yes"  show_level_classes="no" exclude_status="hidden"}

renders:

<ul id="nav-sub"><li class="here"><a href="/contact/">Overview</a></li>
<li class="here last"><a href="/contact/contact-form/">Contact Form</a></li>
</ul>
</li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
<li class="last"><a href="/"></a></li>
</ul>

It looks to be roughly the number of pages that are using that weblog.

       
2techchicks's avatar
2techchicks
49 posts
16 years ago
2techchicks's avatar 2techchicks
Exclude Status {exp:structure:sitemap exclude_status="status1|status2"}

I used this for my sitemap. I created a new status called “Hidden” and applied it to a thank you page that I’m redirecting people to after they fill out a form. It removed the link from the site map list, but it also is not allowing the entry to display on the page at all. It comes up completely blank when the status is applied.

       
huze's avatar
huze
21 posts
16 years ago
huze's avatar huze
It removed the link from the site map list, but it also is not allowing the entry to display on the page at all. It comes up completely blank when the status is applied.

Try adding status=”open|Hidden” to the {exp:weblog:entries} tag like this:

{exp:weblog:entries weblog="" status="Open|Hidden"}
       
2techchicks's avatar
2techchicks
49 posts
16 years ago
2techchicks's avatar 2techchicks
Try adding status=”open|Hidden” to the {exp:weblog:entries} tag like this:
{exp:weblog:entries weblog="" status="Open|Hidden"}

That worked! Thank you!

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

I’m getting the same hiccup as Damien with the string of empty list elements being added.

<li class=”sub_level_-1 here last”> <a href=”/index.php”> </li>

For now I’ve hidden them all with the following CSS.

li.sub_level_-1 { visibility:hidden; }
       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

We’re looking into the empty li issue and will post an update as soon as we can. Thanks for your patience!

       
Federacafe's avatar
Federacafe
11 posts
16 years ago
Federacafe's avatar Federacafe

Hi Travis, great module, congratulations.

i try to use structure with a multilenguaje site and need to assign a custom title like

standard field title

Custom fields title_br title_es

And try to assign it to structure like this:

{exp:structure:sitemap title_label="{title_br}"}

Or with a custom template variable “country_code” like this:

{exp:structure:sitemap title_label="{title_{country_code}}"}

i found the sql querys and try to figure out how to apply the changes to support this functionality hope to find a solution.

       
vik407's avatar
vik407
15 posts
16 years ago
vik407's avatar vik407

Same petition about the custom field title to support multilingual sites 😊

Saludos!

       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

@Federacafe @vik407 Great ideas, guys. This isn’t currently on our list of additions and would add quite a bit of code. You could do the same thing with some segment checking and branching the languages into different areas of the site (Example: http://your-domain.com/english/stuff/here OR http://your-domain.com/espanol/stuff/here), then you can limit what you show depending on the segment.

       
First 37 38 39 40 41 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.