I cannot create a substring in Wiki 1.0 format that uses more than three
characters. We are trying to hide the first nine characters of a space
title and unable to do this since we recieve "Error number 4001 in 4: Error
while parsing velocity page Main.Projects Wrapped Exception: Failed to
evaluate content with id Projects".
Here is the code that I am trying to use. Any help would be greatly
appreciated.
<table id="ChooseYourTableID" class="grid sortable filterable
doOddEven"
cellpadding="0" cellspacing="0" border="0"
align="center">
<tr class="sortHeader">
<th>Current Projects</th>
<th>Owner</th>
</tr>
#set ($hiddenSpaces = ["XWiki", "Admin", "Panels"])
#set ($hiddenPages = ["Main.WebRss", "Main.WebSearch",
"Main.LuceneSearch",
"Main.WebSearchRss", "Main.BlogRss", "Blog.Macros",
"Main.TagsRss",
"Main.RegisterNewUserAction", "Main.SpaceIndex",
"Blog.Category"])
<div id="xwikinavcontainer">
#set($spaces = $xwiki.spaces)
#set($i = 0)
#set($spacecount = 0)
#foreach($space in $spaces)
<tr>
#if (!$hiddenSpaces.contains($space))
#set($LimitingCriteria = "${space.substring(0, 9)}")
#set($DisplayName = "${space.substring(9)}")
#set($Page = $space+".WebHome")
#set($Document = $xwiki.getDocument($Page))
#set($Author = $Document.getCreator())
#set($AuthorName = $xwiki.getUserName($Author, false))
#if ($LimitingCriteria == "Project ~")
#set($spaceWebHome =
"http://iccapp3:8080/xwiki/bin/view/$space/?text=_&space=" + $space )
<td>[$DisplayName>$spaceWebHome]</td>
<td>[$AuthorName>$spaceWebHome]</td>
#end
#end
</tr>
#end
</table>
Thank you very much,
Brian
--
View this message in context:
http://n2.nabble.com/Unable-to-substring-above-3-characters-tp3136626p31366…
Sent from the XWiki- Users mailing list archive at
Nabble.com.