Can I not nest weblog:entries? I’m just now experimenting with listings. My static page template looks something like this:
{exp:weblog:entries limit="1"}
...
{exp:weblog:entries dynamic="off" weblog="glossary" sort="asc" orderby="title"}
<div class="glossary">
<a name="{url_title}"><dt>{title}</dt></a>
<dd>— {gloss_definition}</dd>
</div>
{/exp:weblog:entries}
{/exp:weblog:entries}
…and that doesn’t work, unless I close the first entries block before the second one starts. That’s not so good, because I really want the listing to be dynamic content, not static in the template, and to do that I need nesting.
You’re not really supposed to use nested weblog:entries tags in the same template, except by using embeds and embedded variables. Can you switch to a setup like that?
That said, are you sure you need to nest? I use listing pages with structure and have all my content dynamic and have never needed to. Maybe if you explain your goal a bit…
@rockthenroll - Switching the weblog to an Asset in Structure makes the SAEF work, but I was still wanting the ability to have a specific URL for each item. I’m creating a simple event listing page and wanted users to submit events that could be reviewed by an admin and then made live by switching the status. Ideally each event would have a unique URL that linked off the event listing page. I also liked the idea of the admin being able to add/edit events by clicking the add/edit links next to my events page in Structure. I understand this isn’t currently be possible with Structure (or even the intention), but I thought I’d share where I was trying to head.
@jlundell same as @slapshotw said you shoudln’t nest weblog tags and I don’t know why you would NEED to in this case. If you really need the content in two places split the tag into two or use a plugin/module that let’s you share weblog data like Reeposition http://ellislab.com/forums/viewthread/37240/
I may well not need to do what I was trying to do. I’m new to this whole EE game, let alone Structure.
The site I’m building is, so far, Structured. I have five or six top-level pages, each with a weblog (is that really necessary?), and they all share a template. Two of those sections have child pages with listings, one for a glossary (with a weblog of definitions) and one for a bibliography. The bibliography has detail pages; the glossary does not, at least not yet.
Originally what I thought I’d do is to put the bibliography listing inside the weblog content for the bibliography page, and use the common template. But that can’t work without nesting. So I created a separate bibliography template (and glossary template), but that didn’t work until I un-nested it. For this particular page, that works OK, and splitting the tag should be OK too. But if there’s a more idiomatic way to do this kind of thing, I’m all ears.
Originally what I thought I’d do is to put the bibliography listing inside the weblog content for the bibliography page, and use the common template. But that can’t work without nesting.
You lost me here. Why doesn’t this work without nesting?
Also, I want to help, but let’s not hijack this thread– maybe start a new thread in how-to so that you can get input from other members of the community? I’m almost certain there’s a better way to accomplish what you’d like.
I installed the module added posts through the publis tab but nothing shows up in the structure tab at all any ideas?
I also get this on the settings page.
No permissible groups exist. A group must have these permissions before it will show here.
* Can access control panel
* Can access publish
* Can access edit
* Can access Structure
Just wanted to reiterate how awesome this is. Structure is completely changing how I’m building sites, especially a new, very large, very complicated site. Hugely satisfying building it this way.
One thing that gave me a little light bulb moment; Once I stopped thinking of the weblog sections as sections, and more as content types (basically just channels to the custom field groups), it made things a lot simpler for me. Basically, for me, the ‘publish’ menu is a dropdown of new page types (ie. New Product Page, New Basic Text Page, New Biography Page), all with their own field sets, which can then go anywhere in the Structure hierarchy. Awesome.
Thanks a ton. If there was a donation button, I’d click it.
Hey all,
I’m getting an error right after installing Structure. I’m using EE 1.6.7 with PHP5. I was previously using the Pages module, but uninstalled it before starting the installation process for Structure.
As instructed, I uploaded the extension, language files, and module to my EE installation. Then I enabled the extension and installed the module. I have CP jQuery enabled. However, when I click on ‘Structure’ (in the modules list) to edit its settings, a page with SQL errors pops up:
MySQL ERROR: Error Number: 1146 Description: Table ‘[my_db].ee__structure_settings’ doesn’t exist Query: SELECT * FROM ee__structure_settings WHERE site_id = 1 AND var LIKE ‘type_weblog_%’ ORDER BY var ASC
I tried searching for similar issues, but didn’t find any. Any help would be appreciated. Thanks!
I just came across a bug that I was wrestling with for a couple days before realizing Structure was part of the problem. Stand Alone Entry Forms apparently cannot submit to a weblog that is managed by Structure. No error gets logged, nothing happens at all except a blank page and no entry submitted to the db. I’d love to have tried to figure out why and possibly work around it, but without a single error in the log, I don’t think I’d have much luck. As soon as I turned off the Structure management from one of the weblogs, the SAEF worked fine.
Any ideas why, or how to fix it? I’d love to have a Stand Alone Entry Form submitting to a listing weblog. Without it, that one weblog will have to live outside of Structure, and will end up being the only one, which is kind of a shame.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.