Changes for page Home

From version 1.1
edited by superadmin
on 2025/02/21 15:01
Change comment: Install extension [org.xwiki.platform:xwiki-platform-distribution-flavor-common/15.10.11]
To version 3.1
edited by Monika Leung
on 2025/02/21 15:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.superadmin
1 +xwiki:XWiki.leung
Content
... ... @@ -1,40 +1,10 @@
1 -== Welcome to your wiki ==
1 +(% class="wikigeneratedid" id="HWelcometoyourwiki" %)
2 +Wiki for publishing test reports.
2 2  
3 -XWiki is the best tool to organize your knowledge. A //wiki// is organized in a hierarchy of //pages//. You can create multiple wikis, each with its own set of pages.
4 -
5 -XWiki can be used as a knowledge base (support, documentation, sales, etc.), for collaborative workspaces or even as a complete intranet.
6 -
7 -== The basics ==
8 -
9 -To make the most out of your wiki, log-in and:
10 -
11 -Use the {{displayIcon name="pencil"/}} button above to //edit// this page and start customizing your wiki to your needs.
12 -
13 -Use the {{displayIcon name="add"/}} button above to //add// more pages to your wiki and create the //hierarchy// that best organizes your content.
14 -
15 -Use the {{displayIcon name="home"/}} breadcrumbs located above the title to //navigate// inside your pages. It's easy to get lost in a big wiki without them.
16 -
17 -You can also use the [[Sandbox>>Sandbox.WebHome]] for more demo content and generally a place to experiment with your wiki's features.
18 -
19 - {{box}}Learn more on how to use XWiki with the [[Getting Started Guide>>https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/GettingStarted/WebHome]].{{/box}}
20 -
21 21  (% class="row" %)
22 22  (((
23 23  (% class="col-xs-12 col-sm-6" %)
24 24  (((
25 -== Extend your wiki ==
26 -
27 -To extend the power and functionalities of your wiki with the features that //you// need, head over to the [[Extension Manager>>XWiki.XWikiPreferences||queryString="editor=globaladmin&section=XWiki.Extensions"]] where you can search for and install extensions.
28 -
29 -To browse through the 900+ community contributed extensions available for XWiki, head over to the [[Extensions Repository>>https://extensions.xwiki.org]].
8 +
30 30  )))
31 -
32 -(% class="col-xs-12 col-sm-6" %)
33 -(((
34 -== Create your application ==
35 -
36 -Go beyond the available extensions and define the //structure// of your data based on //your// needs, creating //your// own applications with [[App Within Minutes>>AppWithinMinutes]] (AWM).
37 -
38 -AWM will take care of making it easy for you and your users to create and manage the data.
39 39  )))
40 -)))
XWiki.JavaScriptExtension[0]
Caching policy
... ... @@ -1,0 +1,1 @@
1 +long
Code
... ... @@ -1,0 +1,34 @@
1 +// Open external links in new tab
2 +function open_ext_link_in_new_tab() {
3 + var nodes = document.querySelectorAll('.wikiexternallink a');
4 + for(var i=0; i< nodes.length; i++){
5 + var link = nodes[i];
6 + if (link.hasAttribute('target') == false) {
7 + link.setAttribute('target', '_blank');
8 + }
9 + }
10 +}
11 +document.addEventListener("DOMContentLoaded", open_ext_link_in_new_tab);
12 +
13 +require(['jquery'], function($) {
14 + jQuery(document.links).filter(function() {
15 + return this.hostname != window.location.hostname;
16 + }).attr('target', '_blank');
17 +});
18 +
19 +// Style search button
20 +let searchButton = document.querySelector("#globalsearch > button");
21 +searchButton.textContent = "Search";
22 +let searchInput = document.querySelector("#globalsearch > input");
23 +searchInput.placeholder = "";
24 +
25 +// Add class to active page
26 +let sidebarLinks = document.querySelectorAll('.sidebar-nav ul a')
27 +let currentUrl = new URL(window.location.href);
28 +sidebarLinks.forEach(link => {
29 + let linkUrl = new URL(link.href, window.location.origin);
30 + if (linkUrl.pathname === currentUrl.pathname) {
31 + link.classList.add('active-link');
32 + }
33 +});
34 +
Use this extension
... ... @@ -1,0 +1,1 @@
1 +always
Name
... ... @@ -1,0 +1,1 @@
1 +Wiki-wide Customization