2 of 14
2
New Module: Structure - Uses entries to create a page hierarchy for static and listing pages
Posted: 18 September 2008 09:18 AM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-16-2005

@smartpill you’ll see those permissions warnings until you add access to the CP, modules and specifically Structure for at least one member group. RE: “No data exists” - add your first pages through the publish tab and you’ll see them appear within Structure. We usually do that for top level nav and then use the “add page” links to flow child pages.

 Signature 

///////////////////////////////////////////////////////////////////////

+ Travis Schmeisser

nGen Works

+ rockthenroll

///////////////////////////////////////////////////////////////////////

Structure: a new way to build ExpressionEngine sites

Profile
 
 
Posted: 18 September 2008 01:15 PM   [ Ignore ]   [ # 20 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  759
Joined  03-22-2004

@smartpill the text ‘settings’ is actually a button. Took me a while to figure that out (sluggish day). Maybe as a feature request if this was turned into the typical green EE CP button that keep things consistant

Profile
 
 
Posted: 18 September 2008 03:31 PM   [ Ignore ]   [ # 21 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  223
Joined  01-14-2006

I was a huge fan of the MH version which seems to have gone to sleep - I can’t wait to try this out!

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 18 September 2008 05:28 PM   [ Ignore ]   [ # 22 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  157
Joined  09-06-2006

@smartpill the text ‘settings’ is actually a button.

I figured that out but thank you for suggesting that. And I agree, it probably should look like a standard button. Things were a little out of whack so I thought maybe something was missing.

Ok, here’s what confused me. SuperAdmins always have access to everything so since I didn’t see that group listed I thought something was wrong. Also, I guess I didn’t go back to a second group and assign them privileges. I did try it before I uninstalled and reinstalled and it didn’t work at the time, but I tried it again and now things are showing. Can’t wait to test it.

 Signature 

Kyle Summer | smartpill design | New Haven, CT

Profile
 
 
Posted: 22 September 2008 01:45 AM   [ Ignore ]   [ # 23 ]  
Grad Student
Avatar
Rank
Total Posts:  42
Joined  09-09-2007

Hi Travis,

Great module, you guys have obviously put a bit of work into it.. I really like the idea and interface, it simplifies a lot of the issues I’ve had with EE when trying to explain to clients how to structure a site…

Quick question about the navigation tags.. is there (going to be) any other params that can be used? Such as a way to generate the list for the top-level items as well (not just the child items), and to restrict it to a single level rather than the two levels?

I hope that these aren’t too much to hope for… but using this module would be replacing the Pages module AND Leevi’s LG Navigation module, which was fairly configurable…

Cheers!

Michael

 Signature 

• Web Design & Development • Perth, Western Australia •
@michaelropernotmuch.tumblr.com

Profile
 
 
Posted: 22 September 2008 01:54 AM   [ Ignore ]   [ # 24 ]  
Grad Student
Avatar
Rank
Total Posts:  42
Joined  09-09-2007

Also, just a suggestion…

If Structure is “a new way to build ExpressionEngine sites”, are you possibly able to give a brief overview of how you go about building a basic site to best fit the Structure ‘method’,

i.e. what is your weblog structure for static/dynamic pages (eg, i always have a weblog called Site Pages), what your basic templates look like, when/how to use the nav tags, etc..

I think it would make a great resource to go along with the module…

 Signature 

• Web Design & Development • Perth, Western Australia •
@michaelropernotmuch.tumblr.com

Profile
 
 
Posted: 22 September 2008 06:19 AM   [ Ignore ]   [ # 25 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-16-2005

@Michael thanks for the kind words! We have worked very hard on it I’m glad you’re digging it.

We will eventually add more params for the navigation tag, but right now it’s not a priority. Keep your eye here and I’ll let everyone know when updates are released.

As far as the entire setup, I have a step-by-step tutorial coming out when the new Jambor-EE launches. Not sure on the exact day, Jamie’s been really busy. Sit tight and experiment for now. The docs have everything you need, but the tutorial will help speed things along once it’s out.

 Signature 

///////////////////////////////////////////////////////////////////////

+ Travis Schmeisser

nGen Works

+ rockthenroll

///////////////////////////////////////////////////////////////////////

Structure: a new way to build ExpressionEngine sites

Profile
 
 
Posted: 22 September 2008 06:46 AM   [ Ignore ]   [ # 26 ]  
Grad Student
Avatar
Rank
Total Posts:  42
Joined  09-09-2007

Thanks Travis, good to hear you’re already a step ahead =]

 Signature 

• Web Design & Development • Perth, Western Australia •
@michaelropernotmuch.tumblr.com

Profile
 
 
Posted: 22 September 2008 07:12 AM   [ Ignore ]   [ # 27 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1590
Joined  01-05-2007
rockthenroll - 22 September 2008 06:19 AM

As far as the entire setup, I have a step-by-step tutorial coming out when the new Jambor-EE launches.

Wow that’s funny because I remember Jambor-ee 1.0 kicking off with Mark Huot’s Pages module!

I hope you can support this for longer than Mark did. What happened to Mark anyway? Has he been banned from ExpressionEngine or something?

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 22 September 2008 07:17 AM   [ Ignore ]   [ # 28 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-16-2005

That’s right! I forgot about that. I loved Tome and some of that module is what lead to part of Structure’s development. He writes useful EE software, hopefully he’ll be back!

 Signature 

///////////////////////////////////////////////////////////////////////

+ Travis Schmeisser

nGen Works

+ rockthenroll

///////////////////////////////////////////////////////////////////////

Structure: a new way to build ExpressionEngine sites

Profile
 
 
Posted: 22 September 2008 07:21 AM   [ Ignore ]   [ # 29 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1590
Joined  01-05-2007

Sorry I haven’t been able to test Structure yet. I will of course be testing it for an upcoming project for a bar/restaurant. I can give you more feedback then!

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 22 September 2008 07:37 AM   [ Ignore ]   [ # 30 ]  
Summer Student
Total Posts:  11
Joined  02-01-2008

@travis - This is really an amazing module its come just in the nick of time for a projects I’m on. Thanks again! smile

Now, my php skills aren’t really my strong point (more of a front end developer) but I had similar needs to what Michael is requesting (ie a top-level items nav) and managed to make a new function out of your nav_sub in mod_structure.php for a top level nav with drop-down to second level. So I can add {exp:structure:nav_main} to get a list with children.

Would you like to see if this is useful for you to add for others to use?

Profile
 
 
Posted: 22 September 2008 07:57 AM   [ Ignore ]   [ # 31 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-16-2005

@wuwongy that may be in a future version, but not needed right now. Generally top level pages are in a template or don’t need to be dynamic. Maybe someday! Feel free to use your update though. Thanks!

 Signature 

///////////////////////////////////////////////////////////////////////

+ Travis Schmeisser

nGen Works

+ rockthenroll

///////////////////////////////////////////////////////////////////////

Structure: a new way to build ExpressionEngine sites

Profile
 
 
Posted: 23 September 2008 07:02 PM   [ Ignore ]   [ # 32 ]  
Summer Student
Total Posts:  3
Joined  09-16-2008

Wuwongy I’d love to see how you created the top level nav with a drop down to the second level items. Could you post the code?

Profile
 
 
Posted: 24 September 2008 06:53 AM   [ Ignore ]   [ # 33 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  135
Joined  05-25-2002

@rockthenroll: This is a great module. Thanks!

I’ve got little feature request important for a no-english websites. Could you move all interface phrases to the language file?

 Signature 

Caleydon Media

+ CM Strange URL Interpreter
+ CM Textarea Resizer
+ CM Template Editor (EditArea)

Profile
 
 
Posted: 24 September 2008 08:20 AM   [ Ignore ]   [ # 34 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  172
Joined  07-16-2005

@Gabriel adding to our wishlist. Can’t guarantee a timeframe though smile

 Signature 

///////////////////////////////////////////////////////////////////////

+ Travis Schmeisser

nGen Works

+ rockthenroll

///////////////////////////////////////////////////////////////////////

Structure: a new way to build ExpressionEngine sites

Profile
 
 
Posted: 24 September 2008 08:48 AM   [ Ignore ]   [ # 35 ]  
Summer Student
Total Posts:  11
Joined  02-01-2008

@blis

Here you go… like I say PHP ain’t my strong point so this can probably be improved. But I managed to make this out of the nav_sub function.

Paste into mod_structure.php then just add - {exp:structure:nav_main} to your templates.

Hope this helps smile

function nav_main() {
    
global $DB, $IN, $PREFS;
    
    
// get site pages data
    
$site_pages = $PREFS->core_ini['site_pages'];
    
// get current uri path
    
$uri = $IN->URI;
    
// get current entry id
    
$entry_id = array_search($uri, $site_pages['uris']);
    
// get node of the current entry
    
    
$sql = "SELECT *
            FROM exp_structure AS node
            INNER JOIN exp_structure AS parent
                ON node.lft BETWEEN parent.lft AND parent.rgt
            INNER JOIN exp_weblog_titles AS expt
                ON node.entry_id = expt.entry_id
            WHERE node.parent_id = 0
            GROUP BY node.entry_id
            ORDER BY node.lft"
;
    
$result = $DB->query($sql);

    
$html = '<ul id="nav">';
    foreach (
$result->result as $top) {
        
// get children
        
$childsql = "SELECT *
            FROM exp_structure AS node
            INNER JOIN exp_structure AS parent
                ON node.lft BETWEEN parent.lft AND parent.rgt
            INNER JOIN exp_weblog_titles AS expt
                ON node.entry_id = expt.entry_id
            WHERE node.parent_id = "
.$top['entry_id'] ."
            GROUP BY node.entry_id
            ORDER BY node.lft"
;
            
$childresult = $DB->query($childsql);
    
        
// out entry uri of this loop instance
        
$euri = $site_pages['uris'][$top['entry_id']];

        
$html .= '<li>';
        
$html .= '<a href="{path=/' . $euri . '}">' . $top['title'];
        
$html .= '</a>';
        if (
$childresult ->num_rows > 0){
        $html
.= '<ul>';
        foreach (
$childresult->result as $child) {
        $childuri
= $site_pages['uris'][$child['entry_id']];

        
$html .= '<li><a href="{path=/' . $childuri . '}">' . $child['title'] .  '</li>';
        
}
        $html
.= '</ul>';
        
}
        $html
.= '</li>';

    
}
    $html
.= '</ul>';
    
//$html .= '<pre>' . $childsql . '</pre>';
    
return $html;
}

Profile
 
 
Posted: 24 September 2008 09:50 AM   [ Ignore ]   [ # 36 ]  
Summer Student
Total Posts:  11
Joined  02-01-2008

Has anyone had any joy getting weblog pagination to work with this module installed?
I notice the module requires dynamic=“off” which I think stops pagination working.

Profile
 
 
   
2 of 14
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 29
Total Topics: 81863 Total Anonymous Users: 13
Total Replies: 440098 Total Guests: 194
Total Posts: 521961    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb