youngmon/atlassian-qna huggingface dataset:
Add Page button
Asked by Michael Slayden:

How do I add a custom page type to the "Add Page" button?

We have multipe teams. Each team has thier own space. I have created a scaffolding template that is used to create a specific docuemnt. Each team will need to have the ability to create a page based on this template. But I dont want to house a copy of the templage on each users space. The plan is to make this a Global Template and I would like to add this template as a type of page under the "Add Page" button on the top right of the home page on each space. So when in any space I hover over the "Add Page" button and my custom "Create Specific Document" shows up just like Page, Blog post or Bookmark.

Also what would be useful is for the save of this document, once edited, to be defaulted to a specific parent page.


Answers:
author: Laura Kolker
body: Well, it sounds like you want to create a [web ui plugin](http://confluence.atlassian.com/display/CONFDEV/Web+UI+Modules) to handle the UI element.

As for the enforcing which template is used, customware's [add-page macro](http://wiki.customware.net/repository/display/AtlassianPlugins/add-page) allows you to specify the template (and the parent). Maybe you could take advantage of that?

comments: author: Michael Slayden
body: Yes. Perfect! Thanks Laura.


author: Stefan Kleineikenscheidt _K15t_
body: What do you mean by "custom page type"? page templates?

comments: author: Michael Slayden
body: I edited my original post with more details. Thx.
Change URL to which Confluence redirects after blog submission?
Asked by ITops123:

We want to increase participation in the blogging feature on Confluence. To do this, we have a {rw-news} macro on the space's main page and a hard-coded link on which people can click if they want to contribute a post. That link takes them to this page:

<http://tools.tntp.org/confluence/pages/createblogpost.action?spaceKey=SPACEKEY>

After they enter the blog submission and hit save, Confluence reroutes them to their individual blog post:

<http://tools.tntp.org/confluence/display/to/2011/06/17/Title+of+post>

This is confusing to our users because it does not redirect them back to the space's main page, nor does it redirect them to the dashboard. Instead, they end up in the nuts and bolts of the blog function for Confluence, with no clear path back to the originating page.

**What can we do about this?**


Answers:
author: David at David Simpson Apps
body: I would really advise against this as users won't see what the final blogpost looks like, so won't spot any mistakes.

However, if this really is important, the quickest way to sneak this in without custom plugin development would be to use javascript to check the referer...

Browse to:

```
Confluence Admin | Look and Feel | Custom HTML | At the end of the HEAD
```

Add...

```
<script> if (document.referrer.indexOf('createblogpost.action') != -1) { location.replace('http://wiki.example.com/dashboard.action'); } </script>
```

...or similar.

If you wish to redirect to a different page depending on the space, then you'll need to remember the spaceKey and redirect appropriately.

comments: author: ITops123
body: Thanks so much! This worked perfectly.


author: Alain Moran
body: That's certainly one way of doing it, personally I'd create a plugin which replicates the do create blogpost action's xwork definition in a different location to the original and changes the result definition so that it redirects to the location of your choosing.

That way the original functionality is still there for when you need it \& you can adjust your theme so that it points people to the new action, also on completion of the blog-post the original post wont need to load and then unload as the javascript gets executed - reducing load on your server \& avoiding the unsightly 'flashing' that's likely to occur with the JS path.

comments: author: David at David Simpson Apps
body: Agreed. A custom plugin would be best. My answer is somewhat simpler/easier for some people to implement :)


author: Alain Moran
body: A custom plugin in this case however should only require an atlassian-plugin.xml file placed into a resources folder and then zipped \& renamed to .jar in much the same way as you would package a user macro.


Tags: blog
How do I show all attachments pictures inline to the page in full size? Gallery makes them too small
Asked by Martin Cleaver:

How do I show all attachments pictures inline to the page in full size? Gallery makes them too small.

Thanks, Martin.


Answers:
author: Matt
body: You could the changing the thumbnail max width and height under Confluence Admin \> General Configuration \> Attachment Settings

comments: author: Martin Cleaver
body: Hmm. Thanks - true, but that changes the default, affecting all pages. I want to override the default, on a page-by-basis.Cheers, Martin.


Tags: gallery
How do I show a pagetree, with values from given headings and the ability to collect comments on each sub-page?
Asked by Martin Cleaver:

