The best way would probably involve extending the category formtool and changing the edit method. One approach might be to add support for a new attribute (like ftPermission) which outputs either the category tree or a restricted access message depending on whether the logged in user has the specified permission.
Option 1 wouldn't really work because property metadata is extracted once on application initialisation. Blair On Jan 19, 2008 3:28 AM, Jaci <[EMAIL PROTECTED]> wrote: > > How do I NOT show the category tree in the event type based on the > policy group that someone belongs to? > > I have my theories but I'd rather here from someone experienced with > farcry what they would do. > > Option1 > I'm assuming you can extend the event.cfc which I have already done > and wrap some kind of if statement around the cfproperty tag. So I > would put this in my local cfc: > > <cfif groupid=#whatever#> > <cfproperty ftseq="11" ftfieldset="Categorisation" > ftwizardStep="General Details" name="catEvent" type="longchar" > hint="Event categorisation." required="no" default="" > fttype="category" ftalias="dmevent" ftlabel="Event Category" /> > </cfif> > > However, wouldn't this just make one category form element that shows > all the time because its on the baseline copy and then one that shows > only if you're part of the right group based on the extended > properties. > > Option2 > create a permission that shows the category based weather the group > you belong to has that permission. > > I know how to add a permission via the interface but where/how do you > write the code for it? Where does the pemission code live in core and > where would it go in the local project? Where/How would you modify the > event.cfc to use the permission? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
