Search: box cssClass anchor

Last modified by s203917 on 2025/09/16 14:43

      

Results 1 - 10 of 4,327 next page » Page 1 2 3 4 5 6 7 8 9 ... 433

IRC Archive for channel #xwiki on 17 June 2016

Located in
Last modified by Vincent Massol on 2016/06/17 23:14
Rendered document content
I've selected all with the keybord || and with the mouse. 12:02 <vmassol> command+A on mac to select all 12:03 <vmassol> the wysiwyg shows an empty content after hitting dleete 12:03 <vmassol> but if you check the source it still contains 12:03 <vmassol> {{box cssClass="floatinginfobox"}} 12:04 <evalica> I cannot reproduce 12:06 <vmassol> otherwise we'll need to discuss dev of apps with nested pages; it's a major pain right now with Nested Pages.
Raw document content
I've selected all with the keybord || and with the mouse. 12:02 <vmassol> command+A on mac to select all 12:03 <vmassol> the wysiwyg shows an empty content after hitting dleete 12:03 <vmassol> but if you check the source it still contains 12:03 <vmassol> {{box cssClass="floatinginfobox"}} 12:04 <evalica> I cannot reproduce 12:06 <vmassol> otherwise we'll need to discuss dev of apps with nested pages; it's a major pain right now with Nested Pages.

IRC Archive for channel #xwiki on 08 January 2014

Located in
Last modified by Vincent Massol on 2014/01/08 23:07
Rendered document content
18:05 <gdelhumeau> tmortagne: yes 18:06 <gdelhumeau> sorry for disturbing the release... 18:06 <tmortagne> close it for 5.4M1 then and I will continue with platform 18:06 <tmortagne> commons and rendering are done 18:06 <gdelhumeau> I can't close... 18:06 <tmortagne> ok doing it then 18:06 <gdelhumeau> I have still the issue with jira :( 18:11 <gdelhumeau> thx 18:18 <xwikinewb> has joined #xwiki 18:20 <xwikinewb> Hi, I'm new to Xwiki and try to get a floating text box. If I enter "{{velocity}}#floatingbox("Test-text"){{/velocity}}" as xwiki code, the result ends up being html code. 18:20 <xwikinewb> Am I missing some step?
{{/html}}{{/velocity}}" 18:24 <tmortagne> xwikinewb: you can also use {{box cssClass="floatinginfobox" title="**Contents**"}}Test-text{{/box}} instead of mixing velocity and html 18:25 <tmortagne> #floatingbox is a bit old and written when the default syntax was a mix of velocity and html by default 18:25 <xwikinewb> how would I go about to find out about those useful macros? :) 18:26 <tmortagne> http://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro for the box macro and the "floatinginfobox" is simple the same css class used by #floatingbox 18:26 <xwikinewb> ok.
Raw document content
18:05 <gdelhumeau> tmortagne: yes 18:06 <gdelhumeau> sorry for disturbing the release... 18:06 <tmortagne> close it for 5.4M1 then and I will continue with platform 18:06 <tmortagne> commons and rendering are done 18:06 <gdelhumeau> I can't close... 18:06 <tmortagne> ok doing it then 18:06 <gdelhumeau> I have still the issue with jira :( 18:11 <gdelhumeau> thx 18:18 <xwikinewb> has joined #xwiki 18:20 <xwikinewb> Hi, I'm new to Xwiki and try to get a floating text box. If I enter "{{velocity}}#floatingbox("Test-text"){{/velocity}}" as xwiki code, the result ends up being html code. 18:20 <xwikinewb> Am I missing some step?
{{/html}}{{/velocity}}" 18:24 <tmortagne> xwikinewb: you can also use {{box cssClass="floatinginfobox" title="**Contents**"}}Test-text{{/box}} instead of mixing velocity and html 18:25 <tmortagne> #floatingbox is a bit old and written when the default syntax was a mix of velocity and html by default 18:25 <xwikinewb> how would I go about to find out about those useful macros? :) 18:26 <tmortagne> http://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro for the box macro and the "floatinginfobox" is simple the same css class used by #floatingbox 18:26 <xwikinewb> ok.

Top Panel Menu

