youngmon/atlassian-qna huggingface dataset:
Documentation theme: Hard/Impossible to change layout of a theme
Asked by Frank Ruenagel:

Hi,

beginners question:

we simply want to push the reference to the last editor (line below header of a page) to the bottom of the page. This seems not to be possible without deeply step into theme generation? How do I change the template of a theme?

Or different asked: How can I achieve a editable documentation-theme-like Layout (with tree oh the left) without themes?

Why do you introduce themes, if they are not cusomizable?  

Thank you.

Frank


Answers:
author: David at David Simpson Apps
body: OK, try this:

To move the "Adding by/Last edited by" section to the end of the content for the Documentation Theme only...

Browse to **Confluence Admin \| Look and Feel \| Custom HTML**

In **At the end of the HEAD,** paste:

```
&lt;script&gt;  AJS.toInit(function(){    AJS.$('body.theme-documentation .page-metadata').prependTo('#labels-section');  });&lt;/script&gt;
```

..then save.

It's much easier when you manipulate the DOM client-side :)

comments: author: briburt
body: Thanks for that code snippet. Works perfectly!


author: David at David Simpson Apps
body: This is the opposite of "Would like the labels to be on top of pages instead of the bottom. Is this possible?"

Browse to: **Confluence Administration \| Look \& Feel \| Layouts**

in the **Content Layouts** section, edit **Page Layout**.

Move this line:

```
#parse ("/decorators/includes/page-metadata.vm")
```

...above this line:

```
#parse ("/labels/labels-editor.vm")
```

That's it. If you're using a custom theme, then you'll need to edit the page.vmd file in your theme.

comments: author: briburt
body: Where do you find the page.vmd file for a theme? All I can find is the one for the default theme located in the /confluence/decorators directory.

Let's hope that making such a simple change to a page layout does not involve downloading the jar file of the theme, making edits to the page.vmd in the jar file, and then redeploying the jar as a plugin. If so, that is a very cumbersome design, to say the least.


