Last active
February 25, 2016 12:56
-
-
Save svendahlstrand/b8d57980de0812cff380 to your computer and use it in GitHub Desktop.
Ett skript som visar antalet sidor under "huvudrubrikerna" i en Webbkarta i SiteVision.
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> | |
(function ($) { | |
$('.sv-sitemap-portlet > ul > li').each(function () { | |
var listItem = $(this); | |
var link = listItem.find('> a'); | |
var childItems = listItem.find('li'); | |
link.append(' (' + childItems.size() + ')'); | |
}); | |
}(jQuery)); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
När du publicerar och går ut i visningsläge bör du se en på antalet undersidor för varje huvudrubrik.