31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
@using umbraco.presentation.nodeFactory
|
|
@using System.Xml
|
|
@using OurUmbraco.Wiki.BusinessLogic
|
|
@{
|
|
var packageGuid = "7fc3e288-2be1-493f-a965-2ca6a3c8c78b";
|
|
var files = umbraco.library.GetXmlNodeByXPath("descendant::* [@isDoc and translate(packageGuid,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = translate('" + packageGuid.ToString() + "','ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')]");
|
|
files.MoveNext();
|
|
|
|
if (files.Current is IHasXmlNode)
|
|
{
|
|
Node node = new Node(((IHasXmlNode)files.Current).GetNode());
|
|
string fileId = node.GetProperty("file").Value;
|
|
int _id;
|
|
|
|
if (int.TryParse(fileId, out _id))
|
|
{
|
|
|
|
|
|
WikiFile wf = new WikiFile(_id);
|
|
<p>
|
|
@wf.Path
|
|
@wf.Version.Version
|
|
@wf.Id
|
|
</p>
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|