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

philfreo's avatar
philfreo
50 posts
about 16 years ago
philfreo's avatar philfreo

@New Tribes Mission @Jorge In order to fix the “news” -> “news-1” problem, I first tried deleting the entry altogether and making it Unmanaged in Structure. This didn’t do it, so I looked at the serialized data in exp_sites.site_pages and, as suggested, brought it into PHP and removed the empty keys, and put the serialized data back into mysql – this worked. I’ve emailed Travis about this and hopefully a solution can be found.

       
rick.prince's avatar
rick.prince
111 posts
about 16 years ago
rick.prince's avatar rick.prince

It’s been asked before, but not answered (I think).

Is it possible to orderby=”structure” ?

Thanks!

       
Wes Baker's avatar
Wes Baker
343 posts
about 16 years ago
Wes Baker's avatar Wes Baker

I am having the same problem where my settings are disappearing, I tried following the fix for it, but I don’t understand what to do:

Settings not sticking: Issue was the CP tab that had been added. The tab was created after submitting the settings form, so it was passing P=admin_settings_submit which meant every time the Structure tab was loaded it ran a function to erase all settings.

Also, when I try to uninstall, it stays installed.

Edit: I think I understand now, but even when I go directly to Modules and then Structure and set my settings, it still loses the settings.

Edit: Figured out my problem. It ended up being some Safari plugins, specifically I think it was Evernote.

       
illustrationdan's avatar
illustrationdan
26 posts
about 16 years ago
illustrationdan's avatar illustrationdan

Im having problems getting child pages to link correctly in search. It wants to link it to

http://www.mysite.com/childpage

instead of

http://www.mysite.com/parent/childpage

Anyone have a fix for this or have similar issues?

Solved: if you find yourself with this problem you should use a combination of conditional statements as well as using

<a href="http://{page_uri}">{title}</a>

instead of

<a href="http://{auto_path}">{title}</a>

explained here http://expressionengine.com/docs/modules/weblog/variables.html#var_page_uri

       
stinhambo's avatar
stinhambo
1,268 posts
about 16 years ago
stinhambo's avatar stinhambo

I just posted this on Jambor-ee so apologies for the duplicate but here goes -


For each listing entry, do I need to add in the detail template to the Page URL input field?

For example I have a static (index) entry called News and I want each listing entry to go to news/detail.

But if I create a new news entry, the Structure URL just says news/ followed by the input field.

Is there a way to force this to news/detail/ followed by the input field or is this not how it’s supposed to behave?

       
Wes Baker's avatar
Wes Baker
343 posts
about 16 years ago
Wes Baker's avatar Wes Baker

Like @philfreo, @New Tribes Mission, and @Jorge I was having issues with the ‘-1’ showing up in my Structure URIs. I asked @philfreo for a bit of help, which was a big timesaver. I took what he gave me a turned it into a PHP script. Drop your exp_sites.site_pages record into the $serialized_data variable and load the page. It will show you the serialized data, then the unserialized data, then it will unset any blank uris or templates and finally it will spit out the new serialized data.

Just a quick stopgap until this gets fixed.

       
Adrienne L. Travis's avatar
Adrienne L. Travis
213 posts
about 16 years ago
Adrienne L. Travis's avatar Adrienne L. Travis

Feature requests for next version:

  • COLLAPSING NAV on the Structure listing in the control panel. Please, oh please!
  • A way to add classes to the ul/li of the sitemap tag, and also to exclude statuses.

Edit: okay, i’m a dork on one of these – you can exclude statuses from the sitemap. But you can’t by default add classes – i had to hack the sitemap function to do that and to do a couple other things (adding a “current” class like you can in nav_main, for instance.)

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

@MeritMile You need to place the structure fodler from the download WITHIN your current CP theme

@viewcreative Chekc your PMs we need to see what’s up there

@pengwnfistoffury “here” class bug noted

