Hi,
Extending a single PLP step is quite easy.
In your invocation page, for the plp step you want to extend,
you merely need to use the "stepDir" attribute as follows:
Your plp step would then look something like
this:
<farcry:plpstep name="Images" template="images.cfm"
stepDir="PATH TO YOUR SPECIFIC PAGE">
This means that all other steps would be executed from the
core directory (which is the default directory set up in stepDir in
<farcry:plp>), while the specific step looks for the code in the directory
you specify.
HTH
Daniela
----- Original Message -----
From: "Gallo, Paul" <[EMAIL PROTECTED]>
To: "FarCry Developers" <[email protected]>
Sent: Tuesday, May 31, 2005 11:19 PM
Subject: [farcry-dev] Is it possible to extend a single plp
step?
> to go through - I don't receive them or see them on Lyris' list. If
> anyone even sees this message, please let me know!)
>
> Hello, first of all - thank you to the contributors of this list for all
> your help on the development of my first site using Farcry. I haven't
> asked any questions yet, but the answers given to others in the last two
> months that I have been subscribed have been extremely helpful.
>
> On the site I am creating, I have extended dmImage to include a new
> property called LinkURL. When a dmNews item is created, and an image is
> added to the news item, the user will have the option to enter a URL that
> the image will link to from the news article. The reason I did not extend
> dmNews with this property is because I would like the ability to have
> multiple images linking to multiple places.
>
> This works, but it results in a lot of code being copied from the core
> directory into my application directory. Extending dmImage is not a
> problem, but to add in one extra field to dmNews, I had to extend the edit
> method, and copy over the whole 'edit' and 'plpedit' folder and its
> contents. The only file that was modified was '_edit/plpedit/images.cfm'.
> Is there a way I can tell the PLP to look for that file in my directory
> and the rest of the steps in the core directory without changing the core?
>
> Also, is there a reason that the contents of the images.cfm plp step is
> duplicated in every type? Wouldn't it be better to have the 'saving' part
> of that step as a shared function or included file somewhere so the code
> wouldn't be in dmNews, dmEvents, each custom type, etc...?
>
> Thanks in advance!
>
> Paul Gallo
>
> ---
> 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/
>
> ---
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/
