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

ira42's avatar
ira42
167 posts
15 years ago
ira42's avatar ira42

Hey illustrationdan,

I’ve had a similar issues lately. Not sure if they’re related, but are you using LG .htacess Generator (or any other method for removing index.php) by any chance?

For some reason, .htaccess Generator doesn’t seem to consistently update the first level Structure page entries on creation.

If I manually force LG htaccess to update, it then adds the page, and everything works.

Ira

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

@Bransin We have a UI redesign in the works for page collapsing after the EE2 port is finished. Structure has pagination tags and search works the exact same as always, you just use page_uri and page_url. As far as categories, you can still use them, just not always in the traditional way you’re used to. It’s quite flexible, but I agree we need more KB articles explaining working with categories. On the list.

@illustrationdan Never seen that, make sure your system pref settings are correct and you have the CP URL filled under Structure » Settings if you’re using a masked CP. Try Ira’s idea as well, you egenrally have to republish when using lg htaccess generator.

       
Wouter Vervloet's avatar
Wouter Vervloet
758 posts
15 years ago
Wouter Vervloet's avatar Wouter Vervloet

Hi Travis,

I was wondering if you had a chance to look into the incompatibilities between Structure and EE v1.6.9 …

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

@Wouter Updated! Download a fresh copy.

Also, we’re using Tender for support now: http://structure.tenderapp.com

       
Wouter Vervloet's avatar
Wouter Vervloet
758 posts
15 years ago
Wouter Vervloet's avatar Wouter Vervloet
@Wouter Updated! Download a fresh copy. Also, we’re using Tender for support now: http://structure.tenderapp.com

Awesome! Thanks for the quick service…

       
wgmilleriiig's avatar
wgmilleriiig
6 posts
15 years ago
wgmilleriiig's avatar wgmilleriiig

I was wondering if there is any way to include something in the navigation that isn’t built into structure? For example, I have two weblogs. One utilizes structure, the other doesn’t. In my nav for the one that uses structure I want to include a static link in the full_nav to a page in the other weblog. Any ideas how to accomplish this?

       
Wouter Vervloet's avatar
Wouter Vervloet
758 posts
15 years ago
Wouter Vervloet's avatar Wouter Vervloet
I was wondering if there is any way to include something in the navigation that isn’t built into structure? For example, I have two weblogs. One utilizes structure, the other doesn’t. In my nav for the one that uses structure I want to include a static link in the full_nav to a page in the other weblog. Any ideas how to accomplish this?

I’m assuming your other weblog uses the default group/template way? You could add an empty page in structure that points to the right group/template (modify the page_uri in the structure tab). I’ve made a habit of including most of my pages in Structure, even if I’m not using it to display it’s content.

       
wgmilleriiig's avatar
wgmilleriiig
6 posts
15 years ago
wgmilleriiig's avatar wgmilleriiig

You are correct in the assumption of the default group/template way. Your solution is actually exactly what I needed, however, unless it’s the root of the other weblog it is stripping out any forward slashes. I’m trying to link to calendar/category/all_events, but when I save it ends up as calendarcategoryall_events.

My other dilemna is the need to create a menu link to a pdf file. I’m assuming this can’t be done using the method above since it’s not another weblog, but rather an actual file. Is there any way to inject a static link to a file into the full_nav?

       
theturnmaster's avatar
theturnmaster
1 posts
15 years ago
theturnmaster's avatar theturnmaster
/** -------------------------------------
/**  Tag: uri
/** 
/**  Returns a uri for the passed entry_id.
/** -------------------------------------*/
function uri()
{
    global $PREFS, $TMPL, $FNS;

    // Retrieve entry_ids to find uri for
    $entry_id = $TMPL->fetch_param('entry_id');
    
    // Get site pages data
    $site_pages = $PREFS->ini('site_pages');
        
    // Get all pages
    $pages = $this->get_data();
    
    // Make sure array indices are incremental (0..X)
    $pages = array_values($pages);
    $home = trim($FNS->fetch_site_index(0, 0), '/');
    
    $page_uri = $site_pages['uris'][$entry_id];    
    $item_uri = $FNS->remove_double_slashes($home . $page_uri);
    
    return $item_uri;

}

