Cambios para el documento WikisMacro
Última modificación por Administrator el 2024/06/06 12:27
Desde la versión 4.1
editado por Administrator
el 2024/06/06 12:27
el 2024/06/06 12:27
Cambiar el comentario:
Install extension [org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki/15.10.10]
Hasta la versión 3.1
editado por Administrator
el 2024/06/05 19:09
el 2024/06/05 19:09
Cambiar el comentario:
Migrated property [contentType] from class [XWiki.StyleSheetExtension]
Resumen
-
Objetos (2 modificado, 0 añadido, 0 eliminado)
Detalles
- XWiki.StyleSheetExtension[0]
-
- Código
-
... ... @@ -1,6 +1,7 @@ 1 1 #template('colorThemeInit.vm') 2 2 #spWorkspaceCreateItem { 3 3 background-image: url("$xwiki.getSkinFile('icons/silk/chart_organisation_add.png')"); 4 + background-repeat:no-repeat; 4 4 } 5 5 6 6 #spWorkspaceCreateLabel a { ... ... @@ -16,13 +16,7 @@ 16 16 17 17 .spWorkspaceItem { 18 18 background-image: url("$xwiki.getSkinFile('icons/silk/chart_organisation.png')"); 19 -} 20 - 21 -ul.xlist li.workspace { 22 - background-position: 2px 3px; 23 23 background-repeat:no-repeat; 24 - /* Leave space for the icon. */ 25 - padding-left: 1.5em; 26 26 } 27 27 28 28 ul.xlist li.workspace div.spWorkspaceName {
- XWiki.WikiMacroClass[0]
-
- Cacheado
-
... ... @@ -1,1 +1,0 @@ 1 -No - Renderizado asíncrono
-
... ... @@ -1,1 +1,0 @@ 1 -No - Código de la macro
-
... ... @@ -4,7 +4,8 @@ 4 4 ## 5 5 #set($discard = $xwiki.ssx.use('WikiManager.WikisMacro')) 6 6 ## 7 -#set ($wikis = $services.wiki.all) 7 +#set ($wikis = $services.wiki.getAll()) 8 +##set ($discard = $workspaces.removeAll($WorkspaceManager.getWorkspaceTemplates())) 8 8 ## 9 9 #if (!$wikis || $wikis.size() == 0 ) 10 10 {{translation key="platform.wiki.macro.noWikis"/}} ... ... @@ -16,8 +16,6 @@ 16 16 ## List wikis. 17 17 ## 18 18 #foreach($wiki in $wikis) 19 - ## We check that we have the view right on the wiki 20 - #if ($xwiki.hasAccessLevel('view', $xcontext.userReference, $wiki.mainPageReference)) 21 21 <li class='xitem xunderline xhighlight workspace spWorkspaceItem'> 22 22 <div class='xitemcontainer'> 23 23 <div class='spWorkspaceName'>{{html}}<a href="${xwiki.getURL($wiki.mainPageReference)}">${wiki.prettyName}</a>{{/html}}</div> ... ... @@ -24,12 +24,11 @@ 24 24 <div class='xspacer'> </div> 25 25 </div> 26 26 </li> 27 - #end 28 28 #end 29 29 ## Wiki creation. 30 30 ## 31 31 ## Only if the current action is not inline. If it's inline, then there is already a form, and if we render the second, nested one, the DOM is messed up in IE. 32 - #if(!$isGuest && $hasCreateWiki &&"$!xcontext.action" != 'inline')30 + #if(!$isGuest && "$!xcontext.action" != 'inline') 33 33 <li id='spWorkspaceCreateItem' class='xitem workspace'> 34 34 <div class='xitemcontainer'> 35 35 #set ($createWikiDocumentReference = $services.model.createDocumentReference($xcontext.mainWikiName, 'WikiManager', 'CreateWiki')) - Default categories
-
... ... @@ -1,1 +1,0 @@ 1 -Navigation - Categoría predeterminada
-
... ... @@ -1,0 +1,1 @@ 1 +Navigation