selection of blocks predefined in template

Permalink
Hello there!
I just evaluated C5 and i like the way a user can edit the webpage.

My first Question is: Does anyone know how i can limit/predefine the blocks usable in the Area? For example that on the navigation Area i only want Navigation Elements?

Is it possible to reuse a block and fix it on every site? For example i don't want to put a navigation block on every site and if I want to change it, edit it on every site.

It would be great to have a solution for this and at it to the documentation.

Cheers, Daniel

dkellenberger
 
Remo replied on at Permalink Reply
Remo
as far as I know, it's not possible to restrict an area to certain blocks yet (I'd like to have that feature too)

About the second one, there's a solution and it's also documented..
http://www.concrete5.org/help/using_concrete5/how-tos/scrapbook_def...
frz replied on at Permalink Reply
frz
if you turn on advanced permissions, you can set what types of blocks specific users or groups can add to an area by going into its permissions..

and yeah, youre looking for defaults in page types in the dashbaord.
Remo replied on at Permalink Reply
Remo
.. I tend to forget that feature since I don't like to use it :)
dkellenberger replied on at Permalink Reply
dkellenberger
thank you for your tip with the "defaults". that is what i looked for.

for the 2nd. is advanced security not "experimental"? what would be cool is something like this in the template:

$a = new Area('Header Nav');
$a->filterBlockSelection('auto_nav', 'fancy_nav');
$a->display($c);

Just as an Idea. Thank you for your quick help :D
Remo replied on at Permalink Reply
Remo
as a matter of fact this is quite an old idea :)

http://www.concrete5.org/community/features/advanced_permission_-_r...
frz replied on at Permalink Reply
frz
advanced permissions is stable.

you used to be able to hack templates like that, may still be able to.. but you can also do the same thing thru the UI.
Remo replied on at Permalink Reply
Remo
how can I hack a template to do that?

I've never came across such an example yet!
Thanks!
frz replied on at Permalink Reply
frz
i think we killed it after version 4 cause it conflicted with the same stuff u could do in permissions for an area... which one takes priority..etc.
dkellenberger replied on at Permalink Reply
dkellenberger
i looked at the screencast, but it stopped at 2/3 after an encoding problem (at least here with flashplayer, xine or mplayer).

if i add a block to the defaults, it only changes the "new" page template, but i didn't find out how to add a block for every page with that page type.
what worked when i added a block to the defaults and then createt some pages with this page type, it used everywhere the same block and also a change to the block (e.g. content) affected the newly createt pages.

therefore i still have the question: how can i add a block to every page having the same pagetype (internaly use the same block id). Perhabs it would be good to add a text version of your screencast (just some notes).

p.s.: the output code for auto_nav is not the same in the preview and in the default view (in the default view we have no <ul> for every new level)