Last active
August 29, 2015 14:16
-
-
Save pauldenato/bee3f07ef9689fe023d8 to your computer and use it in GitHub Desktop.
Add Search Links to Credits in Mura
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
<!---Place the dsp_content_list into the thems display objects folder---> | |
<!---Credits must be comma delimitted or the entire credit will be created as a search---> | |
<!---Replace the inside the <cfcase value "Credits">---> | |
<cfif len(arguments.item.getValue('credits'))> | |
<!---Create New List---> | |
<cfset creditListHref = ''> | |
<!---Loop Credits and create a linked vaule for Comma Delimited Credits---> | |
<cfloop list="#HTMLEditFormat(arguments.item.getValue('credits'))#" delimiters="," index="i"> | |
<!---Append to List to get the New hyper linked values---> | |
<cfset creditListHref = listAppend(creditListHref,'<a href="?Keywords=' & reReplace(i,' ','+','ALL') & '&display=search&newSearch=true&noCache=1">'& i &'</a>',',') /> | |
</cfloop> | |
<#variables.$.getContentListPropertyValue(arguments.field,'tag')# #variables.$.getContentListAttributes(arguments.field)#> | |
#variables.$.getContentListPropertyValue(arguments.field,"openingInnerMarkUp")# | |
#variables.$.getContentListLabel(arguments.field)# | |
<!---New Linked Output---> | |
#creditListHref# | |
#variables.$.getContentListPropertyValue(arguments.field,"closingInnerMarkUp")# | |
</#variables.$.getContentListPropertyValue(arguments.field,'tag')#> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment