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

mirkob's avatar
mirkob
74 posts
16 years ago
mirkob's avatar mirkob
You’ve got options. The first is to bypass Structure completely for your events – set that weblog to unmanaged, create the proper template group for the url you want and use it that way. Or create the template group exactly the same as the event page url and use that template (as long as it’s a first or second level page) and it will MOST LIKELY work. Other options would be to try using embed variables. Take a look at this example (it’s for categories, but a similar situation): http://eeinsider.com/tips/view/structure-module-category-pages/. Let me know how you make out.

the first option is ok, but I’m try to use structure to make easy for the client.

second.. I’m not sure I understand it. You mean creating a template group called events/2008 because the url of the month is ../events/2008/08?

third.. I think I understood this. In the example EEinsider uses the {category} but I don’t need it, so I’ll make the includes like

{exp:weblog:entries weblog="articles" orderby="date" sort="asc"}
<div class="entry">
{entry_date format='%l, %F %d, %Y'}
<h2 class="title"><a href="http://{url_title_path=">{title}</a></h2> 
            
</div>
{/exp:weblog:entries}

and I call it with

{if segment_2 == "2008"}
{embed="_inc/_html_articles" dynamic="off"}
{if:else}
{embed="_inc/_html_articles" dynamic="on"}
{/if}

fourth.. I fix it.. I edited the next month button on the calendar to link to another template with dynamic='off"

but just to my knowledge, can you tell me if my understanding of the option 2 and 3 were correct?

thanks Mirko

       
sambo's avatar
sambo
80 posts
16 years ago
sambo's avatar sambo

One more question.

I am seeing problems where some weblogs I have created do not show up in the Publish tab. The show up if I click Publish but not in the dropdown.

Is there a known issue regarding this and Structure?

Best, Sammi

       
fostermade's avatar
fostermade
97 posts
16 years ago
fostermade's avatar fostermade

Any thoughts on having {exp:structure:parent_title} take a parent level? In many cases I don’t want the parent title as much as I want the “section” title. It would be great if this would take a level 1,2,3,4…etc… from the top of the tree structure as an optional param.

Thanks, Shawn

       
sambo's avatar
sambo
80 posts
16 years ago
sambo's avatar sambo

And I have yet another question.

I am having problems with the Page URL on the entries on listing pages being automatically changed.

To explain better:

  • I am using accented characters in the titles of the entries
  • I am using the “Foreign character extension” to convert characters like á to a
  • I leave the Page URL blank under Structure tab
  • Structure automatically created a title using the url title of the entry.
  • Everything works for a while

Then, for some unknown reason, titles are occationally changed to what they would have been had I not converted the characters with the foreign character extension.

So a title like “frábært” turns in “frbrt” breaking navigation.

Best, Sammi

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade
I am seeing problems where some weblogs I have created do not show up in the Publish tab. The show up if I click Publish but not in the dropdown.

Let me see if i understand this. After you create a new weblog, it does not show it up in native EE Publish area? Or the Structure dropdown?

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade
I’m having an issue where the Structure tab isn’t showing when I publish to my static pages weblog, is anyone else experiencing this?

When you publish from the native EE Publish menu? And you’re sure that that particular weblog is set for “Structure” type in the Structure Settings?

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade

Can you check the permission of the ext.structure.php file? (and the module files for that matter). I’ve seen 1.3.0 revert to 644 many times – make sure it’s 777. If that’s not it, we’ll need to dig deeper. Do you have any extensions installed?

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade
Any thoughts on having {exp:structure:parent_title} take a parent level? In many cases I don’t want the parent title as much as I want the “section” title. It would be great if this would take a level 1,2,3,4…etc… from the top of the tree structure as an optional param.

A few good idea. I’ll make sure it gets on the list with Travis 😊 BTW, I’m now on the Structure Dev team, so you may see me in this thread more often from here on out.

       
jaasum's avatar
jaasum
36 posts
16 years ago
jaasum's avatar jaasum

I am having an issue with the tag not displaying children pages. I am using the bare-bones default tag for generating the menu and yet nothing is showing up.

       
sambo's avatar
sambo
80 posts
16 years ago
sambo's avatar sambo

There are separate tags for main and sub navigation.

Best, Sammi

       
sambo's avatar
sambo
80 posts
16 years ago
sambo's avatar sambo
I am seeing problems where some weblogs I have created do not show up in the Publish tab. The show up if I click Publish but not in the dropdown.
Let me see if i understand this. After you create a new weblog, it does not show it up in native EE Publish area? Or the Structure dropdown?

Hi,

well the weblogs show up in the Publish area and Structure, but not when I hover over the Publish tab. Only some weblogs show up there.

It can’t be an access permission problem because I can post.

It is just like something causes some weblogs to be hidden in the Publish tab hover dropdown.

Best, Sammi

       
jaasum's avatar
jaasum
36 posts
16 years ago
jaasum's avatar jaasum

@sambo

Thanks for the reply 😊

So the main {exp:structure:nav_main} tag doesn’t generated nested uls? Am I stuck with with using the {exp:structure:sitemap} tag to get auto nested uls?

       
sambo's avatar
sambo
80 posts
16 years ago
sambo's avatar sambo

Hi,

You can use {exp:structure:nav_sub}

Check out the documentation at http://buildwithstructure.com/

Best, Sammi

       
sambo's avatar
sambo
80 posts
16 years ago
sambo's avatar sambo

I think I have confirmed the bug that has been bothering me.

If you use a ‘foreign’ character in a title of an entry on a listing page then Structure will incorrectly build the Page URL. It will skip the foreign characters. It is easy to confirm this by erasing the URL and force Structure to rebuild it.

This is weird because I thought Structure would simply use the url_title of the entry. It seems like it is rebuilding from the title and not using the url_title field. Is that possible?

Best, Sammi

       
sambo's avatar
sambo
80 posts
16 years ago
sambo's avatar sambo
I think I have confirmed the bug that has been bothering me. If you use a ‘foreign’ character in a title of an entry on a listing page then Structure will incorrectly build the Page URL. It will skip the foreign characters. It is easy to confirm this by erasing the URL and force Structure to rebuild it. This is weird because I thought Structure would simply use the url_title of the entry. It seems like it is rebuilding from the title and not using the url_title field. Is that possible? Best, Sammi

I guess it has something to do with this line in the extension:

673: $url_title = strtolower($REGX->create_url_title($entry_title));

And then maybe it isn’t a Structure bug, but a bug in the Foreign character extension? Obviously the URL is created from the entry_title but the Foreign character extension never does it’s job.

Best, Sammi

       
First 50 51 52 53 54 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.