The simplest way to achieve this is to go to /farcry/farcry_core/packages/types/_dmNews and copy the edit.cfm file and the plpEdit directory to the equivilent _abYourType in your project types directory.

Make sure your custom type implements the edit method which includes the edit.cfm file. Again, copying from dmNews and changing _abYourType directory will do the job.

A couple of points about setting up a PLP (which is what the setup you're talking about is):
  • The plp tag stepDir needs to point to the plpEdit directory.
  • The plpstep tag needs to specify the files in plpEdit that display each step. The name attributes are used as the step labels in the output. The order of the tags is the order the steps will be displayed in. There are other tricky things you can do with the steps, but those can wait till you have the basics down.
  • When adding fields to the steps, remember to name the inputs the same as the property so that the PLP code can manage the persistence of the wizard and saving the type. Formatting of inputs isn't documented anywhere, so once again, simplest approach is to copy a similar property/input (or even an entire step) and edit it.
  • Inside a plp step (e.g. start.cfm) property values are stored in the "output" struct. e.g. output.body, and these values are stored and saved automatically by the PLP code.
Hope some of this helps.

Blair

On 9/14/06, Jeff <[EMAIL PROTECTED]> wrote:

We have successfully created a new tab in the admin, and a new custom
("Stories") type. Now, when we click on the new tab and subsequently
click on the left navigation we come to the add/edit/delete page. Then
when we click on "add", we see our form in the most simple format ...
all single line text fields, with no formatting or "Save"/"Cancel"
buttons like the other forms.

We now need to edit the field types and match the look of the
established forms (e.g. News, Facts, etc.) by including the styles and
"Save", "Cancel", "Next", etc. buttons.

We have looked for documentation; however, all of it is either old or
stops short of our needs. Additionally, Is there documentation
explaining how to control the display of the form fields (e.g. for
select menus, text areas, browse for file upload, radio buttons, etc.).
Again, right now, we only see single line text fields.

Thanks.




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to