Web View with "Clickable" Categories and Twisties
Ever wanted a categorized view where the categories themselves are "clickable"? Tired of those ugly twisties? Here is how to do it.
Put this code in your category columns in the view. This will make the category "clickable".
"[" + "<script>document.write("<a href='"+document.links[document.links.length-1]+"'>" + MyCategoryFieldName + "</a>");</script>" + "]"
Want to get rid of the twisties? Extend the code to look like this.
"[" + "<script>document.write("<a href='"+document.links[document.links.length-1]+"'>" + MyCategoryFieldName + "</a>");" +
"if(document.images[document.images.length-1].src.indexOf("expand.gif") != -1) {" +
"document.images[document.images.length-1].src="/icons/ecblank.gif";}"+
"if(document.images[document.images.length-1].src.indexOf"collapse.gif") != -1){" +
"document.images[document.images.length-1].src="/icons/ecblank.gif";}</script>" + "]"



Download: IT Certifications 101
Inside this exclusive essential guide, our independent experts break down which IT certifications are worth your time and effort, and how to get started obtaining them to further your career— including specific certifications that any cloud or desktop pro should seriously consider.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
You also agree that your personal information may be transferred and processed in the United States, and that you have read and agree to the Terms of Use and the Privacy Policy.
In this example, the twisties are replaced by the ecblank gif; you could of course use any gif of choice.
Start the conversation
0 comments