|
1 | 1 | <html> |
2 | 2 |
|
3 | 3 | <head> |
4 | | - <script src='shCore.js' type='text/javascript'></script> |
5 | | - <script src='shBrushWSM.js' type='text/javascript'></script> |
6 | | - <link href='shCore.css' rel='stylesheet' type='text/css' /> |
7 | | - <link href='shThemeDefault.css' rel='stylesheet' type='text/css' /> |
8 | | - <link href='shCoreWSM.css' rel='stylesheet' type='text/css' /> |
| 4 | + <script type="text/javascript" src="scripts/XRegExp.js"></script> |
| 5 | + <script type="text/javascript" src="scripts/shCore.js"></script> |
| 6 | + <link href="styles/shCore.css" rel="stylesheet" type="text/css" /> |
| 7 | + <link href="styles/shThemeDefault.css" rel="stylesheet" type="text/css" /> |
| 8 | + |
| 9 | + <script type="text/javascript" src="scripts/shBrushWSM.js"></script> |
| 10 | + <link href="styles/shCoreWSM.css" rel="stylesheet" type="text/css" /> |
9 | 11 | </head> |
10 | 12 |
|
11 | 13 | <body> |
12 | | - <pre class="brush: RedDot"> |
| 14 | + <pre class="brush: WSM"> |
13 | 15 | <!IoRedDotOpenPage><a href="<%infoBackLink%>">BACK</a><br/><br/> |
14 | 16 | <hr/> |
15 | 17 | <!IoRangeDynLink><%anchorDymanic%><br/><!/IoRangeDynLink> |
16 | 18 | <%!! Store:Get(test) !!%> |
| 19 | + <li> |
| 20 | + <!-- Render link to the current index page --> |
| 21 | + <a href="<%!! Context:CurrentIndex.GetUrl() !!%>"> |
| 22 | + <%!! Context:CurrentIndex.Page.Headline !!%> |
| 23 | + </a> |
17 | 24 | <reddot:cms> |
18 | 25 | <if> |
19 | | - <query> |
20 | | - <htmltext></htmltext> |
21 | | - </query> |
22 | | - <query type="else"> |
23 | | - <xmltext></xmltext> |
24 | | - </query> |
| 26 | + If the current index has child pages |
| 27 | + <query valuea="Context:CurrentIndex.HasChildren()" operator="==" valueb="Bool:True"> |
| 28 | + <htmltext> |
| 29 | + <!-- Render list and call next level --> |
| 30 | + <ul> |
| 31 | + <navigation:nextlevel> |
| 32 | + </ul> |
| 33 | + </htmltext> |
| 34 | + </query> |
25 | 35 | </if> |
26 | | - <foreach></foreach> |
27 | 36 | </reddot:cms> |
28 | | - </pre> |
| 37 | + </li> |
| 38 | + <reddot:cms> |
| 39 | + <foreach itemname="item" object="Context:CurrentPage.Elements" countername="counter"> |
| 40 | + <output type="object" object="Store:counter" /> |
| 41 | + <output type="object" object="Store:item.Name" /> |
| 42 | + <output type="object" object="Escape:Br" /> |
| 43 | + </foreach> |
| 44 | + </reddot:cms> |
| 45 | + </pre> |
29 | 46 | <script type='text/javascript'> |
30 | 47 | SyntaxHighlighter.all(); |
31 | 48 | </script> |
|
0 commit comments