Hi everyone…
I am racking my brains trying to remember if there was a way for one action to effect another actions output on a different page and I just cant remember if this was on someone else’s wish list or this is actually possible.
The action in question is WebYep and I am trying to combine a new 3rd party members only plugin.
This i what I need the action to do:
I have a folder action that creates and publishes the init code file. If I set one of the checkboxes within the folder action to be true I need all pages within that folder to have a certain bit of code added. Not sure if freeway allows this sort of functionality but if someone knows I would sure be grateful
Hi everyone…
I am racking my brains trying to remember if there was a way for one action to effect another actions output on a different page and I just cant remember if this was on someone else’s wish list or this is actually possible.
The action in question is WebYep and I am trying to combine a new 3rd party members only plugin.
This i what I need the action to do:
I have a folder action that creates and publishes the init code file. If I set one of the checkboxes within the folder action to be true I need all pages within that folder to have a certain bit of code added. Not sure if freeway allows this sort of functionality but if someone knows I would sure be grateful
Hi Joe
I have been looking to see if any of the actions I have installed has this method of effecting the output from one action with checkbox of another and I cant see any that uses this function.
is there some explanation anywhere or do you know of another action that has or uses this?
Take a look in the fwParametersCreated callback function in the Google Maps Action.
It’s using “this” to find all Actions with the same name as the current Action, you can just replace that with the name of the Action you’re looking for if you’re looking for something with a different name.
The number in the first argument is optional and specifies the type of Action it’s looking for:
Hi Joe
I have been looking to see if any of the actions I have installed has this method of effecting the output from one action with checkbox of another and I cant see any that uses this function.
is there some explanation anywhere or do you know of another action that has or uses this?
If I recall correctly that was limited to controlling the interface of the target Actions. If you know the name of the functions or methods you want to call in the target Action then you can have full control over how it behaves - something that is both powerful and a bit scary.
One of the things that I encountered recently that falls outside of this is the ability to apply Actions programatically. I ended up duplicating the functionality of an Action in another rather than ask Freeway to apply the known Action to the item and set the paremeters as needed.
Regards,
Tim.
On 31 Aug 2012, at 15:35, Walter Lee Davis wrote:
Tim Plumb and Peter Gutbrod did some early work in this area
I do now remember the action master actions or at least looking at it… I think.
The actual function I was looking for is quite simple as both actions didn’t really need to interact with each other apart from: if a specific and unique check box in the folder action was active, then that would be be seen by the page action and allow raw code to be written into the page. that was it no user data fields or anything like that just purely an on off…
Anyway I am going to have a look at the Google Maps and see if I can see how that works or not as the case may be…
The actual function I was looking for is quite simple as both actions didn’t really need to interact with each other apart from: if a specific and unique check box in the folder action was active, then that would be be seen by the page action and allow raw code to be written into the page. that was it no user data fields or anything like that just purely an on off…
Is there only one Folder Action per document? If so, it becomes much simpler.
Hi joe yes
the folder action is applied to the top folder and then depending if that action has a a specific check box applied then I need to output an extra bit of code in a webyep page action. What I am doing is adapting the webyep actions so I can incorporate a plugin thats been developed by vibralogic and for this to work I ned to add a specific bit of extra code in the page. anyway if there is a simpler way then i am all ears
Hi joe yes
the folder action is applied to the top folder and then depending if that action has a a specific check box applied then I need to output an extra bit of code in a webyep page action. What I am doing is adapting the webyep actions so I can incorporate a plugin thats been developed by vibralogic and for this to work I ned to add a specific bit of extra code in the page. anyway if there is a simpler way then i am all ears
If you want access to that value when the Action is created, when the parameters are refreshed, or when the Action is duplicated or copy/pasted then you should use it inside a function called fwParametersCreated. Otherwise it can go in any one of the publish-time functions.