[DUG-TO] A problem to contemplate

Geoff Crouse geoff at scotiacom.com
Thu Apr 9 14:13:46 EDT 2009


I use ConTemplate when I want to modify how a node will display.  For  
example, I worked on a photography site where each node is a print,  
and wanted to show the print as well as the information about the  
print (size, description, location, etc...).

The template I created had a 2 column border-less table, where in the  
left cell was the print, and in the right cell was the info fields,  
each on a separate line.

As for cleaning up what items are available on the content creation  
form, this can be done simply with roles and turning off permissions  
based on the role of the content creator.  For example, turn off menu  
admin permissions for this particular role.  If you want to hide  
comments this can be done by editing the content type.

As for documentation, I used a "trial and error" with ConTemplate,  
until I had exactly the look I wanted.

Cheers,
Geoff


On 9-Apr-09, at 12:55 PM, Alex De Winne wrote:

> I would recommend only using contemplate if you need to. Things like  
> hiding
> comments for particular content types can easily be done with  
> template file
> overrides (node-type.tpl.php). For display forms, CSS and  
> hook_form_alter
> have served me well in the past.
>
> Cheers,
>
> ALEX DE WINNE
> THEREFORE INTERACTIVE INC.
> T: 905 918 2690  |  F: 416 913 1953  |  W: THEREFORE.CA
> INTERACTIVE  |  EMARKETING  |  WEB HOSTING
>
> This message is intended for the addressees only and may contain
> confidential or privileged information. Any use of this information
> by persons other than addressees is prohibited. If you have received
> this message in error, please reply to the sender and delete or
> destroy all copies
>
>
>
>
>
> On 09/04/09 12:42 PM, "Evan Leibovitch" <evan at telly.org> wrote:
>
>> Hi all,
>>
>> I'm having a brain freeze in implementing the 'contemplate'  module.
>> As I understand it, this module is supposed to allow de- 
>> uglification of
>> content entry and display forms. I'd also like to hide some of the
>> data-entry
>> areas (such as menu and comment settings, which are not relevant  
>> for my
>> new content type) from casual users who will be entering the new  
>> data.
>>
>> Can anyone point me to docs or tutorials on using contemplate,  
>> beyond the
>> minimal that is supplied? Or would you recommend a completely  
>> different
>> approach?
>>
>> Any suggestions are appreciated.
>>
>> - Evan
>>
>> _______________________________________________
>> DUG-TO mailing list
>> DUG-TO at lists.openject.com
>> http://lists.openject.com/listinfo/dug-to
>
>
>
> _______________________________________________
> DUG-TO mailing list
> DUG-TO at lists.openject.com
> http://lists.openject.com/listinfo/dug-to



More information about the DUG-TO mailing list