Located in
Last modified by Clemens Robbenhaar on 2024/07/22 00:13
Attachment content
-- Groups vertical aligned --> ## List bulleted lists: children pages of Col-xx #set($ColDocs=$xwiki.getDocument("$MyDoc1.fullName")) #foreach ($child2 in $ColDocs.getChildren()) #set($MyDoc2=$xwiki.getDocument($child2)) #if ($MyDoc2.documentReference.parent.name.startsWith("$ListPrefx")) #set($FlatContent =${FlatContent} + "== ${MyDoc2.title} == ") ## Start of Bulleted list + links group title #set ($MyPanel=${MyPanel} + "<div class='p-2 menu-listitem'>") #set ($MyPanel=${MyPanel} + "<p class='titre-listitem'>${MyDoc2.title}</p>") #set ($Liens="{{include reference='$MyDoc2.fullName' context=new /}}") #set ($MyPanel=${MyPanel} + "$Liens") #set ($FlatContent =${FlatContent} + "$Liens ") #set ($MyPanel=${MyPanel} + "</div>") #end ## End of bulleted lists #end ## End of column #set ($MyPanel=${MyPanel} + "</div>") ##End of 'col col-md-3 menu-col' #end #end ## End of all columns (children pages of col-xx) #set ($MyPanel=${MyPanel} + '</div>') ##Fin de "row top-menu-row" (OK) #set ($MyPanel=${MyPanel} + '<a href="' + $xwiki.getURL("$MenuSommaireGalDoc", 'view') + '" class="GoToSommaire" type="button" title="' + $services.localization.render("CustomExtension.TopPanelMenu.Content.GoToSummary") +'">' + $services.localization.render("CustomExtension.TopPanelMenu.Content.Summary") + '</a>') #set ($MyPanel=${MyPanel} + '</div>') ##End of "tab-pane fade" (OK) #end #end #set ($MyTabStr=${MyTabStr} + '</ul>') ## displayed menu or summary table #if ($Flat) {{box cssClass="floatinginfobox" title="**Sommaire**"}} {{toc numbered="true" depth="3"/}} {{/box}} ## If numberheadings extension is installed ## {{numberedheadings/}} $FlatContent #else <div class="menu-container"> ## Tabs $MyTabStr ## Menu displayed <div id="top-menu-content" class="tab-content"> $MyPanel </div> ## End of "top-menu-content" </div> ## End of "menu-container" #end {{/html}} {{/velocity}} CustomExtension.TopPanelMenu.Content.WebHome 0 XWiki.StyleSheetExtension 9153167e-96e5-48ab-bc6d-962e73d1070d XWiki.StyleSheetExtension 0 long 0 select 0 cache 5 Caching policy 0 |, 1 0 long|short|default|forbid com.xpn.xwiki.objects.classes.StaticListClass PureText 0 PureText code 2 Code 20 50 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 0 select 0 contentType 6 Content Type 0 |, 1 0 CSS|LESS com.xpn.xwiki.objects.classes.StaticListClass 0 name 1 Name 30 0 com.xpn.xwiki.objects.classes.StringClass 0 select yesno parse 4 Parse content 0 com.xpn.xwiki.objects.classes.BooleanClass 0 0 select 0 use 3 Use this extension 0 |, 1 0 currentPage|onDemand|always com.xpn.xwiki.objects.classes.StaticListClass long @media print { .menu { display: none; } } .menu { &.menu-vertical { ul { list-style-type: none; margin-top: .3em; padding: 0; ul { padding: 0 1em; } } li { padding: .3em; /* Separator horizontal inside menu */ &:empty { .nav-divider(@dropdown-divider-bg); margin: .3em 0; padding: 0; } } .xDropdown-menu { display: none; } .xDropdown-toggle { cursor: pointer; position: relative; &:hover { background-color: @nav-link-hover-bg; } &:after { .caret; content: ''; /* Positioning */ position: absolute; margin-top: @line-height-computed / 3; right: 1em; /* Collapsed arrow style */ border-bottom: 4px solid transparent; border-right: 4px solid; border-top: 4px solid transparent; } } .xDropdown.open { > .xDropdown-toggle:after { /* Expanded arrow style */ .caret; margin-top: @line-height-computed / 2; } > .xDropdown-menu { display: block; } } } &.menu-horizontal { /* Stylization: Navbars */ .clearfix; background-color: @navbar-default-bg; border-color: @navbar-default-border; /* Custom styling */ .box-shadow(0 2px 8px rgba(0,0,0,0.4) inset); min-height: @navbar-height; padding-left: 25px; & > ul { padding-left: 0; list-style-type: none; margin: 0; & > li { position: relative; display: block; padding: @nav-link-padding; padding-top: @navbar-padding-vertical; padding-bottom: @navbar-padding-vertical; @media (min-width: @grid-float-breakpoint) { float: left; } line-height: @line-height-computed; color: @navbar-default-link-color; &:hover { color: @navbar-default-link-hover-color; background-color: @navbar-default-link-hover-bg; background-color: @navbar-default-link-active-bg; color: @navbar-default-link-active-color; /* When hovering, have the same color for text and link usage */ & > span > a { background-color: @navbar-default-link-active-bg; color: @navbar-default-link-active-color; } } /* Links inside menu */ a { color: @navbar-default-link-color; &:hover { text-decoration: none; } } /* Containers, images inside menu */ div, img { /* Limit the height to the nav height minus the padding and minus border */ max-height: @navbar-height - (2 * @navbar-padding-vertical) - 2px; overflow: hidden; } /* Separator vertical inside menu */ &:empty { height: @navbar-height; margin: 0 ((@line-height-computed / 2) - 1); padding: 0; border-right: 1px solid @navbar-default-border; } } /* Stylization: Dropdowns */ ul { position: absolute; top: 100%; left: 0; z-index: @zindex-dropdown; display: none; // none by default, but block on "open" of the menu float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; // override default ul list-style: none; font-size: @font-size-base; text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) background-color: @dropdown-bg; border: 1px solid @dropdown-fallback-border; // IE8 fallback border: 1px solid @dropdown-border; border-radius: @border-radius-base; .box-shadow(0 6px 12px rgba(0,0,0,.175)); background-clip: padding-box; margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; li { /* Text inside menu */ color: @dropdown-link-color; /* Links inside menu */ a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: @line-height-base; color: @dropdown-link-color; overflow: hidden; text-overflow: ellipsis; // Displaying ... if the text is too long &:hover { /* &:extend(.dropdown-menu>li>a:hover); */ text-decoration: none; color: @dropdown-link-hover-color; background-color: @dropdown-link-hover-bg; } } /* Submenus inside menu */ &.xDropdown { /* Even if we don't have links, display the content the same way */ display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: @line-height-base; color: @dropdown-link-color; /* Empty dropdowns should have height in order to display the arrow */ min-height: 2 * @font-size-base; &:hover { text-decoration: none; color: @dropdown-link-hover-color; background-color: @dropdown-link-hover-bg; /* When in dropdown we also have a link, adjust the hover color */ & > span > a { color: @dropdown-link-hover-color; } } /* When in dropdown we also have a link, reset the duplicated padding */ & > span > a { padding: 0; display: inherit; } /* Place the arrow on the right */ &:after { position: absolute; margin-top: @line-height-computed / 2; right: 8px; } } /* Separator horizontal inside menu */ &:empty { .nav-divider(@dropdown-divider-bg); padding: 0; } } } } /* Stylization: Generic */ li { /* Display submenus on hover */ &:hover > ul { display: block; } /* Display an arrow for expandable items */ &.xDropdown { &:after { .caret; content: ''; margin-left: .5em; } } } /* The only way to have a menu with more than 2 levels without JavaScript is to use a fixed width. */ &.fixedWidth { li li { position: relative; } ul ul { width: 12em; ul { left: 12em; margin: 0; top: 0; /* Bring the dropdown closer in order to hover it */ margin-left: -2px; /* Adjust corner to better look as a submenu */ border-top-left-radius: 0; } } } /* Resetting rules for mobile view */ @media (max-width: @screen-xs-max) { > ul { margin: 0 0 0 -25px; /* Remove padding added in normal view */ > li { &:empty { .nav-divider(@navbar-default-border); } } ul { /* Resetting rules for mobile view */ position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; li { /* Text inside menu */ color: @navbar-default-link-color; /* Links inside menu */ a { color: @navbar-default-link-color; &:hover { /* Preserve the styling from dropdown */ } } /* Submenus inside menu */ &.xDropdown { color: @navbar-default-link-color; &:hover { background-color: transparent; color: inherit; } /* When in dropdown we also have a link */ > span > a { color: @navbar-default-link-color; } } &:empty { .nav-divider(@navbar-default-border); } } } } li { &.xDropdown { /* Place the arrow on the right */ &:after { position: absolute; margin-top: @line-height-computed; right: 1em; top: 0; } } } &.fixedWidth ul ul { width: auto; } } } } .menu .wikiexternallink { background: rgba(0, 0, 0, 0) none repeat scroll 0 center; padding: 0; } .menu-horizontal-toggle { .clearfix; background-color: @navbar-default-bg; border-color: @navbar-default-border; .box-shadow(0 2px 8px rgba(0,0,0,0.4) inset); min-height: @navbar-height; & .navbar-toggle { float: left; padding-left: 15px; & .icon-bar { background-color: @navbar-default-link-color; } } } LESS CSS LESS de la macro menu currentPage CustomExtension/TopPanelMenu/Content/Tab-01/WebHome.xml CustomExtension.TopPanelMenu.Content.Tab-01 WebHome fr 0 XWiki.Admin 1551091906000 CustomExtension.TopPanelMenu.Content.WebHome XWiki.Admin XWiki.Admin 1551714232000 1551714232000 1.4 A. label true xwiki/2.1 false CustomExtension/TopPanelMenu/Content/Tab-01/Col-01/WebHome.xml CustomExtension.TopPanelMenu.Content.Tab-01.Col-01 WebHome fr 0 XWiki.Admin 1551091903000 CustomExtension.TopPanelMenu.Content.Tab-01.WebHome XWiki.Admin XWiki.Admin 1551091903000 1551091903000 1.2 Col-01 Update document after refactoring.

