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
#$.slatwall.product('productDescription')# | |
#$.slatwall.product()# | |
#$.slatwall.getProduct()#<!---This is the proper way of doing it---> | |
#$.slatwall.product('productDescription')# | |
#$.slatwall.getProduct().getProductDescription()#<!---This is the proper way of doing it---> | |
#$.slatwall.product('productDescription', 'my-new-description')# | |
#$.slatwall.getProduct().setProductDescription('my-new-description')#<!---This is the proper way of doing it---> |
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
<cfset currentURL = replace($.slatwall.getURL(),'/index.cfm','','all') /> | |
<cfif currentURL.endsWith("shopping-cart/")> | |
Still haven't found what I'm looking for. | |
<cfelse> | |
Choose your own song then... | |
</cfif> |
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
Associated Image URL - #item.getImageURL()# | |
*****ATRIBUTE SET**** | |
Add custom attribute set to iterator loop - #item.getValue('ContentTypes')# | |
<cfproperty name="contentHistID" type="string" default="" required="true" /> |
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
<cfset rs=application.contentManager.getCategoriesByHistID(request.contentBean.getContentHistID())> | |
<cfloop query="rs"> | |
#name# | |
</cfloop> |
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
<cfif #$.content().getStats().getComments()# gte 1 > | |
<hr/> | |
</cfif> |
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
<cfif $.slatwall.getProductSmartList().getPageRecordsShow() eq 10> | |
<cfset $.slatwall.getProductSmartList().setPageRecordsShow( 15 ) /> | |
</cfif> |
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
<script type="text/javascript"> | |
// jQuery plugin to prevent double submission of forms | |
jQuery.fn.preventDoubleSubmission = function() { | |
$(this).on('submit',function(e){ | |
var $form = $(this); | |
if ($form.data('submitted') === true) { | |
// Previously submitted - don't submit again | |
e.preventDefault(); | |
alert('prevented'); |
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
<cfscript> | |
/** | |
* Deletes a var from a query string. | |
* Idea for multiple args from Michael Stephenson ([email protected]) | |
* | |
* @param variable A variable, or a list of variables, to delete from the query string. | |
* @param qs Query string to modify. Defaults to CGI.QUERY_STRING. | |
* @return Returns a string. | |
* @author Nathan Dintenfass ([email protected]@changemedia.com) | |
* @version 1.1, February 24, 2002 |
OlderNewer