Open
view.js
from the previous template again.Replace everything with this content:
function getLinkHash(linkHref) { linkHref = linkHref.replace(CCM_DISPATCHER_FILENAME,""); return linkHref.replace(new RegExp("[^a-zA-Z0-9_]","g"), ""); } $(document).ready(function() { // check if there's a hash in the url and // dynamically load the page if (window.location.hash) { $(".nav a").each(function(index, value) { if ("#" + getLinkHash($(this).attr("href")) == window.location.hash) { $("#content").load($(this).attr("href") + " #content > *"); } }) } $(".nav a").click(function() { var linkHref = $(this).attr("href"); var pageUrl = linkHref + " #content > *"; window.location.hash = getLinkHash(linkHref); $("#content").slideUp("normal",function() { $("#content").load(pageUrl,"", function() { $("#content").slideDown("normal"); }); }); return false...
concrete5 Beginner's Guide
concrete5 Beginner's Guide
Overview of this book
Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Installation
Working with concrete5
Permissions
Add-ons
Creating Your Own Theme
Customizing Block Layout
Advanced Navigation
Creating Your Own Add-on Block
Everything in a Package
Dashboard Extensions
Deployment and Configuration
Pop Quiz Answers
Index
Customer Reviews