Last active
December 18, 2015 03:29
-
-
Save thetrickster/5718819 to your computer and use it in GitHub Desktop.
Business Catalyst Multiple Random Web App Items - Custom Module Template See comments below.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webAppItems.push({id: {tag_itemid}, name: "{tag_name_nolink}", url: "{tag_itemurl_nolink}", image: "{tag_image_value}"}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Business Catalyst Multiple Random Web App Items
See the HTML/Scripts that call this custom module layout at: https://gist.github.com/thetrickster/5718742
See the javascript function/code needed for this implementation: https://gist.github.com/thetrickster/5718857
Custom Module Template
Adding new web app fields/tags
To add another web app field to capture in the array, simply add it to the array above in the syntax:
, key: "value"
Note: Notice the comma. You'll need to add a comma before you can add a key/value pair to the array.
Where it says "value" include your template tag that will generate output.
Important - Using {tag_description} will break the array and the rest of your javascript. Pay attention to your browser's developer console for javascript errors while adding new tags/fields.