The easier way might be to simply change the variable IFields for each user
based on permissions or role. That way you're only using one edit
template...

On Thu, Feb 25, 2010 at 10:53 AM, Alexandru Bumbacea <
[email protected]> wrote:

> Hello Phil,
>
> I encountered a similar issue and it was handled like this:
> In the templates add a link to same objectid, but with another skin(do this
> only for publishers). In the new skin check if user is editor and after tht
> use formtools to edit. Bellow is an example that i used for editing member
> profiles.
>
> <cfset lFields = "firstName,lastName,dateofbirth,teaserImage,bReceiveEmail,
> phone, fax, locale,lc,university">
> <ft:processForm Action="Save">
>  <ft:processFormObjects objectid="#session.dmprofile.objectid#">
> <!--- At any change we deactive the profile, to be approved by HR --->
>  <cfif application.fapi.checkPermission('profileManager')>
> <cfset stProperties.bActive=0>
>  </cfif>
> </ft:processFormObjects>
> </ft:processForm>
>  <ft:form>
> <ft:object lFields="#lFields#" stObject="#stobj#" Legend="General details
> for #stobj.firstName# #stobj.lastName#" format="edit" includeFieldSet="true"
>  />
>  <ft:button value="Save" />
> <ft:button value="Cancel" />
>  </ft:form>
> Kind regards,
> Bumbacea Alexandru
> Tel:+40751781535
> Fax:+40318105602
>
>
>
> On Thu, Feb 25, 2010 at 4:40 PM, Phil Kemp <[email protected]> wrote:
>
>>
>> Hey guys,
>>
>> I've come across a problem and I was wondering if there was anyone out
>> there
>> who could offer some advice. I have an object, which will be created by
>> someone high up in the pecking order of the client's internal structure.
>> This object can then in turn be edited by the content editors responsible
>> for making the actual site. However, a couple of these fields should not
>> be
>> edited by the content editors, so I was wondering if it is possible to
>> restrict which fields can be edited based on permissions or any other
>> identifying feature?
>>
>> Any info would be grand as I just don't trust the average Joe user to edit
>> some of these fields.
>>
>> Phil.
>> --
>> View this message in context:
>> http://old.nabble.com/Question-about-editing-an-object-tp27714444s621p27714444.html
>> Sent from the FarCry - Dev mailing list archive at Nabble.com.
>>
>> --
>> You received this message cos you are subscribed to "farcry-dev" Google
>> group.
>> To post, email: [email protected]
>> To unsubscribe, email: 
>> [email protected]<farcry-dev%[email protected]>
>> For more options: http://groups.google.com/group/farcry-dev
>> --------------------------------
>> Follow us on Twitter: http://twitter.com/farcry
>
>
>  --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: 
> [email protected]<farcry-dev%[email protected]>
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to