claudio rosemffet wrote:
But, the code of farcry is really impossible to understand to me.
hundreeds of calling routines, calling others, including others into, and
so.... impossible to follow and understand. !

Don't look at farcry_core -- much of its complexity arises from the code bases efforts to provide a simple abstraction for developers! There should be no reason to change farcry_core -- unless there is a bug of course.


Try here first:
http://farcry.daemon.com.au/go/documentation/developers/how-to

As an example, all I want to do is insert a new step in html page
creation.
the probmem is actually we have 8 steps in html creation page: -start,
-files, -images, -teaser, -body, -related, -categories, -complete.
I need to insert a new step "audio", because I want add to html pages
audio files, between images and teaser steps, i.e. -images, -audio,
-teaser...

What you need to do is the following:
- *extend* the dmHTML content type
(this might be useful http://farcry.daemon.com.au/go/objectid/2B8CC3BC-D0B7-4CD6-F9525292C5BC6A4E)
- add a new PLP step to the edit handler
- create a template for the PLP step


(Note: PLP just means wizard)

obviously I've modified the preferences to accept audio/mpeg sources, but
I'm trying to understand an IMPOSSIBLE CODE !.
it seems that the dropdown navigation menu in html page creation, comes
from phpNavigationbuttons.cfm, the option gets its value from
#CALLER.stPLP.Steps[i].name#, the caller seems to be start.cfm ... etc.
I've added the step <farcry:plpstep name="audio" template="audio.cfm"> in 
edit.cfm, also the file audio.cfm exist in
directory, bun nothing happens at all.

Most important to understand that this drop-down is part of a mini-framework inside FarCry to build multi step wizards.


The menu is a dynamically created drop down based on the wizard steps (defined in the edit handler). It's there to provide a generic navigation solution. The *only* way to change it is to add a step to the wizard -- you cannot modify this code to manually add a step -- its not designed like that.

An alternative would be to remove the phpNavigationbuttons.cfm call altogether and build your own navigation element.

There is an interesting article on PLPs (or the farcry wizards) here:

PLPs Demystified
http://farcry.daemon.com.au/go/objectid/4DAC2D01-D0B7-4CD6-F96528F46FE63ACF

Conditional PLPs
http://farcry.daemon.com.au/go/objectid/7FD51BC6-D0B7-4CD6-F9C0D0EEDCAC8DBB

Hope that helps,

-- geoff
http://www.daemon.com.au/

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to