Version 1.1 by Normann P. Nielsen on 2026/11/15 15:43

Show last authors
1 This script travles a directory structure and creates WIKI markup and uses the [[Atlassian CLI for Confluence>>https://studio.plugins.atlassian.com/wiki/display/CSOAP/Confluence+Command+Line+Interface]] for updating a page
2
3
4
5 {{warning}}Several Requirements are needed for the final page to be displayed correctly:
6
7 [[Atlassian CLI>>https://bobswift.atlassian.net/wiki/display/ACLI/Atlassian+CLI+license]] (Notice the 3.X versions are not free, last free download versions at [[Atlassian CLI>>Main.atlassian.atlassian-confluence.atlassian-cli]]
8
9 [[Script for making thumbnail images (makeThumbs.sh)>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.script-for-making-thumbnail-images-makethumbs-sh]]
10
11 [[User Macro: me-image - Image lightbox with Flare>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.user-macro-me-image-image-lightbox-with-flare]]
12
13 [[User Macro: me-video - Linking to a Video file>>Main.atlassian.atlassian-confluence.user-macros.images-video-and-lightboxes.user-macro-me-video-linking-to-a-video-file]] (User Macro){{/warning}}
14
15
16
17 Executing the script:
18
19 ./updateGallery.sh directory="FamilieBilleder/2014" space="familiebilleder" pagetitle="Familiebilleder 2014" maketoc="yes"
20
21
22 {{code}}
23 ./updateGallery.sh directory=[Dir] space=[SpaceName] pagetitle=[PageTitle] maketoc="yes|no"
24 {{/code}}
25
26 Samples:
27
28 Gives the Page - [[Familiebilleder 2012>>Main.familiebilleder.familiebilleder-2012]]
29
30
31 {{code}}
32 ./updateGallery.sh directory="FamilieBilleder" space="familiebilleder" pagetitle="Christopher" maketoc="yes" width="20"0 grepfor="Christopher|Stoffer"
33
34 {{/code}}
35
36 Gives the Page - [[Christopher>>Main.familien.christopher]]
37
38
39
40 | **Parameter**| **Description**| **Required**| **In script**
41 |= **RelativeDirectory**| is the path to be traveled (this is /data/images/FamilieBilleder) for my installation, where /data/images is hardcoded in the script| Yes| $Dir
42 |= SpaceName| is the Name of the Space where a page will be updated (or created)| Yes| $Space
43 | **PageName**| is the Name of the Confluence page to be updated (or created) in the SpaceName Space| Yes| $PageTitle
44 |= yes|no| determines if a TOC markup is inserted at the top of the page| Yes| $MakeToc
45 | **ThumbSize**| different thumbsize than the one included from config.txt| No| $Width
46 |= eGrep| is an optional RegEx string for fine-picking from the RelativeDirectory structure (blank selects all images/movies)| No - If used, ThumbSize must be used also| $GrepFor
47
48
49
50 Source of the Script: [[https://bitbucket.org/moseiseydk/confluence-gallery/src/1ccb4aa93b95d321c7d5c29ea776f799819bc6d0/updateGallery.sh?at=master]]