Hi guys, I hope someone can helps me on this.
I have a particular problem and am looking for a solution. I’m trying to develop a stack for rapidweaver with a hype animation inside. The structure of a stack works with plist and html + css template. All links are managed only in the plist. Unfortunately this way the animation is not loaded. If instead I put the links in the html template it works (as usually happens with hype). Unfortunately this causes problems in the instances of the stack on the same page, some instances are wrong.
with the code below it works ( %assetPath% by stacks API)
template.html
<!-- both JS works only if stored in this place -->
<script type="text/javascript" charset="utf-8" src="%assetPath%/index.hyperesources/index_hype_generated_script.js"></script>
<!-- The second file fix issue in extracontent RWthemes -->
<script type="text/javascript" charset="utf-8" src="%assetPath%/index.hyperesources/HYPE-638.waypoints.min.js"></script>
This should be the right method but it doesn’t work ( <string>each</string> determines where file instances are handled) . the files should be called in the plist and not in the template.html (as above). Note that all files al stored in the Stack Assets
Info.plist
....<key>templates</key>
<array>
<dict>
<key>filename</key>
<string>template.html</string>
<key>scope</key>
<string>each</string>
<key>type</key>
<string>html</string>
</dict>
<dict>
<key>filename</key>
<string>style.css</string>
<key>scope</key>
<string>each</string>
<key>type</key>
<string>css</string>
</dict>
<!-- hype animation customization -->
<dict>
<key>filename</key>
<string>script.js</string>
<key>scope</key>
<string>each</string>
<key>type</key>
<string>js</string>
</dict>
<!-- hype animation customization -->
<!-- hype animation files -->
<dict>
<key>filename</key>
<string>index.hyperesources/HYPE-638.waypoints.min.js</string>
<key>scope</key>
<string>each</string>
<key>type</key>
<string>js</string>
</dict>
<dict>
<key>filename</key>
<string>index.hyperesources/HYPE-638.full.min.js</string>
<key>scope</key>
<string>each</string>
<key>type</key>
<string>js</string>
</dict>
<dict>
<key>filename</key>
<string>index.hyperesources/index_hype_generated_script.js</string>
<key>scope</key>
<string>each</string>
<key>type</key>
<string>js</string>
</dict>
<!-- hype animation files -->
</array>
<key>title</key>
<string>stack title</string>
</dict>
</plist>
it is not easy for me to provide more examples because it’s a specific environment, sorry.
My question is if there is a way to start the animation without putting the link in an html file, but through an external Plist.
Thanks!