Hi - using Confluence, I have a set of pages under a root page.

Each page uses a template that establishes a set of headings.

In the root page I want to show a summary of the child pages: the summary should show the text from under each heading and the comments from each page. This can be presented as a page tree or as a table. The summary should also show the last comment and allow the user to add a further comment.

Visiting the child page the user should see the same information plus all the comments.

Can this or something similiar to this be accomplished with today's macros or plugins?

Thanks,

Martin.


Answers:
author: Matt
body: I'm poretty sure you could achieve this with the Reporting ands Scaffolding plugins from Customware. Exactly how, I'm not sure :)


Tags: comment

page-tree
Confluence User Macro Velocity Rendering
Asked by Jamie Sawyer:

Hi Guys,

I've been playing around with User Macros recently, and have been attempting to render some data so I can explore the content of some classes.

{code}

#set ($pagelist = $content.getContentPermissionSet("View"))

#foreach ($perm in $pagelist)

#set ($typeJeb = $perm.type())

#set ($groupJeb = $perm.groupName())

#set ($userJeb = $perm.userName())

\<p\>$typeJeb\</p\>

\<p\>$groupJeb\</p\>

\<p\>$userJeb\</p\>

#end

{code}

Is what I have at the moment, but it's not quite working - it's just displaying $typeJeb etc. I feel I'm missing something really obvious here!

Kind regards,

Jamie Sawyer


Answers:
author: Stefan Kohler
body: The next code should work (not tested). if you're trying to get the value of the method [getType](http://docs.atlassian.com/confluence/latest/com/atlassian/confluence/security/ContentPermissionSet.html#getType%28%29)(), then either user $perm.type or $perm.getType(). The full method name is usaly used when an argument is passed through or the method.

```
#set ($pagelist = $content.getContentPermissionSet("View"))
#foreach ($perm in $pagelist)
  <p>${perm.type}</p>
  <p>${perm.groupName}</p>
  <p>${perm.userName}</p>
#end
```


author: Jamie Sawyer
body: Perfect!

Thanks a lot for this one, other than the additional $ in perm.userName, it works perfectly - this'll get me started nicely!

Kind regards,

Jamie Sawyer
Turn off default auto watch in 3.5?
Asked by Emily Johnson:

Does anyone know if you can change the default setting in Confluence 3.5 so that people do not have watches auto-added to pages that they create or edit? This will keep us from having every individual go uncheck this box manually.

Thanks,

Emily


Answers:
author: Mark Hrynczak
body: The config lives in an XML file: \<tt\>\<confluence install\>/confluence/WEB-INF/lib/confluence-x.x.x.jar/preferences-default.xml\</tt\>.

You need to change the boolean value to false, thus:  

```
<preference type="Boolean">
       <name>confluence.prefs.watch.my.own.content</name>
       <value>false</value>
   </preference>
```

Then place it as \<tt\>\<confluence install\>/confluence/WEB-INF/classes/preferences-default.xml\</tt\> and restart Confluence.

For more details on modifying jarred config files, please refer to this doc: <http://confluence.atlassian.com/display/DOC/Editing+Files+within+JAR+Archives>

comments: author: Akeles
body: I see that users can turn on/off via the instructions at

<http://confluence.atlassian.com/display/DOC/Subscribing+to+Email+Notifications+of+Updates+to+Confluence+Content#SubscribingtoEmailNotificationsofUpdatestoConfluenceContent-TurningAutowatchOnorOff>


author: Akeles
body: It will be good to have this as configurable on the UI instead of the xml file.


author: Emily Johnson
body: Yeah, it would be nice to have it configurable via UI---we have a hosted instance so I can't modify jar files myself.


author: Colin Goudie
body: Hey emily, have a look at this link, <http://confluence.atlassian.com/display/DOC/Subscribing+to+Email+Notifications+of+Updates+to+Confluence+Content>From those docs though it only seems to discuss setting setting it on/off per user


author: Akeles
body: Hi Emily,

Please check out <http://confluence.atlassian.com/display/DOC/Subscribing+to+Email+Notifications+of+Updates+to+Confluence+Content#SubscribingtoEmailNotificationsofUpdatestoConfluenceContent-TurningAutowatchOnorOff>