GitHub Statistics Application

Located in
Last modified by Thomas Mortagne on 2025/06/04 08:16
Objects
id : org.xwiki.rendering:xwiki-rendering-macro-box
Attachment content
GitHub/WebHome.xml GitHub WebHome en 0 Main.WebHome XWiki.Admin XWiki.Admin XWiki.Admin 1329514195000 1329558448000 1329558448000 1.1 GitHub Repositories & Committers false xwiki/2.1 false {{box cssClass="floatinginfobox"}} {{toc/}} {{/box}} = Imported Repositories = {{velocity}} #if ($hasAdmin) [[Import Repositories>>GitHubCode.ImportRepositories]] #end {{/velocity}} {{groovy}} def repoData = xwiki.queryManager.xwql("select distinct repo.organization, repo.id, repo.name, repo.giturl, repo.htmlurl from Document doc, doc.object(GitHubCode.RepositoryClass) as repo").execute() if (repoData.size() > 0) { println "|=Organization|=Id|=Name|=Git URL|=HTML URL" repoData.each() { println "|${it[0]}|${it[1]}|${it[2]}|${it[3]}|${it[4]}" } println "" } {{/groovy}} = Imported Committers = {{velocity}} #if ($hasAdmin) [[Import Committers>>GitHubCode.ImportCommitters]] #end {{/velocity}} {{groovy}} def committerData = xwiki.queryManager.xwql("select distinct committer.avatar, committer.id, committer.repositories, committer.aliases from Document doc, doc.object(GitHubCode.CommitterClass) as committer").execute() if (committerData.size() > 0) { println "|=Avatar|=Id|=Repositories|=Aliases" committerData.each() { println "|[[image:${it[0]}]]|${it[1]}|${it[2].tokenize('|').join(', ')}|${it[3].tokenize('|').join(', ')}" } } {{/groovy}} GitHubCode/CommitterClass.xml GitHubCode CommitterClass 0 GitHubCode.WebHome XWiki.Admin XWiki.Admin XWiki.Admin 1329502028000 1329556540000 1329556540000 1.1 Updated class property true xwiki/2.1 false GitHubCode.CommitterClass 0 0 input 1 aliases 3 0 Aliases 0 ,| 1 none 0 com.xpn.xwiki.objects.classes.StaticListClass 0 avatar 2 0 Avatar URL 30 0 com.xpn.xwiki.objects.classes.StringClass 0 id 1 0 Git Id 30 0 com.xpn.xwiki.objects.classes.StringClass 0 name 5 0 Name 30 0 com.xpn.xwiki.objects.classes.StringClass 0 0 input 1 repositories 4 0 Repository Ids 0 ,| 1 none 0 com.xpn.xwiki.objects.classes.StaticListClass GitHubCode/CommittersMacro.xml GitHubCode CommittersMacro en 0 XWiki.Admin XWiki.Admin XWiki.Admin 1329567752000 1329570361000 1329570361000 1.1 Committers Macro false xwiki/2.1 false XWiki.WikiMacroClass 0 code 9 Macro code 20 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 contentDescription 8 Content description (Not applicable for "No content" type) 5 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 0 select 0 contentType 7 Macro content type 0 | | 1 0 Optional|Mandatory|No content com.xpn.xwiki.objects.classes.StaticListClass 0 defaultCategory 4 Default category 30 0 com.xpn.xwiki.objects.classes.StringClass 0 description 3 Macro description 5 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 id 1 Macro id 30 0 com.xpn.xwiki.objects.classes.StringClass 0 name 2 Macro name 30 0 com.xpn.xwiki.objects.classes.StringClass 0 select yesno supportsInlineMode 5 Supports inline mode 0 com.xpn.xwiki.objects.classes.BooleanClass 0 0 select 0 visibility 6 Macro visibility 0 | | 1 0 Current User|Current Wiki|Global com.xpn.xwiki.objects.classes.StaticListClass GitHubCode.CommittersMacro 0 XWiki.WikiMacroClass 2aff74db-93bd-4b52-ae42-4c7e90ac3ffb {{groovy}} import org.apache.commons.io.* import org.eclipse.jgit.api.* import org.eclipse.jgit.lib.* import org.eclipse.jgit.revwalk.* import org.eclipse.jgit.storage.file.* import org.gitective.core.* import org.gitective.core.filter.commit.* import groovy.json.* import org.gitective.core.stat.* def service = services.get("git") // Get all repositories for the xwiki organization def repos = [] def repoData = xwiki.queryManager.xwql("select distinct repo.giturl, repo.name from Document doc, doc.object(GitHubCode.RepositoryClass) as repo where doc.object(GitHubCode.RepositoryClass).organization = '${xcontext.macro.params.organization}'").execute() repoData.each() { // For each repo, clone it locally to get stats for it def repo = service.getRepository(it[0], it[1]) repos.add(repo) } if (repos.size() == 0) { println "{{error}}There are no GitHub Repositories defined in this wiki for the '${xcontext.macro.params.organization}' organization.
"|${isCommitter}" : "" } {{/groovy}} No content content List committers and their activity in a table committers Committers 0 Current Wiki XWiki.WikiMacroParameterClass 0 defaultValue 4 Parameter default value 30 0 com.xpn.xwiki.objects.classes.StringClass 0 description 2 Parameter description 5 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 select yesno mandatory 3 Parameter mandatory 0 com.xpn.xwiki.objects.classes.BooleanClass 0 name 1 Parameter name 30 0 com.xpn.xwiki.objects.classes.StringClass GitHubCode.CommittersMacro 0 XWiki.WikiMacroParameterClass fd5e191f-08a6-47b0-a87a-f2584bb4eecd List committers only for the specified GitHub organization 1 organization XWiki.WikiMacroParameterClass 0 defaultValue 4 Parameter default value 30 0 com.xpn.xwiki.objects.classes.StringClass 0 description 2 Parameter description 5 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 select yesno mandatory 3 Parameter mandatory 0 com.xpn.xwiki.objects.classes.BooleanClass 0 name 1 Parameter name 30 0 com.xpn.xwiki.objects.classes.StringClass GitHubCode.CommittersMacro 1 XWiki.WikiMacroParameterClass 2f56d0ea-62f3-4b08-b041-f756c19894dc If "true" then also lists contributors who've committed through pull requests 0 contributors XWiki.WikiMacroParameterClass 0 defaultValue 4 Parameter default value 30 0 com.xpn.xwiki.objects.classes.StringClass 0 description 2 Parameter description 5 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 select yesno mandatory 3 Parameter mandatory 0 com.xpn.xwiki.objects.classes.BooleanClass 0 name 1 Parameter name 30 0 com.xpn.xwiki.objects.classes.StringClass GitHubCode.CommittersMacro 2 XWiki.WikiMacroParameterClass 673226b7-99d4-4e25-9d5a-070f5b13f180 0 Number of days in the past for which we count commits, by default goes back till the beginning 0 since Example: List all committers (excluding contributors) who've done commits for the ##xwiki## organization for the past 365 days: {{box}}{{{ {{committers organization="xwiki" since="365"/}} }}}{{/box}} Result: {{committers organization="xwiki" since="365"/}} GitHubCode/HallOfFame.xml GitHubCode HallOfFame en 0 XWiki.Admin XWiki.Admin XWiki.Admin 1329488033000 1329562084000 1329562084000 1.1 Hall of Fame false xwiki/2.1 false {{groovy}} import org.apache.commons.io.* import org.eclipse.jgit.api.* import org.eclipse.jgit.lib.* import org.eclipse.jgit.revwalk.* import org.eclipse.jgit.storage.file.* import org.gitective.core.* import org.gitective.core.filter.commit.* import groovy.json.* import org.gitective.core.stat.* def service = services.get("git") // Get all repositories for the xwiki organization def repos = [] def repoData = xwiki.queryManager.xwql("select distinct repo.giturl, repo.name from Document doc, doc.object(GitHubCode.RepositoryClass) as repo where doc.object(GitHubCode.RepositoryClass).organization = 'xwiki'").execute() repoData.each() { // For each repo, clone it locally to get stats for it def repo = service.getRepository(it[0], it[1]) repos.add(repo) } def finder = new CommitFinder(repos) //def dateFilter = new CommitterDateFilter(System.currentTimeMillis() - 365*24*60*60*1000L) def countFilter = new CommitCountFilter() def histogramFilter = new CommitterHistogramFilter() def committerFilter = new CommitterSetFilter() def filters = new AndCommitFilter() filters.add(countFilter, committerFilter, histogramFilter) //finder.setFilter(dateFilter) finder.setMatcher(filters) finder.find() println "There have been ${countFilter.count} commits in the past year!"
GitHub/WebHome.xml GitHub WebHome en 0 Main.WebHome XWiki.Admin XWiki.Admin XWiki.Admin 1329514195000 1329558448000 1329558448000 1.1 GitHub Repositories & Committers false xwiki/2.1 false {{box cssClass="floatinginfobox"}} {{toc/}} {{/box}} = Imported Repositories = {{velocity}} #if ($hasAdmin) [[Import Repositories>>GitHubCode.ImportRepositories]] #end {{/velocity}} {{groovy}} def repoData = xwiki.queryManager.xwql("select distinct repo.organization, repo.id, repo.name, repo.giturl, repo.htmlurl from Document doc, doc.object(GitHubCode.RepositoryClass) as repo").execute() if (repoData.size() > 0) { println "|=Organization|=Id|=Name|=Git URL|=HTML URL" repoData.each() { println "|${it[0]}|${it[1]}|${it[2]}|${it[3]}|${it[4]}" } println "" } {{/groovy}} = Imported Committers = {{velocity}} #if ($hasAdmin) [[Import Committers>>GitHubCode.ImportCommitters]] #end {{/velocity}} {{groovy}} def committerData = xwiki.queryManager.xwql("select distinct committer.avatar, committer.id, committer.repositories, committer.aliases from Document doc, doc.object(GitHubCode.CommitterClass) as committer").execute() if (committerData.size() > 0) { println "|=Avatar|=Id|=Repositories|=Aliases" committerData.each() { println "|[[image:${it[0]}]]|${it[1]}|${it[2].tokenize('|').join(', ')}|${it[3].tokenize('|').join(', ')}" } } {{/groovy}} GitHubCode/CommitterClass.xml GitHubCode CommitterClass 0 GitHubCode.WebHome XWiki.Admin XWiki.Admin XWiki.Admin 1329502028000 1329680185000 1329680185000 1.1 Updated class property true xwiki/2.1 false GitHubCode.CommitterClass 0 0 input 1 aliases 3 0 Aliases 0 ,| 1 none 0 com.xpn.xwiki.objects.classes.StaticListClass 0 avatar 2 0 Avatar URL 30 0 com.xpn.xwiki.objects.classes.StringClass 0 id 1 0 Git Id 30 0 com.xpn.xwiki.objects.classes.StringClass 0 name 5 0 Name 30 0 com.xpn.xwiki.objects.classes.StringClass 0 0 input 1 repositories 4 0 Repository Ids 1 ,| 1 none 0 com.xpn.xwiki.objects.classes.StaticListClass GitHubCode/CommittersMacro.xml GitHubCode CommittersMacro en 0 XWiki.Admin XWiki.Admin XWiki.Admin 1329567752000 1329680757000 1329680757000 1.1 Committers Macro false xwiki/2.1 false XWiki.WikiMacroClass 0 code 9 Macro code 20 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 contentDescription 8 Content description (Not applicable for "No content" type) 5 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 0 select 0 contentType 7 Macro content type 0 | | 1 0 Optional|Mandatory|No content com.xpn.xwiki.objects.classes.StaticListClass 0 defaultCategory 4 Default category 30 0 com.xpn.xwiki.objects.classes.StringClass 0 description 3 Macro description 5 40 0 com.xpn.xwiki.objects.classes.TextAreaClass 0 id 1 Macro id 30 0 com.xpn.xwiki.objects.classes.StringClass 0 name 2 Macro name 30 0 com.xpn.xwiki.objects.classes.StringClass 0 select yesno supportsInlineMode 5 Supports inline mode 0 com.xpn.xwiki.objects.classes.BooleanClass 0 0 select 0 visibility 6 Macro visibility 0 | | 1 0 Current User|Current Wiki|Global com.xpn.xwiki.objects.classes.StaticListClass GitHubCode.CommittersMacro 0 XWiki.WikiMacroClass 2aff74db-93bd-4b52-ae42-4c7e90ac3ffb {{groovy}} import org.apache.commons.io.* import org.eclipse.jgit.api.* import org.eclipse.jgit.lib.* import org.eclipse.jgit.revwalk.* import org.eclipse.jgit.storage.file.* import org.gitective.core.* import org.gitective.core.filter.commit.* import groovy.json.* import org.gitective.core.stat.* def service = services.get("git") // Get the list of repositories to display data for def repos = [] def repoNames = [] if (xcontext.macro.params.repositories !

