I just tried the method similar to buzz.js post. changing .oam to zip file. then adding the 2 jquery files to assets and editing xml file. creating to oam file. But I still have the same issue.
Plugin Author
ti2m
(@ti2m)
Please try the dev version of the plugin http://downloads.wordpress.org/plugin/edge-suite.zip and activate jQuery no conflict mode in the settings
I tried that too and the same issues are there.
I am using my second method to link to jquery files. That is
changing .oam to zip file. then adding the 2 jquery files to assets and editing xml file. creating to oam file.
Plugin Author
ti2m
(@ti2m)
Its a bit different when using external files. Edge Suite does all the needed prefixing for you when it comes to Edge Animate internals. But when you use files within your own code you have to add the project path manually. Try to add the following in your code
var path_prefix = '';
if (AdobeEdge && AdobeEdge.pathPrefix && AdobeEdge.pathPrefix.comps && AdobeEdge.pathPrefix.comps[compId]) {
path_prefix = AdobeEdge.pathPrefix.comps[compId] + '/';
}
and then you add path_prefix as a prefix to all custom resources like path_prefix + ‘query.min.js’ etc.
To get additional scripts into the OAM I think you just have to add them with a script tag within the main index html file in the header. Then EA will detect them and pack them as well.
Thanks. Can you tell me few things before I start implementing the above. I am writing almost no programming by myself so it’s a little hard for me to understand the above.
1) How/Where should I add the 2 jquery files? “Directly into public_html/wp-content/uploads/edge_suite/project/XXX” OR “changing .oam to zip file. then adding the 2 jquery files to assets and editing xml file.”
2) Where exactly I should add this code and in which file
var path_prefix = '';
if (AdobeEdge && AdobeEdge.pathPrefix && AdobeEdge.pathPrefix.comps && AdobeEdge.pathPrefix.comps[compId]) {
path_prefix = AdobeEdge.pathPrefix.comps[compId] + '/';
}
3)
and then you add path_prefix as a prefix to all custom resources like path_prefix + ‘query.min.js’ etc.
DO you mean adding path_prefix when I am linking in the files in script tags
4)
To get additional scripts into the OAM I think you just have to add them with a script tag within the main index html file in the header.
For this, do I make the changes by unzipping oam file and editing the index file of the project and zipping it back to OAM file?
Did you ever figure this out? I’m stuck with the same questions you had open that were left unanswered. I added the Js files to the assets folder and also uploaded the new OAM file, but still not working. Not sure where to add the code mentioned above…Thanks.