[OGo-Users] Resolve Teams by default

Helge Hess users@opengroupware.org
Wed, 27 Feb 2008 00:50:54 +0100


On 26.02.2008, at 23:15, Jeff wrote:
> I'd like to set the Resolve Teams to be the default behavior.
>
> I've found the checkbox to be in
> templates/LSWScheduler/SkyParticipantsSelection.wox
> and
> templates/LSWScheduler/OGoAttendeeSelection.wox
>
> However, I'm not sure how (or if it's possible) to hardcode a  
> "check" there.
>
> Here's the unmodified code:
> <input type="checkbox" var:checked="resolveTeams"/>
>
> I tried adding a "checked" in the line (eg: '<input type="checkbox"  
> var:checked="resolveTeams" checked />') and that blew something up  
> because it didn't show me the checkbox at all any more.

Obviously. 'checked' already 'manages' the checked state.

> I also tried changing "resolveTeams" to "true" and "1" to see if  
> that would affect anything - it did not.

You could do:
   <input type="checkbox" const:checked="1"/>
or just
   <input type="checkbox" checked="1"/>

This will show the checkbox checked, but (obviously?) won't touch the  
'resolveTeams' property of the component, hence won't resolve the  
teams in the fetch ...

> Am I barking up the wrong tree?


You probably need to set the 'resolveTeams' ivar to YES in some -init  
method of the respective component class.

Helge
-- 
Helge Hess
http://www.helgehess.eu/