author: Jon Verville
body: Here is a quick solution I put together to disable autowatch on particular pages. It is done by adding a macro to the content of a wiki page. <http://jonverve.posterous.com/confluence-control-auto-watching-behavior>
Updating the titles of included pages
Asked by Linda Smith:

hi, is it possible to update the name of a page that has been used as an include without having to find every instance of of the {include} macro?


Answers:
author: Linda Smith
body: <https://jira.atlassian.com/browse/CONF-9293> interesting - is anyone working on getting this sorted? Is there a solution in Confluence 4?


author: Sherif Mansour
body: We are tracking this issue here:

<https://jira.atlassian.com/browse/CONF-9293>

comments: author: Andrei [errno]
body: broken link - please edit to remove "\>"


author: Jeremy Largman
body: One workaround would be to use SQL to update the database. Check [How to Search Confluence for Uses of a Macro](http://confluence.atlassian.com/display/DOC/How+to+Search+Confluence+for+Uses+of+a+Macro). It's not ideal, of course, but that's one option.
No valid license found, LicenseManager returned null
Asked by Bettina Rosmarino:

I'm getting this error message in Confluence, but there is no way to update the license key:

Your license details could not be updated because the license you entered is invalid. Reason: No valid license found, LicenseManager returned null

This and my server ID are the only thing displaying on the webpage, no link to fix it. help!


Answers:
author: Bettina Rosmarino
body: Figured it out: just rename confluence.cfg.xml to .bak or something and then restart browser instance and Confluence and you are back to the Confluence Setup Wizard to enter license again.


Tags: error

licence
What is the best method for reviewing documents?
Asked by Mark J:

I want to post a document to be reviewed.

Is there a best way (page, blog, etc.) to do this?


Answers:
author: BernardoA
body: I guess this following plugin might be helpful:

<https://marketplace.atlassian.com/plugins/confluence.plugins.knowledgebase.survey>


author: HuseinA
body: I think it would be Page. There is a similar question has been asked previously [here](/questions/622/can-someone-suggest-a-good-alternative-to-the-mark-pages-for-review-plugin). Jeremy has answered with some options here.
How do people overcome lack of a robust Excel plug-in in Confluence?
Asked by Jaskirat Baweja:

One of the biggest hindrance to roll out Confluence completely is people often asking for better Excel plug-ins. Tables cannot

replace excel as people want to do lot of stuff using excel sheets?

What is the work around or any suggestions for a plug in?


Answers:
author: HuseinA
body: Here are some good available plugins:

* [Excel Plugin](https://plugins.atlassian.com/plugin/details/216)
* [Table Plugin](https://plugins.atlassian.com/plugin/details/197)
* [Table Filter Plugin](https://plugins.atlassian.com/plugin/details/27447)
* [Google Docs Connector for Confluence](https://plugins.atlassian.com/plugin/details/28507)


author: Andreas Springer _Actonic_
body: There's also [Inline Table Editing](https://marketplace.atlassian.com/apps/1217271/inline-table-editing) for easy modification of tables, cells, rows and columns without having to enter edit mode. Makes things a lot easier.


author: Adrien Ragot 2
body: Since the last answer, the [Play SQL Spreadsheet](https://marketplace.atlassian.com/plugins/com.playsql.playsql-plugin) add-on has also appeared for that purpose. You can see spreadsheets alongside blogs and pages in Confluence 5.

One of the benefits is, when every department has their own data online, you can query each other's data. Please keep me updated whenever you see a usecase that the plugin doesn't fulfill!

Cheers,

Adrien


author: Heather D
body: Can you use these plugins with JIRA as well? This is a huge issue for our team as well - very cumbersome to manually update JIRA tickets when everyone is filling out data in spreadsheets. Thanks!


Tags: ms-excel
Configuring CSS for themes in a hosted instance of Confluence
Asked by Barbara Green:

We are using a hosted instance of Confluence and would like to tweak the design of the documentation theme for our spaces to be more consistent with our corporate branding. Can I do that on my own? The doc shows a way to implement CSS for a theme, but it is for the server version. When I try to view the decorator files using the path names in the doc, I get a set of error messages.


Answers:
author: David at David Simpson Apps
body: You can quickly and easily try out minor CSS changes to the global theme by browsing to:

```
Confluence Administration | Look and Feel | Global Stylesheet
```

-- This would require you to set the Documentation Theme as the default theme in Confluence -- if you want to do that :)

You can change also change the CSS on a per space basis by browsing to:

```
Space Admin | Look and Feel | Stylesheet
```


author: Guilherme Nedel [Atlassian]
body: Hi Barbara,

You may use a standalone version of Confluence in order to make your CSS customisation, and when you are happy with the result we can upload the file to your hosted instance. Please note that this option does not apply for an Studio instance.

I hope you find this helpful.

Guilherme Nedel - Atlassian Support

comments: author: Jeremy Largman
body: A note on both this comment and the one from @David Simpson - you can only use the css stylesheet for a customisation to the default theme. For the Documentation Theme, you have to make a change to the plugin itself. Check out <https://answers.atlassian.com/questions/592/how-do-you-customise-a-bundled-theme>


Tags: cloud

theme
PageTreeSearch Macro finds pages not under the root page
Asked by Patricia Wiebe:

We have a pagetreesearch macro defined on a root page. We have a bunch of other pages defined under that page. One page was moved from being under that page to another location on the heirarchy. When we run the search the page that is no longer under the root page is found.

Do we have a problem with the definition? This is the entire page definition:

\\\\  
\\\\  
\|\| Search Gastrointestinal and Immune \| {pagetreesearch} \|\|  
\\\\  

Or - is there a residual link left over from when that page was once under the root page? Is there something we can do so this page is no longer found?


Answers:
author: Emily Watford
body: We discovered this was a user issue. She was using the reorder pages link at the bottom of the page instead of actually moving the page. So the child pages were still referring to their original parent page.


author: David at David Simpson Apps
body: The [Pagetree Search Macro](http://confluence.atlassian.com/display/DOC/Pagetree+Search+Macro) docs suggest that if the **rootPage** macro parameter is not defined the root page is the current page.

You **may** have a content indexing problem. The moved page may be stuck in the indexing queue so the result appears from the original place in the hierarchy.

Try browsing to:

```
Confluence Admin | Content Indexing
```

Check the **Queue Contents** tab and if theres a problem, rebuild the search index. This may take some time on a large Confluence instance.

comments: author: Patricia Wiebe
body: Thank you for the response. We tried re-indexing and it made no difference. I am not sure if something went wrong when it was moved to be under the other page, but, we ended up deleting and recreating the page, and now the page tree search doesn't find it in the wrong place anymore. This seemed to be an isolated incident, so hopefully we won't see the problem again.
How do I fix Excel editing using Office Connector using Windows 7?
Asked by Paul Stahlke:

One of our users is now running Windows 7 and uses the Office Connector version 1.15 on Confluence 3.4.9 to edit Excel 2007 sheets then have them auto-save back into the wiki. It used to work in Windows XP. But now his changes don't save back to the Wiki on his Windows 7 installation. Is this a known problem? Is there a fix?


Answers:
author: HuseinA
body: If he is prompted to save the changes locally, then most likely he is hitting [read-only issue](http://confluence.atlassian.com/display/CONFKB/Troubleshooting+Read-Only+problems+in+the+Office+Connector). Simply put, if you are on SSL/HTTPS the issue should has been resolved (in Confluence 3.4.1 or higher + Office Connector 1.14 or higher). Otherwise you'll need to change the BasicAuthLevel (at \[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\WebClient\\Parameters\]) registry setting to 2 for each Windows 7 client machine since Windows 7 does not support HTTP Basic Authentication to WebDAV resources. Good discussion on this issue can be found [here](https://jira.atlassian.com/browse/CONF-18174).

comments: author: Paul Stahlke
body: Thank you! I'll check this out.


author: J?rgen M?ller
body: I have tried all the instructions from the following page:

<https://confluence.atlassian.com/display/CONFKB/Troubleshooting+Read->

Only + problems + in + the + office + Connector

I also have this patch installed:

<http://support.microsoft.com/kb/2444142/de>

BasicAuth a new registry key has been added with the value 2 here:

HKEY_USERS\\S-1-5-21-3151368716-3431991997-4022344234-2200\\Software\\Microsoft\\Office\\14.0\\Common\\Internet

Nothing helps with this problem, does anyone have another solution option


Tags: ms-excel

ms-office-connector
Where can I find more Documentation for cache plugin?
Asked by Fabian Lopez:

I trying to find more information about the cache plugin.

My question is how often the refresh is calculated and if the time is based on the server or when the page that has the plugin is visited.


Answers:
author: Azwandi Mohd Aris
body: Will this help? [https://studio.plugins.atlassian.com/wiki/display/CACHE/Confluence+Cache+Plugin](https://studio.plugins.atlassian.com/wiki/display/CACHE/Confluence+Cache+Plugin%20)

P/s: if the site is under brief maintenance, try the google cache.


author: Bob Swift (personal)
body: Brendan's answer is correct. There are some macro options and conditions that can affect that - see the plugin page referenced above and comment there if you need more detail.
Why isn't attaching multiple files via drag and drop working in IE?
Asked by James Brown:

I am trying to attach multiple files via drag and drop in IE 7 or 8 (not sure what they were using exactly). I do have Google Gears installed and I have confirmed that it does work. The problem is that even though I select 20 documents, only the first one selected in the group is actually uplaoded. Am I doing something wrong? I am using Confluence 3.4.6.


Answers:
author: TonyA
body: I just did a test with IE 8 and IE 7, a similar number of files and the same version of Confluence, and didn't see the problem. Probably there's something unique to your configuration, or to the actual content.

I'd suggest trying 2 files to see if that works, noting any Javascript errors that appear.

If you're using a proxy server, I'd also suggest trying to connect directly to see if that makes any difference.

Finally, you might try an instance of Confluence 3.5 (such as our public documentation at the time I'm writing this). Confluence 3.5 includes an HTML5-based control which might work better if your browser supports it.


author: Jeremy Largman
body: I've changed the title to a question. I hope it's easier to search and find that way!


author: Jeremy Largman
body: I think this is a bug in 3.4.x and below. Google Gears was deprecated, and we moved to HTML 5 in Confluence 3.5. See the bug report at [CONF-19508](https://jira.atlassian.com/browse/CONF-19508).


Tags: internet-explorer
Can someone suggest a good alternative to the "Mark Pages for Review" plugin?
Asked by Bryan Guffey:

Hello all!

I'm attempting to find a plugin that will allow me to mark specific out of date pages in our Confluence instance as "incorrect" or "needs updating" which can then be pulled for review by a designated individual for each space, as well as overall administrators.

<br />

Does anybody have any suggestions? i know that the "Mark Pages for Review" plugin used to be available and do just this, but hasn't been updated in a long time.


Answers:
author: Jeremy Largman
body: There's an [Archive Plugin](https://plugins.atlassian.com/plugin/details/123) and a [Workflow Plugin](https://plugins.atlassian.com/plugin/details/142). The archive plugin matches your description better, but workflow is pretty powerful and might suit your use-case or a similar use-case.

There's also the [Content Survey and Reporting plugin](https://plugins.atlassian.com/plugin/details/24440), which works on page reviews (ie you might choose to review poorly ranked pages rather than by date). Full disclosure - I wrote this one (shameless plug). It's free and open source.


author: Akilan R
body: We are using Confluence 3.5.13. Is there any other alternative, e,g using html code to extract the page life cycle information and then displaying the Alert? Thanks


author: Midori
body: As Jeremy suggested the **[Archiving Plugin](https://marketplace.atlassian.com/123) does exactly what you are looking for**, and lot more, actually.

It detects outdated pages and notify the persons who are in charge to update it (original author, last author and space admins). You can control which pages should be updated (just add the "archive-update" tag) and which ones should be reviewed (add "archive-review").

You can also let the plugin clean up expired content by ignoring those notifications. In this case, the outdate content will be moved to archive spaces. (Page hierarchies, attachments, comments are preserved.)

And voila! You content is clean and tidy again.

Since the plugin does a lot more, you should [read through the manual](http://midori.hu/products/confluence-archiving-plugin/documentation).


author: Malcolm Jacobson
body: We add a "review" label to each page that is ready for review, and then use the "Content by Label" macro to generate a list of the pages with this label. The macro has a range of options that let you customise the list - e.g. by specific space, by author, by label - so we find it quite fast and easy to use across our spaces.