Note, that this recipe is not updated long time and could be outdated!
Got it.

Padomu metaatribūtu apgabala izveide

Must prepare before:  Padomu bāzes izveide

Must prepare further:  Klases RecipeInfo izveide

  1. Sākuma lapā sadaļā Create izvēlas New Space, ievada Custom un spiež Create.
  2. Apgabalam tiek izveidota lapa WebHome, virsrakstā ieraksta Dažādi objekti.
  3. Saturā ieliek sekojošu saturu:

    = Dažādi objekti =
    {{include reference="Custom.Velocity"/}}{{velocity}}
    #if($hasAdmin)
    #set($hql = "where doc.space='$doc.space' and doc.name!='WebHome' and doc.name!='WebPreferences' order by doc.name asc")
    #set($results = $xwiki.searchDocuments($hql))
    #set($brow = $results.size()/2)
    #set($crow = 0)



    {{container layoutStyle="columns"}}
    (((
    |=Lapa|=Darbības
    #foreach($i in $results)
    |[[$i]]|#editwiki($i) #editobjects($i) #editclass($i) #del($i)\\
    #set($crow = $crow+1)
    ## create new table cell at the break
    #if($crow == $brow)
    )))
    (((
    |=Lapa|=Darbības
    #end
    #end
    |[[LiveTableResultsMacros>>XWiki.LiveTableResultsMacros]]|#editwiki('XWiki.LiveTableResultsMacros')\\
    |[[XWiki klases>>XWiki.XWikiClasses]]|\\
    )))
    {{/container}}
    #end
    {{/velocity}}

  

Created by Valdis Vītoliņš on 2008-07-16 12:45
Last modified by Valdis Vītoliņš on 2020-05-25 13:57
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License