extending dmUser problem

View: New views
3 Messages — Rating Filter:   Alert me  

extending dmUser problem

by smika-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


We're just installed a fresh copy of Fortress under CF8.01, running on
IIS 7.
First thing we did, we did extend dmProfile to create Staff member
custom type, which looks like one below.
We use scaffold to create an admin interface, and what we got now on
attempt to add a new staff member is:
You can not edit other users' profiles.

Looks like this is the default behavior of dmProfile, which doesnt
allow editing except in case of own profile.Is there a way to
circumvent this restriction?

If this is not doable then instead of extending dmProfile, we can
create a custom ctStaff  with the fields dmProfile contains+ our
custom fields. In this case how do we manage permissions and security
for it?
What we did wrong? Please help.

Mika

<cfcomponent name="staff" displayname="Company Staff"
extends="farcry.core.packages.types.dmProfile" hint="Custom Type for
managing staff" bUseInTree="true" bObjectBroker="true"
objectBrokerMaxObjects="1000">

<cfproperty ftSeq="1" ftwizardStep="General" ftFieldSet="Staff member"
name="title"  required="true" hint="Title of employee" ftLabel="Title"
type="nstring" />
<cfproperty ftSeq="3" ftwizardStep="General" ftFieldset="Bio"
name="bio" type="longchar" hint="Staff member's bio" required="no"
default="" ftLabel="Bio" ftType="richtext">
<cfproperty ftSeq="4" ftwizardStep="General" ftFieldset="Bio"
name="portraitImage" type="uuid" hint="UUID of image to display in
bio" required="no" default=""
ftJoin="dmImage" ftLibraryData="getTeaserImageLibraryData"
ftLibraryDataTypename="dmHTML" ftlabel="Staff member's portrait"/>
<cfproperty ftSeq="7" ftwizardStep="General" ftFieldSet="Display"
name="displayMethod" type="nstring" required="false" hint="Display
method template" ftLabel="Display Method" ftType="webskin"
ftprefix="displayPage" />


<cfproperty ftSeq="30" ftwizardStep="Categorisation" name="catStaff"
type="nstring" hint="Topic." required="no" default=""
ftType="Category" ftAlias="root" ftLabel="Categories" />
<cfproperty name="status" type="string" required="true"
default="draft" hint="status of the object">
<cfproperty name="commentlog" type="longchar" hint="Workflow comment
log" required="no">
</cfcomponent>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-beta" group.
To post to this group, send email to farcry-beta@...
To unsubscribe from this group, send email to farcry-beta-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-beta?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: extending dmUser problem

by Zocoloco Studios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I created something similar to this. Instead of creating a custom  
type - I just extended dmProfile. In other words, make a new file  
called dmProfile.cfc and store it in your project/packages/types  
directory - or in your plugin type directory (pluginName/packages/types

good luck!
elaine


On May 2, 2008, at 10:49 AM, smika wrote:

>
> We're just installed a fresh copy of Fortress under CF8.01, running on
> IIS 7.
> First thing we did, we did extend dmProfile to create Staff member
> custom type, which looks like one below.
> We use scaffold to create an admin interface, and what we got now on
> attempt to add a new staff member is:
> You can not edit other users' profiles.
>
> Looks like this is the default behavior of dmProfile, which doesnt
> allow editing except in case of own profile.Is there a way to
> circumvent this restriction?
>
> If this is not doable then instead of extending dmProfile, we can
> create a custom ctStaff  with the fields dmProfile contains+ our
> custom fields. In this case how do we manage permissions and security
> for it?
> What we did wrong? Please help.
>
> Mika
>
> <cfcomponent name="staff" displayname="Company Staff"
> extends="farcry.core.packages.types.dmProfile" hint="Custom Type for
> managing staff" bUseInTree="true" bObjectBroker="true"
> objectBrokerMaxObjects="1000">
>
> <cfproperty ftSeq="1" ftwizardStep="General" ftFieldSet="Staff member"
> name="title"  required="true" hint="Title of employee" ftLabel="Title"
> type="nstring" />
> <cfproperty ftSeq="3" ftwizardStep="General" ftFieldset="Bio"
> name="bio" type="longchar" hint="Staff member's bio" required="no"
> default="" ftLabel="Bio" ftType="richtext">
> <cfproperty ftSeq="4" ftwizardStep="General" ftFieldset="Bio"
> name="portraitImage" type="uuid" hint="UUID of image to display in
> bio" required="no" default=""
> ftJoin="dmImage" ftLibraryData="getTeaserImageLibraryData"
> ftLibraryDataTypename="dmHTML" ftlabel="Staff member's portrait"/>
> <cfproperty ftSeq="7" ftwizardStep="General" ftFieldSet="Display"
> name="displayMethod" type="nstring" required="false" hint="Display
> method template" ftLabel="Display Method" ftType="webskin"
> ftprefix="displayPage" />
>
>
> <cfproperty ftSeq="30" ftwizardStep="Categorisation" name="catStaff"
> type="nstring" hint="Topic." required="no" default=""
> ftType="Category" ftAlias="root" ftLabel="Categories" />
> <cfproperty name="status" type="string" required="true"
> default="draft" hint="status of the object">
> <cfproperty name="commentlog" type="longchar" hint="Workflow comment
> log" required="no">
> </cfcomponent>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-beta" group.
To post to this group, send email to farcry-beta@...
To unsubscribe from this group, send email to farcry-beta-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-beta?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: extending dmUser problem

by Jeff Coughlin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Mika,

> First thing we did, we did extend dmProfile to create Staff member
> custom type, which looks like one below.
> We use scaffold to create an admin interface, and what we got now on
> attempt to add a new staff member is:
> You can not edit other users' profiles.


I haven't actually tested this, but I think you should be able to just  
use your own edit.cfm file for the object (<myProject>/webskin/
dmProfile/edit.cfm).  Start with the edit.cfm in core as a template  
and make the necessary modifications, like removing the conditional  
statements you're referring to (you can find the original edit.cfm  
file in core/webskin/dmProfile/edit.cfm).

I could be completely wrong (since I haven't actually tried this...  
I'm sure someone will correct me if I'm wrong), but it's worth a  
shot :).

Regards,

--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-beta" group.
To post to this group, send email to farcry-beta@...
To unsubscribe from this group, send email to farcry-beta-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-beta?hl=en
-~----------~----~----~----~------~----~------~--~---