[opencms-dev] Linking default_bodies to templates

Thomas M�rz thomasmaerz at gmx.de
Tue Aug 31 23:50:28 CEST 2004


Millo Magnocavallo <millo_magno at yahoo.com> writes:

> I'm creating each template to have it's own body definitions as they
> are all quite different and don't really want anyone mismatching body
> definitions with templates upon creation of new files.
>
> Any help appreciated.

Modify /workplace/templates/explorer_files_new_page to select the right
default body for each template.

Or use a default body for all templates if the naming of the body parts
doesn't matter. So in one template you use 5 of 9 body parts and in the
other template 7 of 9.

Or dynamically use all none-empty body parts, and the naming of the
parts changes the layout.

Or inlcude different templates depending on your body parts.
http://mail.opencms.org/pipermail/opencms-dev/2004q3/012601.html


I even created for every body part a file in myModule/conf/permissions/
and if the current user has read permissions for the body part
(e. g. bodyGuestUser), the body part is shown. So you can even control
parts of the page. And with the new Direct Edit feature this is very
useful. Maybe it could be a little confusing for editors since they
normally see all body parts, but this was and is just a quick hack.

So i had to modify only little text for different users.

HTH

Tom




More information about the opencms-dev mailing list