I am still trying to get the Attachments Macro to work...
What I see at the Main.Attachments page of our XWiki is code (displayed as
regular text)...
{
"totalrows" : $totalRows,
"matchingtags" : {},
"tags" : [],
"returnedrows" : 10,
"offset" : 1,
"reqNo" : 0,
"rows" : [
{
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
, {
"name" : "$escapetool.javascript($attachName)",
"name_url" : "$aDoc.getAttachmentURL($attachName)",
"type" : " </xwiki/resources/icons/silk/page_white.gif> ",
"size" : "${Msz}Mb",
"author" : " ",
"author_url" : "$xwiki.getURL($attach.author)",
"date" : ""
}
]
}
...which comes from the last piece of Velocity code on that page.
Not sure what that's doing...
Problem still is: I can see the Attachments Macro working, but others can't
:-(
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Attachments-Macro-not-showing-tp7585339p7…
Sent from the XWiki- Users mailing list archive at
Nabble.com.