[opencms-dev] Linking default_bodies to templates

Millo Magnocavallo millo_magno at yahoo.com
Wed Sep 1 11:13:35 CEST 2004


OK, thomas, so just need to sort out the names of the templates and get
the javascript to identify them at the top of the page at which point
they can select they corresponding body definition files?

M

 --- Thomas März <thomasmaerz at gmx.de> wrote: 
> 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
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>  



More information about the opencms-dev mailing list