youngmon/atlassian-qna huggingface dataset:
Is it possible do hide the byline?
Asked by Stefan Prenner:

I use the documentation theme and want to hide the byline or show it in the footer. Is it possible to do this just for one space an not for the whole documentation theme?


Answers:
author: Matt
body: You'll need to [customise the theme](/questions/592/how-do-you-customise-a-bundled-theme)'s Page Layout (ie. page.vmd) to achieve this.

You'll need to edit confluence-install/confluence/WEB-INF/classes/com/atlassian/confluence/setup/atlassian-bundled-plugins.zip/doctheme-x.x.jar/doctheme/decorators/page.vmd and remove the following line of code:

` #parse ("`[/decorators/includes/page-metadata.vm](http://mattsmbp.local:8080/confluence/spaces/viewdefaultdecorator.action?decoratorName=/decorators/includes/page-metadata.vm&key=DOCS)`")`

So you need to either [extract the jar, modify and rezip it](http://confluence.atlassian.com/display/DOC/Editing+Files+within+JAR+Archives) to atlassian-bundled.plugins.zip, or you upload the modified jar as a plugin which will replace the bundled one. You might want to refer to this documentation.


author: James Doman
body: How can I make the metadata be seen by logged in users only?


author: David at David Simpson Apps
body: Sorry, what text are you trying to hide?

comments: author: Stefan Prenner
body: I mean the text bellow the page title, where the author and the "Last editor" are shown.


Tags: documentation-theme
Can Confluence provide a report showing if comments "do not" have replies?
Asked by Daniel Stavrou:

v3.0, I want to see if this capability is available as perhaps a plugin or some kind of configuration change. Thanks!


Answers:
author: David Peterson
body: You can use the Reporting Plugin to achieve it, but I'm not sure exactly what would be best for your use case. Who will be viewing the report, and would it be for specific users that haven't had a comment reply?


author: Jeremy Largman
body: You can get at this with an SQL query and the [SQL plugin](https://plugins.atlassian.com/plugin/details/225). Have a look at the 'content' table. There's a column PARENTCOMMENTID. I haven't dug into the exact query you'd want to construct, but add a comment if this seems like a solution and you get stuck with the SQL.

Be careful with the SQL plugin if you've got a big instance of Confluence, or a userbase that could go nuts with it! It's a powerful (and fantastic) plugin but can have scaling problems if you're users aren't thinking about performance.


author: Renjith Pillai
body: Isn't this plugin(s) a better choice than relying on comments?

<https://plugins.atlassian.com/plugin/details/144>

<http://www.adhocworkflows.com/display/public/AWP/Ad+hoc+Workflows+Documentation+Home>


author: Daniel Stavrou
body: We would like to make sure that changes made to some important pages are commented and a reply of approval (As an example). To also see if comments are being addressed when it may have to do with content important to a busy page (another example).

Hope that makes sense.


author: Renjith Pillai
body: Mostly no.

But would it be possible to explain what is the usecase of this?


Tags: comment

report

track
How to add wiki markup to all pages in the Documentation theme?
Asked by Alex Bobrovski:

Hi,

we're using Documentation Theme, that doesn't allow you to customize layouts.

So, what should we do?

If we switch to another one, we'll lose our current settings (colors, fonts, etc).

We just want to add one macro at all the pages below the context.

Please help!


Answers:
author: HuseinA
body: You can [customise theme](/questions/592/how-do-you-customise-a-bundled-theme)'s Page Layout (ie. page.vmd) to do that. For documentation theme, you'll need to edit confluence-install/confluence/WEB-INF/classes/com/atlassian/confluence/setup/atlassian-bundled-plugins.zip/doctheme-x.x.jar/doctheme/decorators/**page.vmd** . And add anything you want after where the content is. You can create the content as a [user macro](http://confluence.atlassian.com/display/DOC/Writing+User+Macros), and then add the macro in the layout, for example:

```
<div class="wiki-content">
```

```
$body
```

```
</div>
```

```
<div id="additional">
```

```
$helper.renderConfluenceMacro("{cheese}")
```

```
</div>
```

It's either you extract the jar, modify and rezip it to atlassian-bundled.plugins.zip, or you upload the modified jar as a plugin which will replace the bundled one. You might want to refer to [this documentation](http://confluence.atlassian.com/display/DOC/Editing+Files+within+JAR+Archives).


author: Alex Bobrovski
body: Super! Thanks a lot!

By the way, is it true if we upgrade our Confluence instance from 3.5 say to 3.6 or whaterver, such changes will be lost?

comments: author: Matt
body: Yes, those changes will need to be made manually when upgrading to a newer version of Confluence. Please refer to our documentation for guidance on this process:

<http://confluence.atlassian.com/display/DOC/Upgrading+Custom+Layouts>

We're currently building a new Windows/Linux Installer for Confluence 4.0 which will address issues with upgrading customisecd instances in a future release.


author: Alex Bobrovski
body: and can I insert Wiki markup this way?

comments: author: HuseinA
body: I believe you meant macro, which is a yes, I have edited my answer above. If what you meant is a wiki markup, you might want to create that as a user macro, then just add the user macro in the layout.
Looking to log all access requests in Confluence
Asked by Tim Brown:

Hi,

We want to be able to identify what pages have been accessed and also what attachments have been downloaded from a page.

We have enabled access logging (as specified <http://confluence.atlassian.com/display/DOC/How+to+audit+Confluence+-+enabling+user+access+logging>) but this only logs page requests.

Any suggestions on how we can log attachment downloads also?

Thanks in advance.

<br />

Tim


Answers:
author: Jim Birch
body: (Are you really sure it won't log attachment requests? It's a http request...)

Alternative would be to turn on Tomcat page logging, see my answer here for how:

https://answers.atlassian.com/questions/984/logging-user-s-browser-and-version

Note that Tomcat logging doesn't get the username, only the ip


author: leonizm
body: This is how I manage and use Confluence user access logging data <http://www.leonizm.com/parseaccesslogs.html>.


author: justindowning
body: If you use Apache to proxy the connections, you should see the relevant GETs in the access logs. From there, you can parse deatails and generate counts.

More on proxying here: <http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache>
Page auto-refresh
Asked by Damian Knight:

Is there a way to auto-refresh a page in Confluence?


Answers:
author: Jim Birch
body: Create a User Macro called, eg, **reload60sec**

No body

HTML Output code
> \<script language="javascript"\>  
> // Assign an anonymous function to the onload event  
> window.onload = function(){  
> // The time out value is set to be 60,000 milli-seconds   
> setTimeout(' document.location=document.location' ,60000);  
> }  
> \</script\>

Vary the time to suit. Too many reloads will distress the users and the server :)

You then add the macro *once* to each page you want to reload.

comments: author: Lashonnee N Melton
body: * Why


author: Renjith Pillai
body: If the auto refresh usage is for any public display (like tv or beamer as information radiator), the simplest way is to load the confluence page in Firefox and use the auto refresh extension of firefox.


author: Colin Goudie
body: I think the easiest way would be to create a plugin that uses Javascript to do the refresh, or insert the meta refresh tag into the HEAD element.

Why do you need auto-refresh though? Just wondering, if this is for a custom plugin, probably should just do straight AJAX

comments: author: Damian Knight
body: Thanks for the reply, Colin.

We want the Dashboard to auto-refresh, for example, so that people can see new activity. Also, we have pages with SQL reports in them where the data is changing on a half-hourly basis...
Restrict Attachments Based on File Type
Asked by Andrei [errno]:

What do people do to restrict .**bmp** uploads? :) no matter how big a font in how-tos I use - people still ignore. I also would like to restrict .exe uploads.

I know of <https://jira.atlassian.com/browse/CONF-6931> but it had not seen much progress...

I would not want to do it completely right - looking into the file, understanding it's format; just a basic extension filter would work for most abusers. thanks!


Answers:
author: Adhip Pokharel
body: Hi errno,

You can use this add-on to restrict attachment based on file types <https://marketplace.atlassian.com/plugins/com.elitesoftsp.confluence.attachment.tool.plugins/server/overview>

It works well with my system.


author: Colin Goudie
body: Have a look at overriding the 'attachfile' action

```
 <action name="attachfile" class="com.atlassian.confluence.pages.actions.AttachFileAction">
```

You can do this via the conveyor plugin

<http://wiki.customware.net/repository/display/AtlassianPlugins/Confluence+Conveyor+Library>


author: Matt Ryall
body: You can implement this as a [servlet filter module](https://developer.atlassian.com/display/CONFDEV/Servlet+Filter+Module) in a plugin which intercepts all multipart requests and allows or denies them based on the filename in the request.

I'd look at the AttachFileAction in the Confluence source code as an example of how to handle multipart requests.

Overriding the actions in Confluence as Colin suggests is probably not a great idea. His example there only covers some of the ways in which attachments are added to Confluence.

comments: author: Tuelle
body: Hi Matt,

I want to write a plugin that prevents users to update attachments in Confluence. The only way I see is to check during the file upload if an attachment with the same name aleady exists. If yes the request should be canceled (ideally with a note for the user) or the file should be renamed. If I understand you correctly, this should also be possible with a servlet filter module. I read the description, but I am not sure how to identify upload requests. Can you provide some help?


Tags: attachment
Global/Space Logo link
Asked by George Breahna:

Is it possible to change the link assigned to the Global/Space Logo ? Right now it goes back to the default space within Confluence but I want to make it go to an outside page.


Answers:
author: Tom Moors
body: I encountered the same problem and fixed it by including some Javascript. Go to the Confluence Administration pages -\> Custom HTML and add the following snippet to the "At the end of BODY" section:

```
<script type="text/javascript">AJS.$('div#top_logo_wrapper > a').first().attr("href", "/confluence/homepage.action");</script>
```

This works in an installation with the RefinedWiki theme.


author: David at David Simpson Apps
body: I think also in \<confluence_installation\>/confluence/decorators/main.vmd...and the equivalent for each theme installed (if necessary)Maybe replacement of the href attribute b JavaScript would be easier?


author: Azwandi Mohd Aris
body: This will require a modification to the source files (Confluence uses Velocity). One place that I can think of is inside the \<confluence_installation\>/confluence/template/includes/macros.vm.

Replace the line

```
<a href="$req.contextPath/display/$spaceKey">
```

with what you need.

```
 
```
Content by Label using page name
Asked by Jason Skrzypek:

Im using the following content by label macro:

{contentbylabel:label=Sustainability}

What im trying to do is set the label as the page title. For example if the page was called ICT, then the content by label macro would change accordingly. Any ideas??


Answers:
author: Stefan Kohler
body: Best way it to create a own user macro in Confluence. ie: {contentforpagetitle}

In user macro you can use Velocity, so you do something like {contentbylabel:label=$\<tt\>renderContext.pageTitle}\</tt\>

More information about User Macros : <http://confluence.atlassian.com/x/UolYDQ>

comments: author: Jason Skrzypek
body: thats awsome, thank you


author: MarkC
body: This is a bit dated now. Does this still work? I attempted to create a macro using the information above for this (and I've created other macros, just not ones that use another macro within them to expand upon its functionality), but I can't get this work.


author: Sascha Rose
body: Hi,

can you give me the complete User Macro? I am new here and not worked with Velocity yet.

Thank you !
How to get in a macro the list of users who can view a current page?
Asked by Alex Bobrovski:

Hi, I want to write a macro that generates the table (list) for a**current** page with names of users who have access to this page. So, if one page view is resticted to 5 people, I want to see those 5 users.

I've tried to use \\{report-table\\} and \\{user-reporter:space=view\\}, but looks like I can't get the permission list for a current page.

Need your help!


Answers:
author: Stefan Kohler
body: This is a duplicate of [How to create a list "People who can view a current page"?](../3895/how-to-create-a-list-people-who-can-view-a-current-page)


Tags: report
Confluence Cluster disadvantages or how to handle cluster panics?
Asked by David Gyurasz:

Hi,

We are using a clustered installation of Confluence (2 nodes) but see more disadvantages than advantages of it.

- it isn't possible to configure it in a master/slave configuration, i.e. when one confluence receives a heartbeat, when cluster panic occurs, both nodes disconnect and stop working - they need to be restarted manually. These cluster panics can occur very often so the availability of Confluence is not the highest.

Questions:

- how do you handle cluster panics, failovers? do you have some linux scripts to detect them and restart the instances? Are there other better ways to handle them?

- why shouldn't we move from a clustered standalone installation with 2 nodes to a 1 standalone non-clustered installation?


Answers:
author: Adam Laskowski
body: Cluster panics have [a number of root causes](http://confluence.atlassian.com/display/CONFKB/%27Database+is+being+updated+by+an+instance+which+is+not+part+of+the+current+cluster%27+Error+Message), so narrowing down which particular scenario you're encountering will determine what you can do to prevent or prepare for the fallout from failures. In most cases, the panic occurs when one node becomes unresponsive and the cluster safety check can't be completed properly.

The major benefit for clustering your instance is balancing the load for requests against your instance across more than one server. If your instance as a single node would slow considerably during peak hours of the day, splitting the load across more hardware usually reluts in better performance. There are [some other considerations](http://confluence.atlassian.com/display/DOC/Cluster+Checklist#ClusterChecklist-GeneralConsiderations) that you should look over, as well, before making the decision to go to a single node environment, but it's normally possible to performance tune a single node to perform well under load such that a clustered instance might not be necessary.

Try running a single node in production for one day and monitor performance during your peak hours. If the performance hit is quite large (an additional 5-10+ seconds load time), you might still want to keep clustering. If it's a minimal change to performance, you should be able to make a few [performance modifications](http://confluence.atlassian.com/display/DOC/Performance+Tuning) and run a single node long-term.


Tags: data-center
How to display content on condition?
Asked by Michal Zebrowski:

I have code like this:

```
{report-block} 
{local-reporter:content:descendents|source=PUB:Surce Page} 
{text-sort:content:title} 
{local-reporter} 
 
{report-body} 
h3.{report-info:content:title|link=true} 
{report-info:content:excerpt|render=wiki} 
---- 
{report-body} 
{report-block}
```

Now, I want give User posibility to choose if he wants to see page's title and the content, or only a title. So, I need two things:

1. some macro which let user to choose 'view mode' (some kind of checkbox)

2. some macro which has option to show/hide the content on condition

I tried to work with {checklist} macro and {builder-show} (does it work with default theme?), but I failed. I don't know how to connect them.


Answers:
author: JohnA
body: Not quite perfect, but take a look at the [run macro](https://studio.plugins.atlassian.com/wiki/display/RUN/Confluence+Run+Plugin), which lets you pass parameters to a page and then modify page content based on those parameters. Great for changing parameters to an SQL macro, but can also change content of the page itself. You could possible rig it to activate a nodisplay macro to hide content.

Actually, even better would be to use it to pass a parameter to Adaptatvist's [cloak macro](https://www.adaptavist.com/display/AtlassianConfluence/cloak+macro) which can show/hide content.

If you're really adventurous, you could include content to toggle CSS styles to show/hide information, much like the [Confluence Documentation Theme](https://studio.plugins.atlassian.com/wiki/display/DOC/Confluence+Documentation+Theme) shows/hides a side panel. Mark secitons with a [style macro](https://www.adaptavist.com/display/AtlassianConfluence/style+macro) and then create a trigger mechanism.

Let us know how you go!


author: Michal Zebrowski
body: The solution with CSS styles sounds promising. Could You give me some hints?
add metadata to a confluence page which is generated from word
Asked by francis:

Hi,

We have a bunch of word documents which we would like to convert to wiki pages.  
In addition, we need to add some metadata to these pages (such as topic, quality, ...) such that these can be classified in some way. We don't want to use labels, as these are too free form.

Any idea how we can tackle this ?

Thanks

Francis


Answers:
author: Rian Rian
body: I'm using the metadata plugin to add metedata in a similar situation, and I am finding it has many useful capabilities (and a few problems, too).

That doesn't solve your other problem: importing content from Word in such a way that the marcos aren't "escaped" ("{color:red}" becomes "\\{color:red\\}"so that you have to go in to each page and unescape them.

This is a workaround for that:

-- add all the macros you want to use to your Word documents.

-- Save each of your Word documents as a text file.

-- Put the text files in some directory on the Confluence server. (Best to create one especially for them.)

-- Go to the space you want to import the pages into and go to "Space Admin" (assuming you have the permissions to do so).

-- Click "Import Pages from Disk" (last choice in the left menubar).

-- Use this mechanism to import the text files. Each one will become a new Confluence page in the space, with all macros intact.

The problem I'm dealing with now is that these pages are NOT imported as children of the home page -- if you want them to show up in the normal space hierarchy, you have to move them manually. (Of course, maybe someone wiser than I has a workaround for that -- anybody?)


author: Tom Moors
body: Hi Francis,

For the import you can use the bundled Office Connector plugin, documentation can be found here: <http://confluence.atlassian.com/display/DOC/Importing+an+Office+Document+into+Confluence> . I'm affraid there's no bulk import/API that can be scripted - no experience in this field.

For the classification problem can I suggest to take a look at the Metadata plugin (<https://studio.plugins.atlassian.com/wiki/display/META/Confluence+Metadata+Plugin>) which will help to add metadata to the pages like title, creation date etc. It is possible to generate reports based on these values, I also thought they were indexed to enable easy searching.
How do I fix error 502 from Apache with Confluence (mod_proxy)?
Asked by Ayron Jungren:

I have Confluence sitting behind Apache (mod_proxy), and my httpd.conf section looks like this:
>
> ```
> <VirtualHost *:80>
> ```
>
> ```
>   ServerName confluence.example.com
> ```
>
> ```
>   ProxyRequests off
> ```
>
> ```
>   ProxyPreserveHost on
> ```
>
> ````
>   ProxyPass / http://127.0.0.1:8000/</pre<>>http://127.0.0.1:8000/%3C/prehttp://127.0.0.1:8000/%3C/pre
>
> ```
> </VirtualHost>
>
> ```
>
> ````

[](http://127.0.0.1:8000/%3C/pre)

[I get an HTTP Error 502 whenever I try to access](http://127.0.0.1:8000/%3C/pre)[confluence.example.com](http://confluence.example.com). Nothing shows up in the Confluence log, but the Apache log shows:
>
> ```
> [Thu Jul 21 15:59:23 2011] [error] [client 172.16.32.100] proxy: Error reading from remote server returned by /
> ```
>
> ```
> [Thu Jul 21 15:59:23 2011] [error] [client 172.16.32.100] (20014)Internal error: proxy: error reading status line from remote server 127.0.0.1:8000
> ```

Is there any way to fix this? I can't give Confluence a separate public IP address, and I'd prefer it to run through port 80.

The exact same configuration works for Bamboo, Crowd, Crucible, and JIRA. Also, I can access Confluence directly on port 8000, but that isn't open externally, only over the LAN, and Confluence needs to be accessable over the Internet.


Answers:
author: Ayron Jungren
body: Well, by the advice from Atlassian Support, I've fixed the issue (somewhat) by switching to mod_proxy_ajp, and changing the protocol to AJP/1.3 in the server.xml file.


author: Thomas Krug
body: Did you check the tomcat logs (stdout and stderr)? This sounds like the proxy parameters are missing in the server.xml

comments: author: Ayron Jungren
body: Yes, there's literally nothing in the logs, sadly. I tried both with the proxy parameters in server.xml and without, and neither works. Although I've read that I don't need them, as I'm using ProxyPreserveHost, it doesn't work either way, sadly.
Does Confluence support connecting to Oracle database server?
Asked by Tuan Ton:

I do not see an ability for Confluence to use Oracle. Is it supported?


Answers:
author: MatthewC
body: If you're just running a demo version then maybe you don't have the drivers installed? You'll have to download these yourself from Oracle.

See Nic's link for what version is supported \& this ones for how to set it up.

http://confluence.atlassian.com/display/DOC/Database+Setup+for+Oracle


author: Nic Brough -Adaptavist-
body: See [http://confluence.atlassian.com/display/DOC/Supported+Platforms\</p\<\>\>](http://confluence.atlassian.com/display/DOC/Supported+Platforms%3C/p)
Plugin for sighted versions of confluence sites like on wikipedia
Asked by Pee Wee:

Hi, I'm a confluence newbie and I wonder if there's a confluence plugin for "sighted versions" like wikipedia has. You know, on wikipedia "trusted" user (i.e. 'experienced' wikipedians) can flag a version of an article/site as "sighted" (see [sighted version](http://en.wikipedia.org/wiki/Wikipedia:Flagged_revisions/Sighted_versions "Wikipedia - Sighted Version")). It would be nice to have a confluence plugin at hand that provides same functionality (best: members of a predefined group can flag an article that has the plugin in it; this article could actually be based on a template non editable for all users which actually has this plugin). I hope anybody can help or has an idea??


Answers:
author: Richard Yale
body: You might think about using something like <http://www.adhocworkflows.com/display/WWW/Home> Ad Hoc Workflows if you can afford to purchase something. This will allow you to have "reviewers" who can overlook material before approving it and the new content will be in "draft" mode until approved and anyone logged in will only see approved content.


author: Pee Wee
body: Thanks! This would definitely be an asset but it is unfortunately not exactly what I'm looking for. Everyone should be able to edit the site (and see all versions), but just some should be able to approve a version that should subsequently be displayed as such.

comments: author: Richard Yale
body: The Ad Hoc Workflows plugin is scriptable and allows you to do just that. Feel free to contact the company with any questions you have and they'll be able to better help you with specific examples.


Tags: flag

version