Re: [phpslash-users] Updating blocks
Brought to you by:
joestewart,
nhruby
From: Joe S. <jo...@cm...> - 2002-04-26 12:08:00
|
On Fri, Apr 26, 2002 at 11:22:58AM +0100, Peter Cruickshank wrote: > > > > Talking of the Sections block, am I right in thinking that a section will > > only appear in the block if it has a story associated with it? Yes, this is usually A Good Thing. > > This causes > > me a problem as follows: if I create a new HTML block owned by a section > > which has no stories associated with it, there is no way to access that > > block without creating a story in it so the section appears in the > > "Sections" block. Or am I missing something...? > You might be better served creating the link yourself, either in a new block, or a manually created sections block. The automatically created sections block can be handy, but also limiting. > This bit you can sort by adding the parameter 'mode=all' in the url part of > the section-block configuration (if you see what I mean). > > * Available query options: > * > * mode = all [] show all sections ( even those with no stories) > * section_id = limit returned data to this section_id > * section = limit returned data to this section > * tpl = template filename [sectionsblock] (no path or extension) > > This is from the comments block_render_section.class - I've added it as a > comment to the documentation at: > http://www.phpslash.org/article.php3?story_id=29&topic_id=39§ion_id=8 > Thanks for adding that, I wouldn't recommend its use anymore because of the use of the Admin section. This section is effectively hidden because it has no stories. While the blocks have perms set that don't allow any unauthorized viewing, the url is active and displays just a header and footer. Joe |