Wiki source code of Mos-Eisley FileContent
Last modified by Normann P. Nielsen on 2013/08/23 19:47
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | This is my FileContent Site - I have created my own small Content link scripts and Macro's - as no Confluence Plugins supports files in a filestructure. | ||
| 2 | |||
| 3 | {{toc/}} | ||
| 4 | |||
| 5 | = Requirements = | ||
| 6 | |||
| 7 | === Software === | ||
| 8 | [[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]] | ||
| 9 | |||
| 10 | |||
| 11 | |||
| 12 | === Scripts === | ||
| 13 | [[Configurations (config.txt)>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.gallery-configurations-config-txt]] | ||
| 14 | |||
| 15 | [[Script for linking files into a Confluence page (updateFileContent.sh)>>Main.atlassian.atlassian-confluence.mos-eisley-filecontent.script-for-linking-files-into-a-confluence-page-updatefilecontent-sh]] | ||
| 16 | |||
| 17 | Optional: [[Script for refreshing Confluence pages (refreshPages.sh)>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.script-for-refreshing-confluence-pages-refreshpages-sh]] | ||
| 18 | |||
| 19 | A Lightbox as Floatbox | ||
| 20 | |||
| 21 | === User Macros === | ||
| 22 | [[User Macro: make-top>>Main.atlassian.atlassian-confluence.user-macros.content-enhancement.user-macro-make-top]] | ||
| 23 | |||
| 24 | [[User Macro: go-top>>Main.atlassian.atlassian-confluence.user-macros.content-enhancement.user-macro-go-top]] | ||
| 25 | |||
| 26 | [[User Macro: me-filecontent>>Main.atlassian.atlassian-confluence.mos-eisley-filecontent.user-macro-me-filecontent]] | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | = The setup = | ||
| 31 | |||
| 32 | Install the Software and packages needed | ||
| 33 | |||
| 34 | Config Atlassian CLI (Set username, password and URL in confluence.sh) | ||
| 35 | |||
| 36 | Config Tomcat to support symbolic links (see [[this>>Main.atlassian.atlassian-confluence.utf-8-support-in-tomcat.tomcat-utf-8-issue]] currently **unsolved** issue regarding special UTF-8 characters) | ||
| 37 | |||
| 38 | Create a Script directory and place the 2 scripts and the config.txt files into them | ||
| 39 | |||
| 40 | Edit the config.txt to fit Your installation | ||
| 41 | |||
| 42 | Create the User Macro [[me-filecontent>>Main.atlassian.atlassian-confluence.mos-eisley-filecontent.user-macro-me-filecontent]] in Your Confluence installation | ||
| 43 | |||
| 44 | Start adding files to Your installation using the updateFileContent.sh and optional refreshPages.sh scripts | ||
| 45 | |||
| 46 | |||
| 47 | |||
| 48 | = The workings = | ||
| 49 | |||
| 50 | All content (Pictures and Video) are place on the servers filesystem in a Tree Structure, from a Basic root (called ContentRoot in the config.txt file) | ||
| 51 | |||
| 52 | All the top directories under the ContentRoot are linked into the Confluence installation by the makesymlinks.sh script) | ||
| 53 | |||
| 54 | For each top directory, a subdirectory or one or more phrases, a collection of content can be placed on a Confluence Page with the updategallery.sh script | ||
| 55 | |||
| 56 | When the script runs, it travels an entire directory-structure and : | ||
| 57 | |||
| 58 | * Creates thumbnails for the content (image or video) in a subdir called something with "thumbs" | ||
| 59 | * Adds a macro onto the specified Confluence page to show (render) the content (image or video) | ||
| 60 | * Finally, saves the page into Confluence | ||
| 61 | |||
| 62 | |||
| 63 | = Architecture = | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | = Questions and Answers = | ||
| 70 | |||
| 71 | **Q: ** | ||
| 72 | |||
| 73 | A: |