Tabs Macro

Located in
Last modified by Eden Biskin on 2024/07/05 14:29
Objects
description : == Usage == {{box}} 1. Define where tabs should be rendered {{{{{tabs idsToLabels='tabId1=Tab One, tabId2=Tab Two, ..., tabIdN=Tab N' /}}}}} 1.
{{{(%id="tabIdN"%)(((Tab N Content)))}}} {{/box}} == Parameters definition == |=Name |=Optional |=Allowed values |=Default value |=Description |idsToLabels |no |String | - |This parameter required a comma-separated tab id to tab label values sting formatted like idsToLabels='tabId1=Tab One, tabId2=Tab Two, tabId3=TabThree'. == Known issues == {{info}} To see issues in-action, please reference to "Known bugs example" section of the installed macro home-page Macro.TabsMacro {{/info}} * Tab size is fixed (Toucan Skin), labels that do not fit will get trimmed ("Tab name too long" section of the installed macro home-page) * Layout consistency is dependent on white-spaces ("Interesting layout bugs" section of the installed macro home-page) == Examples == === Example 1 === **Code** {{code language="none"}} {{tabs idsToLabels='tabId11=My xwiki-wide tabs, tabId12=My working tabs :)' /}} (%id="tabId11"%)((({{box cssClass="tabId11div"}} First tab! {{/box}} I can post any content here ))) (%id="tabId12"%)((({{box cssClass="tabId12div"}} Second tab!
Attachment content
'sql1key1=Original SQL, sql1key2=Substituted SQL, sql1key3=Resulting SQL' 1 idsToLabels {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc start="2" depth="6" numbered="false" scope="page" /}}{{/box}} {{velocity}} #macro(tabs $tabsKeyNames) ## for debugging, please ## 1) copy/paste the macro code from macro object into here ## 2) replace #set ($tabsSortedMapString = $context.macro.params.tabsKeyNames) with #set ($tabsSortedMapString = $tabsKeyNames) #end {{/velocity}} {{info}}This is home and test page for the "tabs" macro.
skin=toucan]]) * Layout consistency is dependent on white-spaces (see [[Interesting layout bugs>>#HInterestinglayoutbugs]]) == Examples == === Content generated by XWiki-wide macro === {{tabs idsToLabels='tabId11=My xwiki-wide tabs, tabId12=My working tabs :)' /}} (%id="tabId11"%)((({{box cssClass="tabId11div"}} First tab! {{/box}} I can post any content here ))) (%id="tabId12"%)((({{box cssClass="tabId12div"}} Second tab! {{/box}} And here too ))) === Known bugs example === ==== Tab name too long ==== You should view this issue in [[Toucan>>#HTabnametoolong?

IRC Archive for channel #xwiki on 09 January 2014

Located in
Last modified by Vincent Massol on 2014/01/09 23:50
Rendered document content
Now I can't remove it because the widget disappeared --> http://i.imgur.com/FnVd6sE.png 03:18 <Kebir> has quit 03:24 <vmassol> has joined #xwiki 03:29 <vmassol> has quit 04:25 <vmassol> has joined #xwiki 04:29 <vmassol> has quit 04:30 <Denis1> has joined #xwiki 05:26 <vmassol> has joined #xwiki 05:31 <vmassol> has quit 06:04 <Denis1> has quit 06:27 <vmassol> has joined #xwiki 06:31 <vmassol> has quit 07:20 <evalica> has joined #xwiki 07:27 <vmassol> has joined #xwiki 07:32 <vmassol> has quit 08:18 <tmortagne> has joined #xwiki 08:24 <mflorea> has joined #xwiki 08:28 <vmassol> has joined #xwiki 08:31 <andreeapopescu> has joined #xwiki 08:32 <vmassol> has quit 08:35 <UCC> has joined #xwiki 08:37 <hamster1299> has joined #xwiki 08:37 <hamster1299> hello 08:42 <hamster1299> I can't seem to get the #startfloatingbox() macro to work 08:42 <hamster1299> And i did wrap it in velocity and html tags 08:42 <evalica> has quit 08:47 <cjd> has joined #xwiki 08:51 <xwikinewb> hamster1299: I went with the newer way, using {{box cssClass="floatinginfobox" title="**Contents**"}}Test-text{{/box}} instead of nested wrappings. 08:56 <sburjan> has joined #xwiki 09:05 <hamster1299> xwikinewb: And did that work for multiline content?
Raw document content
Now I can't remove it because the widget disappeared --> http://i.imgur.com/FnVd6sE.png 03:18 <Kebir> has quit 03:24 <vmassol> has joined #xwiki 03:29 <vmassol> has quit 04:25 <vmassol> has joined #xwiki 04:29 <vmassol> has quit 04:30 <Denis1> has joined #xwiki 05:26 <vmassol> has joined #xwiki 05:31 <vmassol> has quit 06:04 <Denis1> has quit 06:27 <vmassol> has joined #xwiki 06:31 <vmassol> has quit 07:20 <evalica> has joined #xwiki 07:27 <vmassol> has joined #xwiki 07:32 <vmassol> has quit 08:18 <tmortagne> has joined #xwiki 08:24 <mflorea> has joined #xwiki 08:28 <vmassol> has joined #xwiki 08:31 <andreeapopescu> has joined #xwiki 08:32 <vmassol> has quit 08:35 <UCC> has joined #xwiki 08:37 <hamster1299> has joined #xwiki 08:37 <hamster1299> hello 08:42 <hamster1299> I can't seem to get the #startfloatingbox() macro to work 08:42 <hamster1299> And i did wrap it in velocity and html tags 08:42 <evalica> has quit 08:47 <cjd> has joined #xwiki 08:51 <xwikinewb> hamster1299: I went with the newer way, using {{box cssClass="floatinginfobox" title="**Contents**"}}Test-text{{/box}} instead of nested wrappings. 08:56 <sburjan> has joined #xwiki 09:05 <hamster1299> xwikinewb: And did that work for multiline content?

Creating a form with validation and tooltips

Last modified by Alexander Colesnicov on 2020/01/28 12:48
Attachment content
$validationMessages.contains($error)) #set ($discard = $remainingValidationMessages.add($error)) #end #end #if ($remainingValidationMessages.size() > 0 || ($xcontext.validationStatus.exceptions && $xcontext.validationStatus.exceptions.size() > 0)) <div class="box errormessage"> Validation errors <ul> #foreach ($error in $xcontext.validationStatus.errors) <li>$escapetool.xml($services.localization.render($error))</li> #end #foreach ($exception in $xcontext.validationStatus.exceptions) <li>$escapetool.xml($services.localization.render($exception))</li> #end </ul> </div> #end #end {{/velocity}} {{velocity}} #set ($discard = $xwiki.jsx.use('ValidationSample.ValidationSampleSheet')) {{html clean="false"}} <div class="xform"> ## Force server side validation.
$('[data-toggle="popover"]').popover(); // Focus the first field with validation error. $('.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select').first().focus(); }); 0 onDemand ValidationSample/ValidationSampleTemplate.xml ValidationSample ValidationSampleTemplate en 0 XWiki.Admin 1533713960000 xwiki:ValidationSample.WebHome XWiki.Admin XWiki.Admin 1533714022000 1533714000000 4.1 false xwiki/2.1 false ValidationSample.ValidationSampleTemplate 0 ValidationSample.ValidationSampleClass 839dc014-c49b-4bc3-8066-07322b5981cb ValidationSample.ValidationSampleClass 0 The age age 4 integer Age 30 0 val_age_incorrect com.xpn.xwiki.objects.classes.NumberClass 0 The e-mail address email 3 0 Email 30 0 val_email_shouldbedotcom /.*@.*\.com/ com.xpn.xwiki.objects.classes.StringClass 0 The first name first_name 1 0 First Name 30 0 val_firstname_toolong /.{2,20}/ com.xpn.xwiki.objects.classes.StringClass 0 The last name last_name 2 0 Last Name 30 0 val_lastname_toolong /.{2,20}/ com.xpn.xwiki.objects.classes.StringClass FullyRenderedText 0 Text Some text text 6 0 Text 5 40 0 val_text_toolong /.{0,200}/ com.xpn.xwiki.objects.classes.TextAreaClass 0 The US phone number usphone 5 0 US Phone 30 0 val_usphone_incorrectformat /[0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]/ com.xpn.xwiki.objects.classes.StringClass ValidationSample/WebHome.xml ValidationSample WebHome en 0 XWiki.Admin 1533713278000 XWiki.Admin XWiki.Admin 1533733614000 1533733614000 39.1 Validation Sample false xwiki/2.1 false {{box cssClass="floatinginfobox" title="**Contents**"}} {{toc start="2"/}} {{/box}} This sample shows how to create a form with validation and tooltips.
Raw document content
{{box cssClass="floatinginfobox" title="**Contents**"}} {{toc start="2"/}} {{/box}} This sample shows how to create a form with validation and tooltips.
$validationMessages.contains($error)) #set ($discard = $remainingValidationMessages.add($error)) #end #end #if ($remainingValidationMessages.size() > 0 || ($xcontext.validationStatus.exceptions && $xcontext.validationStatus.exceptions.size() > 0)) <div class="box errormessage"> Validation errors <ul> #foreach ($error in $xcontext.validationStatus.errors) <li>$escapetool.xml($services.localization.render($error))</li> #end #foreach ($exception in $xcontext.validationStatus.exceptions) <li>$escapetool.xml($services.localization.render($exception))</li> #end </ul> </div> #end #end {{/velocity}} {{velocity}} #set ($discard = $xwiki.jsx.use('ValidationSample.ValidationSampleSheet')) {{html clean="false"}} <div class="xform"> ## Force server side validation.

Box

Located in
Last modified by Simon Urli on 2022/03/02 15:11
Title
Box
Raw document content
{{box cssClass="floatinginfobox"}} {{toc start="2" /}} {{/box}} {{velocity}} #set ($exoPrefix = 'https://extensions.xwiki.org/xwiki/bin/view/Extension') $services.localization.render('help.macros.box.description1', ['**','**']) [[$services.localization.render('help.more.label')>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro]] $services.localization.render('help.macros.box.description2') * [[$services.localization.render('help.macros.box')>>$exoPrefix/Box%20Macro]] * [[$services.localization.render('help.macros.info')>>$exoPrefix/Info+Macro]] * [[$services.localization.render('help.macros.success')>>$exoPrefix/Success+Macro]] * [[$services.localization.render('help.macros.warning')>>$exoPrefix/Warning+Macro]] * [[$services.localization.render('help.macros.error')>>$exoPrefix/Error+Macro]] == $services.localization.render('help.macros.box') == {{example}} {{box title='$services.localization.render('help.macros.box.subtitle')'}} $services.localization.render('help.macros.box.message') {{/box}} {{/example}} == $services.localization.render('help.macros.info') == {{example}} {{info}} $services.localization.render('help.macros.info.message') {{/info}} {{/example}} == $services.localization.render('help.macros.success') == {{example}} {{success}} $services.localization.render('help.macros.success.message') {{/success}} {{/example}} == $services.localization.render('help.macros.warning') == {{example}} {{warning}} $services.localization.render('help.macros.warning.message') {{/warning}} {{/example}} == $services.localization.render('help.macros.error') == {{example}} {{error}} $services.localization.render('help.macros.error.message') {{/error}} {{/example}} {{/velocity}}

Box

Located in
Last modified by Simon Urli on 2022/03/02 15:26
Title
Box
Raw document content
{{box cssClass="floatinginfobox"}} {{toc start="2" /}} {{/box}} {{velocity}} #set ($exoPrefix = 'https://extensions.xwiki.org/xwiki/bin/view/Extension') $services.localization.render('help.macros.box.description1', ['**','**']) [[$services.localization.render('help.more.label')>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro]] $services.localization.render('help.macros.box.description2') * [[$services.localization.render('help.macros.box')>>$exoPrefix/Box%20Macro]] * [[$services.localization.render('help.macros.info')>>$exoPrefix/Info+Macro]] * [[$services.localization.render('help.macros.success')>>$exoPrefix/Success+Macro]] * [[$services.localization.render('help.macros.warning')>>$exoPrefix/Warning+Macro]] * [[$services.localization.render('help.macros.error')>>$exoPrefix/Error+Macro]] == $services.localization.render('help.macros.box') == {{example}} {{box title='$services.localization.render('help.macros.box.subtitle')'}} $services.localization.render('help.macros.box.message') {{/box}} {{/example}} == $services.localization.render('help.macros.info') == {{example}} {{info}} $services.localization.render('help.macros.info.message') {{/info}} {{/example}} == $services.localization.render('help.macros.success') == {{example}} {{success}} $services.localization.render('help.macros.success.message') {{/success}} {{/example}} == $services.localization.render('help.macros.warning') == {{example}} {{warning}} $services.localization.render('help.macros.warning.message') {{/warning}} {{/example}} == $services.localization.render('help.macros.error') == {{example}} {{error}} $services.localization.render('help.macros.error.message') {{/error}} {{/example}} {{/velocity}}

Box

Located in
Last modified by Simon Urli on 2022/03/02 14:06
Title
Box
Raw document content
{{box cssClass="floatinginfobox"}} {{toc start="2" /}} {{/box}} {{velocity}} #set ($exoPrefix = 'https://extensions.xwiki.org/xwiki/bin/view/Extension') $services.localization.render('help.macros.box.description1', ['**','**']) [[$services.localization.render('help.more.label')>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Box+Macro]] $services.localization.render('help.macros.box.description2') * [[$services.localization.render('help.macros.box')>>$exoPrefix/Box%20Macro]] * [[$services.localization.render('help.macros.info')>>$exoPrefix/Info+Macro]] * [[$services.localization.render('help.macros.success')>>$exoPrefix/Success+Macro]] * [[$services.localization.render('help.macros.warning')>>$exoPrefix/Warning+Macro]] * [[$services.localization.render('help.macros.error')>>$exoPrefix/Error+Macro]] == $services.localization.render('help.macros.box') == {{example}} {{box title='$services.localization.render('help.macros.box.subtitle')'}} $services.localization.render('help.macros.box.message') {{/box}} {{/example}} == $services.localization.render('help.macros.info') == {{example}} {{info}} $services.localization.render('help.macros.info.message') {{/info}} {{/example}} == $services.localization.render('help.macros.success') == {{example}} {{success}} $services.localization.render('help.macros.success.message') {{/success}} {{/example}} == $services.localization.render('help.macros.warning') == {{example}} {{warning}} $services.localization.render('help.macros.warning.message') {{/warning}} {{/example}} == $services.localization.render('help.macros.error') == {{example}} {{error}} $services.localization.render('help.macros.error.message') {{/error}} {{/example}} {{/velocity}}
next page » Page 1 2 3 4 5 6 7 8 9 ... 433
RSS feed for search on [box cssClass anchor]

Get Connected