@iain I’ve personally seen Structure managed sites with THOUSANDS of entries with no performance hit. All depends how much is being called into the template at once - that would be the same with regular EE tags.

@Firestorm Creative Studios some kind of if_children conditional is in the works

@rick.prince orderby=”structure” is not available…YET

@philfreo + @Wes Thanks for sharing, that was a crazy weird one! Never seen it and we’ll have to research a bit more to make sure it doesn’t pop up again.

@stinhambo think you’re mixing traditional templating with Structure URLs - you don’t need “detail” in the URI, but you can switch back and feed data through the normal template system if you’d like. The only place the templating system matters within the Structure publish/edit tab is to assign which template it will display through - nothing to do with the URL/URI though.

@Adrienne L. Travis duly noted, thanks!

       
Mark Croxton's avatar
Mark Croxton
319 posts
about 16 years ago
Mark Croxton's avatar Mark Croxton

This is a wonderful module, thank you for making it.

Some feature requests:

  • option to set default weblog on a per page basis in the Structure tab. Similar to how you can set a page as a listing for another weblog, except for child pages. You can already have a different weblog for an ‘overview’ or landing page and it’s children, but to set this up you need to go through the Publish menu and assign the parent entry in the structure tab.

  • option to show entry status in a column

  • Ability to ‘lock’ the top level pages from being reordered or added to.

  • Option to turn off 404s for non-existant child pages of structure uris; eg:

Page in structure: /about/clients/

Non-existing page returns a 404: /about/clients/europe/

It would be cool if this could just render /about/clients/ so /europe/ is available as a url segment for another purpose (such as dynamically showing entries from a category called ‘europe’). My current workaround is the following .htaccess rule which rewrites the last url segment to a query string…

RewriteRule ^about/([a-zA-Z0-9\-]+)/(.*)$ /index.php/about/$1/?c=$2 [QSA,L]
       
thinkdocreate's avatar
thinkdocreate
6 posts
about 16 years ago
thinkdocreate's avatar thinkdocreate

So I tried installing this this afternoon. Once I copy the extension files into my extension folder, I can longer access utilities > extension manager.

Any thoughts? I’m running EE 1.6.8 Commercial License.

       
thinkdocreate's avatar
thinkdocreate
6 posts
about 16 years ago
thinkdocreate's avatar thinkdocreate

anyone? nobody else having issues? do I have a conflict with maybe another extension? (only using freeform)

       
Mark Croxton's avatar
Mark Croxton
319 posts
about 16 years ago
Mark Croxton's avatar Mark Croxton

@thinkdocreate

I had a problem with blank screens which turned out to be php running out of memory - you could try boosting your memory_limit in php.ini.

       
thinkdocreate's avatar
thinkdocreate
6 posts
about 16 years ago
thinkdocreate's avatar thinkdocreate

ahh, that wasn’t the issue. I swore I had PHP5 running and didn’t notice until I looked into the memory settings.

Thanks for the heads up. Mondaze…

       
Kevin Evans's avatar
Kevin Evans
222 posts
about 16 years ago
Kevin Evans's avatar Kevin Evans

Hello,

I am using Structure in a gallery and I am getting a invalid uri error when I click on an image that links to the bigger image, with the below code:

<ul class="art-grid">
{exp:weblog:entries weblog="{mysection2}" dynamic="off" disable="categories|category_fields|member_data|trackbacks|comments" rdf="off"}
{artwork_upload}
<li><a href="http://{pages_uri}">{exp:imgsizer:size src="{art_image}" auto="165" alt="{title}"}</a>
{title}
</li>
{/artwork_upload}
{/exp:weblog:entries}
</ul>

What am i doing wrong?

Thanks!

Kevin

       
Kevin Evans's avatar
Kevin Evans
222 posts
about 16 years ago
Kevin Evans's avatar Kevin Evans

Nevermind, I had the {page_uri} in there wrong

       
First 53 54 55 56 57 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.