Hello. The Structure posts in this forum are all over the place, but the core Structure answers seem to be in this thread.
I’m having an issue w/ pagination and my .htaccess file. I’m not using LG’s Site Access Generator. I’ve tried two methods. First “File and Directory Check” method and the second “Include/Exclude.” I posted my issue here and am hoping someone might have a suggestion.
Hi Aimelise,
Did you try removing the “?” from the line:
RewriteRule ^(.*)$ /index.php?$1 [L]
…as suggested by ngenworks?
If you don’t remove it, then the URL the browser looks at ends up something like this:
http://www.mydomain.com/index.php?/mygroup/mytemplate/?page=2
As you can see there are now 2 question marks in the URL which is not allowed.
I find that removing the question mark usually works for me.
Further to that… here is the .htaccess file that I use on pretty much all my sites, which are hosted at MediaTemple…
ErrorDocument 404 /site/404/
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^\.htaccess$ - [F]
AddHandler php5-script .php
Hope that helps.
Cheers.
Does anyone have recommendations for previewing entries before publishing, when using a system like Structure? I’m curious as to how this could be setup.
Could one use Live Look or LG Live Look? I didn’t think this would be possible though, given Structure’s replacement of the /template group/template/ hierarchy.
I’ve looked through this thread, but haven’t found much information on the topic.
I had a bit of a need to create a simple “Next/Previous Entry” type thing for use with some News pages that I had listed under the Structure module. The problem with the built in EE next/previous entry is that you couldn’t use the {page_url} variable. So I have created a little function that helps with that. Basically what it is good for is when you have setup something like a News weblog to sit as a listing weblog under the News page.$weblog_id = $node['listing_wid']; $sql = "SELECT entry_id, title FROM `exp_weblog_titles` WHERE weblog_id = $weblog_id AND status = 'open' ORDER BY entry_date $type";
I needed the same thing, but for not for listing entries. By modifying your query there, I was able to do the same thing for regularly nested child pages.
$weblog_id = $node['weblog_id'];
$parent_id = $node['parent_id'];
$sql = "SELECT titles.entry_id, titles.title
FROM exp_weblog_titles as titles, exp_structure as structure
WHERE titles.weblog_id = $weblog_id
AND titles.status = 'open'
AND structure.parent_id = $parent_id
AND structure.entry_id = titles.entry_id
ORDER BY entry_date $type";
Can’t wait for Structure 2!
Yaaargh. We just started getting the dreaded red ERROR on drag-and-drop after installing MSM.
Here’s what i can tell you:
For some reason Structure seems to be making the request cross-domain (per Firebug) – not to the main control panel URL but to the URL of the individual site. So my control panel is at
http://www.domain1.com/system/
with two sites, call them domain2.com and domain3.com
When Structure is dragging and dropping in the Domain2 site, it’s calling
http://www.domain2.com/index.php?ACT=20…etc.
I’m GUESSING this is the issue with the drag-and-drop – anyone have a fix?
@Nathan Pitman (Nine Four)
It would be neat if there was a FieldFrame field type that allowed you to select multiple ‘related’ pages from your site using a multi line select to be spat out in a unordered list in the current page. Just sayin. wink
This FF extension will allow you to relate structure entries: http://ellislab.com/forums/viewthread/131174/
You could adapt it to output a multiselect menu or checkbox list quite easily.
@rockthenroll
@Nathan @mikec964 @Mark Croxton - I haven’t seen this issue if anyone can give me access to where it’s happening I’ll take a look. Looking into the code sent as well, but like I said unaware that there’s even an issue and I can’t replicate this.
To replicate the ‘forgetting weblog’ bug: * Manage two or more weblogs with structure * Don’t assign all of them to listing entries, i.e. you have one or more unassigned weblogs * Click to edit an entry that has been assigned as a listing entry * On the entry edit form the weblog select menu defaults to the first weblog in the list, instead of the previously assigned weblog being selected.
My fix works by appending the weblog id as an argument to the edit entry links.
Let’s say I am in a section like this:
Home About - Team - Company (here) - Area Portfolio Contact Us
If I use the following code:
{exp:structure:nav_sub exclude_status="hidden" start_from="/about/"}
Shouldn’t I get an output like this, notice the “start_from” parent shows:
<ul id="nav-sub">
<li class="sub-level-0 parent-here"><a href="/about/">About</a>
<ul>
<li class="sub-level-1"><a href="/about/team/">Team</a></li>
<li class="sub-level-1 here"><a href="/about/company/">Company</a></li>
<li class="sub-level-1 last"><a href="/about/area/">Area</a></li>
</ul>
</li>
</ul>
I thought that was the case. However, I came to my site today the “start_from” parent is not outputting anymore, and I have no idea why. It literally occurred over night and I am baffled.
Here’s what I am getting now:
<ul id="nav-sub">
<li class="sub-level-0"><a href="/about/team/">Team</a></li>
<li class="sub-level-0 here"><a href="/about/company/">Company</a></li>
<li class="sub-level-0 last"><a href="/about/area/">Area</a></li>
</ul>
Loving the new pagination tags!
@misterKeebles Previewing wouldn’t really work the same since it’s not template_group/template
@Adrienne L. Travis Was this working before?
@Mark Croxton Thanks, I’ll test. You have a fix for it? Email me please!
@Hue Labs start_from only shows what’s under that node, if you want to include something you need to go a level up.
I need to do the same as what I think Hue Labs is doing.
I’m trying to work out a way to show top level “pages” with 1 sublevel output as a nested, unordered list. I thought I could do this with
{exp:structure:nav_sub start_from="/"}
This doesn’t work and the only way I seem to be able to get top level pages out is to use nav_main but this won’t let me show any sub pages.
Has anybody got a suggestions as to how I might achieve this?
Yes Pete, exactly. I somehow had this working previously with the parent node (sub-level-0) nesting down to the sub nav children (sub-level-1, sub-level-2, etc). However, it just quit working for me the other day and honestly can’t remember if how I did it (hacked in Structure?).
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.