XWikiApplicationExtendedtodoapplication

Last modified by Unknown User on 2019.12.02 at 04:06:17 PST

#set($Appmanager = $services.applicationmanager)
#set($Exception = $Appmanager.DefaultException)

#set($object = $doc.getObject("XAppClasses.XWikiApplicationClass"))

#if($object)
  #set($class = $object.xWikiClass)
  #set($appname = $doc.getValue("appname", $object))
#end

#

#if($appname && $appname.length() > 0)
 
  #set($app = $Appmanager.getApplicationDocument($doc.getValue("appname", $object)))
  

  #if($xcontext.action == "view")
    1 Application \"#if($app.appprettyname && $app.appprettyname.trim() != "")$app.appprettyname#else$app.appname#end\"
  #end
 
  <dl>
    #foreach($prop in $class.properties)
      <dt> ${prop.prettyName} </dt>
      #if($xcontext.action == "view" && $prop.name == "documents")
        <dd>
          #foreach($docfullname in $app.getDocumentsNames(false, false))
            [$docfullname>$docfullname]
          #end
        </dd>
      #elseif($xcontext.action == "view" && $prop.name == "docstoinclude")
        <dd>
          #foreach($docfullname in $app.getDocsNameToInclude(false))
            [$docfullname>$docfullname]
          #end
        </dd>
      #elseif($xcontext.action == "view" && $prop.name == "docstolink")
        <dd>
          #foreach($docfullname in $app.getDocsNameToLink(false))
            [$docfullname>$docfullname]
          #end
        </dd>
      #elseif($xcontext.action == "view" && $prop.name == "translationdocs")
        <dd>
          #foreach($docfullname in $app.getTranslationDocs())
            [$docfullname>$docfullname]
          #end
        </dd>
      #elseif($xcontext.action == "view" && $prop.name == "applications")
        <dd>
          #foreach($appname in $app.getApplications())
            [$appname>$Appmanager.getApplicationDocument($appname).fullName]
          #end
        </dd>
      #else
        <dd>$doc.display($prop.getName())</dd>
      #end
    #end
  </dl>
#else
  1 Document \"$doc.name\"
#end

Tags:
Created by Patrick Masson on 2009.03.24 at 22:38:41 PDT
    

Submit feedback regarding this wiki to webmaster@opensource.org

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 7.4.2 - Documentation