Protaculous 2 is the new “ready for 6” version of the original Protaculous Action. It does not include the Carousel Action any more, that has been split out into Carousel 2, also for 6. The interface is a little different, and the code is massively streamlined. It is also no longer a “bundle” Action, which should improve its behavior during upgrades.
To successfully migrate from Protaculous to Protaculous 2, you will need to follow these steps, in order, exactly.
- Get a text editor handy, like the free and powerful TextWrangler from http://barebones.com
- Move to each page that uses Protaculous in turn, note which library is selected, and then click on each of the Function Body buttons. If there is code in either of them, start a new text document in TW named the same as the page, write down the chosen library, and then note which Function Body button contains the code, and finally the code itself (copy and paste). Remove Protaculous from the page.
- Publish your document once. (You do not need to upload.)
- Using your text files as a crib, move to each page that needs Protaculous 2 and apply the Action to the page.
- If your library choice was set to prototype or prototype-packed, you do not need to set anything. This is the new default; Prototype is always included when the Action is applied to the page. If you had chosen scriptaculous or scriptaculous-packed, then you may usually get away with just enabling Scriptaculous, which only loads the effects.js library by default. If your application of the Action is more complex, maybe using the drag and drop or slider controls, then you will need to also enable the relevant libraries. If in doubt, enable all of them. You’ll use more bandwidth per page view, but you won’t have to worry about inter-library dependencies.
- If your code was in the top Function Body editor in Protaculous, use the DOM Loaded Observer button to add it in Protaculous 2. If your code was in the bottom Function Body editor in Protaculous, then you use the Window Load Observer button in Protaculous 2.
There is a new option to create external script files, which will place your JavaScript in the Resources folder and link to it, further reducing the size of the page head and (apocryphally) improving your SEO mojo.
Finally, there is an option to use jQuery along with Prototype, but the usual warnings still apply here – it’s still a Very Bad Idea that you should only use if you can’t engineer a better solution.
Walter
On Aug 28, 2013, at 11:55 AM, Barry Hoffman wrote:
Hi,
I am on my way to updating to 6.1 and am going thru my actions to update first.
I have an action called Protaculous used on 3 pages. The version is .7
I found it has been updated since to version 0.7.3 from Aug 2012 and not compatible to version 6 for FW.
http://actionsforge.com/actions/view/18-protaculous
Any advice what to do with this?
thanks,
Barry
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options