I wrote this method to use for search results so I can find the URI of a structure entry. Feel free to use it Travis.

I also had some questions about Structure licensing, any chance you could shoot me an email at turner (at) visionpointmarketing [dot] com?

Thanks!

       
Whitenoise Studios's avatar
Whitenoise Studios
5 posts
15 years ago
Whitenoise Studios's avatar Whitenoise Studios

Hi All!

I’ve just installed Structure, following all of the instructions.

Looks fine on the admin side of things, and I have made sure its using a specific template within the settings.

However, when I view the page, EE is trying to find another template to make use of, and then when it does not find it, it reverts to using the site/index template.

Under template debugging, i get the following:

(0.000013) - Begin Template Processing - (0.000142) URI: /about/ (0.000153) Path.php Template: / (0.000169) Retrieving Template (0.000181) Parsing Template URI (0.005642) Showing index. Template not found: about (0.005665) Retrieving Template from Database: site/index (0.008596) Template Found

I want Structure to use a specific template, in this case site/static - which exists.

Anyone know what I’m doing wrong?

Thanks in advance!

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

Are you sure your htaccess file is correct? Open a ticket here for more help: https://structure.tenderapp.com

       
bozzly's avatar
bozzly
3 posts
15 years ago
bozzly's avatar bozzly

UPDATED: An upgrade to Structure 2.1.1 fixed the issue.

Anyone using Structure 2.0.7 and Solspace User 3.1.1? Im getting this error below when trying to display a registration form. Not sure this is the right place to post but structure is the one throwing the error. Registration code below also. This code was in a normal template (which was working). I was not using structure but then I added a structure page and assigned it this template then started getting the error. Deleted the structure entry and created a new template but no dice…it still remains.

A PHP Error was encountered Severity: Notice Message: Undefined variable: list_item_id Filename: structure/mod.structure.php Line Number: 204
{exp:user:register form:name="register" return="user/sign_up" username_override="yes"}
          Name
<input type="text" name="screen_name" value="" maxlength="32" class="input" size="25"  /><br >
          Email Address
<input type="text" name="username" value="" maxlength="120" class="input" size="40"  /><br >
          Password
<input type="password" name="password" value="" maxlength="32" class="input" size="25"  /><br >
          Password Confirm
<input type="password" name="password_confirm" value="" maxlength="32" class="input" size="25"  /><br >
          {if captcha}
               
{captcha}


               Submit the word you see above:

               <input type="text" name="captcha" value="" size="25" maxlength="32" style="width:300px;" /><br >
          {/if}
          <input type="submit" value="Submit" class="submit" /></p>
          {if no_results}
          You're currently logged in.
          {/if} 
          {/exp:user:register}
       
chilli_group's avatar
chilli_group
12 posts
15 years ago
chilli_group's avatar chilli_group

Just having a problem with a structure installtion, running 1.6.8 running structure 2.1.1 I don’t have any entries under structure yet.

When try to save a new weblog or update an existing weblog

Keep getting this:

MySQL ERROR:

Error Number: 1064

Description: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘DIV 2) AS numChildren FROM exp_structure AS node INNER

Query: SELECT node.*, (COUNT(parent.lft) - 2) AS depth, if((node.rgt - node.lft) = 1,1,0) AS isLeaf, ((node.rgt - node.lft - 1) DIV 2) AS numChildren FROM exp_structure AS node INNER JOIN exp_structure AS parent ON node.lft BETWEEN parent.lft AND parent.rgt WHERE node.entry_id = ‘8’ GROUP BY node.lft LIMIT 1

Any Idea’s?

       
florian's avatar
florian
395 posts
15 years ago
florian's avatar florian

first time structure user here. quick question about page_uri. For some reason when I use the tag {page_uri} in the front end, the index.php gets ignored. meaning, my links look like www.domain.com/about. They should look like www.domain.com/index.php/about

Can anybody point me into the right direction?

       
First 77 78 79

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.