Child Pages List
Access
{{reader}}
Favourite Pages
{{pageEntry.pageName}}
Signed in as {{currentUser}} {{avatar}}
Sign Out
Sign In as Different User
{{currentUserExtraOptions}}
OpenForum
Extensions
ChildPagesList
Creates a bulleted list of child pages
Parameters
pageName - The page to list (optional. default = current page)
[{ChildPagesList pageName="/OpenForum"}] or [{ChildPagesList}]
About
Access
Actions
AddOn
Authentication
Authorization
Configuration
DeletedPages
Editor
ErrorPages
Extensions
FileTemplates
Giraffe
Groups
HomePage
Images
JarManager
Javascript
Journal
MessageQueue
MissingPages
PageTemplates
Processor
PublishingJournal
SQL
SiteExplorer
Sites
Spider
SystemMonitor
Temporary
Triggers
Upload
Users
renderer.sjs
//OpenForum/Extensions/ChildPagesList/renderer.sjs
var targetPage = extension.getAttribute("pageName"); if(targetPage===null) { targetPage = pageName; } targetPage = ""+targetPage; var newTab = extension.getAttribute("newTab"); if(newTab=="true") { newTab = true; } else { newTab = false; } list = file.getAttachmentsForPage( targetPage ); if(targetPage.charAt(0)!='/') { targetPage = "/"+targetPage; } var pagesList = []; iterator= list.keySet().iterator(); while(iterator.hasNext()) { var key = ""+iterator.next(); if(key.charAt(0)!='+' || key=="+history") { continue; } else { pagesList.push( key.substring(1) ); } } pagesList.sort(); var data = ""; for(var i in pagesList) { var item = pagesList[i]; if(newTab) { data+="* ["+item+"|"+targetPage+"/"+item+"=]\n"; } else { data+="* ["+item+"|"+targetPage+"/"+item+"]\n"; } } return js.getObject("/OpenForum/Javascript/Renderer","DefaultRenderer.sjs").render(pageName,data);
An error has occurred.
{{OpenForum.errorMessage}}
See technical details
×
Error details.
{{OpenForum.error}}
×
{{OpenForum.alert.title}}
{{OpenForum.alert.message}}
×