-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign-entry.vm
More file actions
43 lines (39 loc) · 1.89 KB
/
design-entry.vm
File metadata and controls
43 lines (39 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#drulykgImportPassThrough( "${BRISK[ 'APP_PATH' ]}app-constants" )
##
#setHhConstants
## get page contents
#set( $pageElementMap = {} )
##
#set( $page = $_XPathTool.selectNodes( $contentRoot, "calling-page/system-page" )[ 0 ] )
#set( $pageSystemDataStructure = $_XPathTool.selectNodes( $page, "system-data-structure" )[ 0 ] )
##
## the design setup
#chanwImportScript( "${BRISK_APP[ 'SITE_DESIGNS_PATH_NTS' ]}/${design_namespace}" $BRISK[ 'APP_SITE_NAME' ] 'setup' )
#processSiteSetup
## the site setup
#chanwImportScript( "/" $currentPageSiteName 'setup' )
## the folder setup
#set( $folderSetupFormatExists = false )
#chanwLocateAssetInAncestorFolder(
$currentPage.ParentFolder.Path $currentPageSiteName "format" $FOLDER_SETUP_FORMAT_NAME )
##
#if( $chanwLocateAssetInAncestorFolder != "" && $chanwLocateAssetInAncestorFolder.ParentFolder.Path != "/" )
#set( $folderSetupFormatExists = true )
#chanwImportScript( "${chanwLocateAssetInAncestorFolder.ParentFolder.Path}" $currentPageSiteName 'setup' )
#end
## the page setup: in hh_macros
##
## app custom macros
#chanwImportScript( "${BRISK_APP[ 'SITE_DESIGNS_PATH_NTS' ]}/${design_namespace}" $BRISK[ 'APP_SITE_NAME' ] "hh_macros" )
##
#set( $siteConfigMap[ 'treeName' ] = "left-center" )
#chanwImportScript( $HH_TREE_FOLDER_PATH $BRISK[ 'APP_SITE_NAME' ] "design-tree" )
#resolvePageTreeName
##<h1>$siteConfigMap[ 'treeName' ]</h1>
#if( $siteConfigMap[ 'treeName' ] != "inherited" )
#set( $mainIndex = $chanwObjectNodeMap[ "body" ].getIndex( $chanwObjectNodeMap[ "main" ] ) )
#set( $void = $chanwObjectNodeMap[ "body" ].remove( $chanwObjectNodeMap[ "main" ] ) )
#chanwImportScript( $HH_TREE_FOLDER_PATH $BRISK[ 'APP_SITE_NAME' ] "hh-${siteConfigMap[ 'treeName' ]}-main-tree" )
#set( $void = $chanwObjectNodeMap[ "body" ].insert( $chanwObjectNodeMap[ "main" ], $mainIndex ) )
#end
#chanwDisplayTreeNodeRecursively( $chanwObjectNodeMap[ "html" ] )