author: Kenn North
body: as described in this answer [https://answers.atlassian.com/questions/21912/how-do-i-override-css-styles-in-the-documentation-theme](/questions/21912/how-do-i-override-css-styles-in-the-documentation-theme)  
that's exactly what is done. You create a new theme and upload it as a new jar plugin.
Cannot create "catalina.out", -> Permission Denied -> When trying to run Confluence 4.0 after fresh install
Asked by Samuel Levin:

root@node:\~# /etc/init.d/confluence start  
Using CATALINA_BASE: /usr/local/confluence/atlassian-confluence-4.0  
Using CATALINA_HOME: /usr/local/confluence/atlassian-confluence-4.0  
Using CATALINA_TMPDIR: /usr/local/confluence/atlassian-confluence-4.0/temp  
Using JRE_HOME: /usr/lib/jvm/java-6-sun  
Using CLASSPATH: /usr/local/confluence/atlassian-confluence-4.0/bin/bootst rap.jar  
Using CATALINA_PID: /usr/local/confluence/atlassian-confluence-4.0/work/catal ina.pid  
touch: cannot touch \`/usr/local/confluence/atlassian-confluence-4.0/logs/catalin a.out': Permission denied  
/usr/local/confluence/atlassian-confluence-4.0/bin/catalina.sh: 503: cannot crea te /usr/local/confluence/atlassian-confluence-4.0/work/catalina.pid: Permission denied  
/usr/local/confluence/atlassian-confluence-4.0/bin/catalina.sh: 503: cannot crea te /usr/local/confluence/atlassian-confluence-4.0/logs/catalina.out: Permission denied


Answers:
author: Radu Dumitriu
body: Try these outstanding commands:

$man chown

$man chmod

Be sure not to type the '$' sign (it represents the prompt).

comments: author: Samuel Levin
body: What must I make the permissions?


author: Thomas Burke
body: the better question is why must we be piece-mealing permission for Atlassian install scripts all over the place?


Tags: catalina

tomcat
Is there a way to zoom in or out on an image in confluence?
Asked by Rayone Moyer:

we have many images in a gallery and would like to be able to click on it and zoom in or out. We do get the one larger image when you click on it but that is not exactly what we want. We want to be able to zoom in as much as needed to view a specific part of the image. Is this possible?


Answers:
author: Sandro Herrmann [Communardo]
body: i think you can implement this easy with jquery and the zoom script

<http://www.jacklmoore.com/zoom>

you can insert the needed javascr

```
&lt;script type="text/javascript"&gt;your javascript code&lt;/script&gt;
```

ipt code via the global administration cutom html section by using the script tags


author: Rayna Lazarova
body: Please prioritize that feature.

Without zoom in and out mobile version is nearly useless. I'm pushed to go for desktop version, which is not always possible. This puts under consideration using the Confluence at all.

If the issue can be resolved with a javascript that easy just include it in the next version please.


author: Rayone Moyer
body: Thank you for these answers they helped


author: Giuliano C.
body: Hello Rayone,

I'm not sure if this option is available on Confluence yet, but, the best approach I can provide to you at the moment is to manually download the image or open it in a new tab and use the "old school" setting to zoom on the image and see the details or with some image editor software.

If you're interested, we can create a Feature and see how it goes!

hope it helps,

Giuliano tenedini


author: Giuliano C.
body: We do have the Gallery Macro to work with image settings, please, refer to the following page to have a better overview of it and see how it works with your instance:

[Gallery Macro](https://confluence.atlassian.com/display/DOC/Gallery+Macro "Gallery Macro")

Really sorry that Confluence doesn't have a concrete solution for your doubt at the moment.

Kind Regards
Is there a pattern for Staging/UAT of Pages
Asked by Emile Deen:

We develop several products and use Confluence to provide documentation to the public with each product occupying a Space.

However, we don't want the docs (and updates for new versions) to be publicly visible while we work on them.

Does anyone use Confluence with the notion of a Staging area? Are there any patterns in common use?


Answers:
author: SarahA
body: Hallo The Diamond Z

This page in the Confluence docs describes how to manage the life cycle of technical documentation, using core Confluence functionality:

<http://confluence.atlassian.com/display/DOC/Managing+the+Life+Cycle+of+your+Technical+Documentation>

There are some plugins that provide extended workflow in Confluence:

* *Ad hoc Workflows plugin* by Comalatech, for adding workflow capabilities to Confluence: \<tt\><https://plugins.atlassian.com/plugin/details/142>\</tt\>
* *Confluence Remote Publishing Plugin* by Comalatech, extending the *Ad hoc Workflows plugin* to publish content from a master Confluence space to a destination space: \<tt\><https://plugins.atlassian.com/plugin/details/42115>\</tt\>
* *Confluence Workflows Utilities Plugin* by Comalatech, extending the *Ad hoc Workflows plugin* with utilities such as a workflow event logger and new comment trigger events: \<tt\><https://plugins.atlassian.com/plugin/details/38741>\</tt\>
* *Live Forms and Workflows for Confluence* by Frevvo, for creating input forms and associated workflows: \<tt\><https://plugins.atlassian.com/plugin/details/8965>\</tt\>

I hope these are useful!

Cheers, Sarah


author: Nic Brough -Adaptavist-
body: Some places I've worked hide the entire space until it's basically ready, others use space restrictions. A couple use closed spaces with limited acces, and then move the pages when they're ready - often their own personal spaces. Depends on if you need a monolithic, mostly static space to go out, or you can drip-feed the pages out as you work through them.

But, the most common emergent pattern is to do the initial work in a personal space, get a colleague to have a quick read, then publish it and work in public. Most documenters are keen to get something out for the users, even if it's a little rough.
Team Calender trial needs a licence?
Asked by Anni R:

H

I want to try TeamCalender plugin, but I get message:

Calendar in read-only mode. Please update Team Calendars Plugin's license. Where I get the trial licence?


Answers:
author: Nic Brough -Adaptavist-
body: As it says in the installation docs, go to <https://my.atlassian.com/products/index> and generate an evaluation license for it. Same as the other Atlassian products (you'll need an account, but if you're a Jira/Confluence user, I imagine you'll already have one)
Confluence 4.0 wiki edit menu
Asked by Anni R:

Hello!

Why I can't find in Confluece space edit menu such tab's as in 3.4.6 (rich text, wiki markup, preview)

In 4.0 isn't possible to view my text in wiki markup?


Answers:
author: Thomas Vlerick
body: No, wiki markup has been removed in favor as the more enhanced richt text editor.

See the release notes: <http://confluence.atlassian.com/display/DOC/Confluence+4.0+Release+Notes>


author: Nic Brough -Adaptavist-
body: \<sigh\> <http://confluence.atlassian.com/display/CONFKB/Wiki+markup+tab+no+longer+exists+in+Confluence+4.0.>

The main point of version 4 was that Atlassian were killing off wiki markup.


author: Kimberly McKinnis
body: Damn, this kills my idea to copying in the handful of pages we've written in the 3.5 staging to the 4.0 production Confluence. We only have one space, but it's failing to import. Any ideas on the best way to approach this?

comments: author: Joe Clark
body: You can still use the Confluence Remote API to import content that is in Wiki markup - they will get migrated to XHTML on the way in.

Confluence 4 also has a built-in migration task for upgrading content from wiki markup to XHTML - if you can post some details on why your space import is failing, someone may be able to help. :-)
Enable CamelCase linking for Confluence 4.0
Asked by Michael:

I found documentation for turning on camel case linking for Confluence 3.5 and prior (<http://confluence.atlassian.com/display/CONF35/Enabling+CamelCase+Linking>); however, this option no longer seems to exist in Confluence 4.0. Is it possible to turn on camel case linking in 4.0? I am importing from Twiki which uses camel case linking.


Answers:
author: Sherif Mansour
body: Hi mjparme.

As Matt said, we removed the setting as part of our overall goal to simplify the product. We did not consier the implications this had to importing content from other wikis. Thanks for bringing this up. I think this may be something we will bring back. I've raised an issue for you: <https://jira.atlassian.com/browse/CONF-23331> so we can track this and track demand for it.

Thanks for bringing this up.

Sherif


author: Joe Clark
body: In the meantime, if you want a workaround to enable CamelCase linking for your Confluence 4.0 instance - you can setup a Confluence 3.5 instance, enable CamelCase linking and then upgrade it to 4.0 - the state of the setting will be preserved when upgrading to Confluence 4.


author: Matt
body: CamelCase linking was removed in Confluence 4.0 due to low recorded usage and the ongoing goal of simplifying Confluence. This was communicated in the [Confluence 4.0 release notes](http://confluence.atlassian.com/display/DOC/Confluence+4.0+Release+Notes#Confluence40ReleaseNotes-ReleaseNotices).

comments: author: Michael
body: Is there a way to turn it back on? We are currently evaluating Confluence (currently use Twiki) and Twiki uses camel case linking. When I imported some Twiki data (using UWC) all our links are broken. It would be tedious and not feasabile to manually fix all of our links.

If camel case linking is off how do you quickly link documents in Confluence, what is the equivalent functionality?


author: Kevin Buchs
body: You still link with the name of the referenced page, it is just that using camel case is not an automatic trigger for the text being a link. Enter a link with "\[" . So you can have a page named MjpArme and you create a link \[MjpArme\] to that page. But page names can have non-camel case names, with spaces, etc. That freedom it seems is much more desirable.

When I transferred our content from an OddMuse wiki, I had to do a lot of massaging by scripts to make up for not using camelcase. I missed some cases where text should not have been turned into a link when I took every camel case word and added brackets around it.


author: Michael
body: I really like the "\[" shortcut, which then brings up a interface so I can type/select a page to link to. That is actually really cool. So going forward I don't see a problem with camel case linking not being available, it is just for my imported data that I forsee a problem.
Can confluence and JIRA 4.x run in the same servlet container? (Same Tomcat JRE)
Asked by Samuel Levin:

My VPS only has 512mb of RAM, so it would be more efficient for me to run both in the same container (I think).

Can anyone correct me on this, or confirm whether that's true. If true, can they be run in the same JRE?

Thanks!


Answers:
author: AlysonA
body: It's not recommended since they were not designed to work that way. How about setting both apps to run behind apache, does that sounds like a plan?


author: Nic Brough -Adaptavist-
body: Yes, but don't. Especially with only 512Mb - I wouldn't try to run either of them with less than 512Mb. You're also unsupported - although it can be made to work (and I have done it, albeit with 3Gb RAM), if anything goes wrong, everyone will tell you to separate them before you move into any serious debugging.


Tags: jira

jre

tomcat
Why Confluence display space link directions differently?
Asked by Anni R:

Hi!

Why Confluece display some space link end differently. Some link have in the end id, others space page name?

<https://www11.energia.ee/confluence/pages/viewpage.action?pageId=6919398>

<https://www11.energia.ee/confluence/display/SERV/Horisontaalne+haldus>

the page hierary is the same for both pages


Answers:
author: David at David Simpson Apps
body: It all depends on the page title...

Refering to the [Uniform Resource Locators RFC](http://www.ietf.org/rfc/rfc1738.txt) (from December 1994)...
>
> ```
> only alphanumerics, the special characters "$-_.+!*'(),", and   reserved characters used for their reserved purposes may be used   unencoded within a URL.
> ```

If the page title complies with this, the URL will be like **http://wiki.example.com/display/spaceKey/Page+Title**

Otherwise the backup plan kicks in and the page is referenced by its **pageID** e.g. **http://wiki.example.com/pages/viewpage.action?pageId=123456**

If you wish for the former URL format, strip the punctuation from the page title.

comments: author: Jeffrey Harris
body: What if I want to use the latter format? Is it possible to reference any page by its pageId, even if the page title is compliant?
Error while Exporting the Confluence Space.
Asked by Nikhil Naoghare:

HI Team,

I am facing one issue while exporting the content of the space into a XML file. I need to export all the contents of the space into a xml backup. But when I try to do so, it works fine for some time and when coming to 99% completion it throws an Exception called: "**There was an error in the export. Please check your log files. :Hibernate lazy instantiation problem**"

Can anyone knows this or had face this earlier, please help.

Thanks,

Nikhil.


Answers:
author: AlysonA
body: Also, it's worth to mention that if you're not changing databases, you can use our Production backup strategy instead: <http://confluence.atlassian.com/display/DOC/Production+Backup+Strategy>


author: Azwandi Mohd Aris
body: As suggested, you might want to check further stack trace inside the atlassian-confluence.log. Here's how to find it <http://confluence.atlassian.com/display/DOC/Working+with+Confluence+Logs>

Once you identified the most likely cause from the log, maybe it's worth to check our KB articles at <http://confluence.atlassian.com/display/CONFKB/XML+Backups+and+Space+Exports+Troubleshooting>


Tags: export
Confluence Table sorting
Asked by Anni R:

Hi!

How to enable Confluence table sorting? I know how to enable table filter plugin, but is there is a possible to add sorting also?


Answers:
author: Kevin Buchs
body: The table-plus plug-in works well for sorting. It defines it on each column by default. It is easy to use, just surround your mark-up table with "{table-plus}" markers.

comments: author: Anni R
body: Should I create User Macros also? I need Table-plugin and macro - right?

How to configure macro in Confluence 4.0? Just adding "{table-plus}"?

I'm beginner, sry for simple question.


author: Anni R
body: Well, now I have one more question

1 coulmn will be sorted by this {table-plus:autoTotal=true\|autoNumber=true\|sortColumn=1\|sortIcon=true\|columnTypes=S,I,I}

How to configure, that 10 / each columns will by sorted


author: Andrey Khaneev _StiltSoft_
body: You can use [Table Filter add-on](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter), it has an option to set [default sorting order](https://docs.stiltsoft.com/display/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-Applyingthedefaultsortingordertocolumns). Notice that you can export page to PDF/Word in a current sorted state.


author: Sherif Mansour
body: We are tracking this feature request here: <https://jira.atlassian.com/browse/CONF-2493>


author: Sherif Mansour
body: We are tracking this feature reuqest here: <http://jira.atlassian.com/browse/CONFDEV-3462>

comments: author: Rick Breidenstein
body: Permission ViolationIt seems that you have tried to perform an operation which you are not permitted to perform.If you think this message is wrong, please contact your JIRA administrators.


author: David at David Simpson Apps
body: First, you'll need to install the [Table Plugin](https://plugins.atlassian.com/plugin/details/197), then you'll be able to wrap your tables in the {table-plus} macro e.g.

![](https://plugins.atlassian.com/server/1.0/screenshot/fetch/4484)

produces:

![](https://plugins.atlassian.com/server/1.0/screenshot/fetch/4486)

comments: author: Anni R
body: Your example shows coulmn 3, not the all columns?


author: Anni R
body: This macro sort dates like this:
\<colgroup\> \<col style="width: 48pt;" width="64"/\>\</colgroup\>

|---------|
| 1.sept  |
| 3.sept  |
| 4.sept  |
| 29.sept |
| 29.aug  |
| 30.aug  |
| 31.aug  |

and another way round

\<colgroup\> \<col style="width: 48pt;" width="64"/\>\</colgroup\>

|---------|
| 31.aug  |
| 30.aug  |
| 29.aug  |
| 29.sept |
| 4.sept  |
| 3.sept  |
| 1.sept  |

But is it possible to order by newest to oldest?
\<colgroup\> \<col style="width: 48pt;" width="64"/\>\</colgroup\>

|---------|
| 29.sept |
| 4.sept  |
| 3.sept  |
| 1.sept  |
| 31.aug  |
| 30.aug  |
| 29.aug  |

and like this:

29.sept

29.aug

30. sept

30.aug

Thanks in advance!


author: Bob Swift (personal)
body: For special date formats that are not automatically recognized, follow the instructions here: <https://studio.plugins.atlassian.com/wiki/display/TBL/Confluence+Table+Plugin#ConfluenceTablePlugin-advancedDate>
Removing "Log In" from a Space in Confluence 4
Asked by Alan Bowman:

Hello,

I'm wondering how to remove the "Log In" link from a Space in Confluence 4. I'm setting up a customer facing knowledgebase, which is read or view only. We do not want the customers to log in to the knowledgebase (nor can they leave comments). For this Space, I want to remove the Log In link, so that there isn't any confusion in case a customer sees the link and tries to log in. For other Spaces, I want to leave the Log In link visible - I'm also setting up an intranet for our staff, who will need to be able to log in.

Any ideas where this can be configured? I was looking in the Space Admin \> Layout \> Site Layouts, but nothing there looked like what I wanted. I suspect this is going to be found in the config files on the server itself, which is fine. I am just looking for some pointers or direction before I start mucking about at the CLI.

Thanks,

Alan


Answers:
author: David at David Simpson Apps
body: This script works for the "Demonstration Space" (which has a spaceKey of "ds") that ships with Confluence

Browse to **Confluence Admin \| Look and Feel \| Custom HTML**

In **At the end of the HEAD**, paste:

```
<script>  AJS.toInit(function($){    if (AJS.params.spaceKey == 'ds') {       $('#login-link,#browse-menu-link').parent().hide(); // Hide the login &amp; browse menu    }  });</script>
```

Then Save.

Change the 'ds' bit to whatever the spaceKey is for your space.

comments: author: Alan Bowman
body: David,

That worked perfectly, thank you. One last question - I want to do the same with the "Browse" link. I tried to add in another script under the one that hides the "Log In", but it's not working. I suspect this is because I don't know the proper name for "Browse". Do you know what that would be, or at least know where I could look for it?

Thanks,

Alan


author: David at David Simpson Apps
body: Alan, I've updated the answer to include removal of the "Browse" menu too.

-- Cheers, David


author: Alan Bowman
body: David,

That worked also. Many thanks.


Tags: login

space
Attachment Filesystem Path is on C:, Installation is on D
Asked by Frank Ruenagel:

Hi,

We noticed, that Confluence saves it's Attachments in a path under **c:** although we have installed Confluence under **d:**. How can we change the path? (Windows)

Thank you!

[ruenagel@symposion.de](mailto:ruenagel@symposion.de)


Answers:
author: David at David Simpson Apps
body: Where have you pointed your **confluence.home** property in **\[confluence-install\]\\confluence\\WEB-INF\\classes\\confluence-init.properties**?

Try moving it under **d:** instead.


author: Frank Ruenagel
body: React on reminder: There is no "(click the grey check mark)"-mark to check, there is no obvious opportunity in the interface to mark the question as done and the answer as accepted.


Tags: attachment
Confluence displaying multiple fonts within a text-data field
Asked by David Dube:

Hoping I might get some thoughts here... I have a particular field within a template that routinely displays content using different fonts/font sizes, even though it's specified to use a specific font/size. The content looks like same when filling in the field. It's when you save the form that the difference in font/font size is apparent. The picture below is not the best... it's better viewed at <http://www.maoa.net/Mixed_Fonts.png>.

The code looks like:

```
{table}...{tr} {td:style=padding:5px;font-size:12px;font-weight:bold;font-family:Microsoft Sans Serif;background:#cae3f6;color:#333333;border-bottom:1px solid #cae3f6;border-right:1px solid #cae3f6|colspan=6|width=600px}{center}Notes{center}{td} {tr} {tr}{td:style=padding:5px;font-size:12px;font-family:Microsoft Sans Serif;border-bottom:1px solid #CCCCCC;border-right:1px solid #ebebeb|colspan=6}{text-data:statusNotes|width=600px|height=60px|type=area}{td} {tr}{table}
```

```

```

![Mixed Fonts](http://www.maoa.net/Mixed_Fonts.png)


Answers:
author: David Dube
body: Hi David,

The image above is a screenshot of the actual output... I'm talking about the content in the white area below the "Notes" title. The first paragraph appears to be just a smaller font size than the other two paragraphs. Which shouldn't be the case since the field was defined to use a 12px, Microsoft Sans Serif font (the second {td:...} declaration above. Does the following link help explain it a bit better?

[http://www.maoa.net/Mixed_Fonts2.png](http://www.maoa.net/Mixed_Fonts.png)


author: David at David Simpson Apps
body: Dave, try mixing serif \& sans-serif in your image -- it's tricky to see what you're trying to say.