youngmon/atlassian-qna huggingface dataset:
Confluence Option to View PDF instead of download
Asked by KP11:

Currently when we click on a pdf link in Confluence/Wiki the PDF gets downloaded. Is there an option to Open directly or view directly? Is it a security issue? Other websites have this option. Can we change Confluence link behavior?

If not, is there a Adobe macro to view instead of download?

Also is it possible to have a dynamic anouncement section on the main dashboard?

we do not want to update the Dashboard page but want announcements viewable in a corner similar to the Activity Macro


Answers:
author: Steffen Heller
body: In e.g. Firefox it is in the menu: Tools \> Options \> Application  
There you search for the right "Content Type" and choose the appropriate "Action".


author: Richard Isaacs
body: Please try this option I just developed.

Confluence has a pdf preview function which we can access via an iframe.

Here is how:

1. In edit add the pdf file to the page using ctrl + m.

2. Choose the pdf if already attached or upload a new pdf now.

3. Save the page.

4. On the viewing page you will see the pdf as a thumbnail embedded on the page.

5. Click the pdf thumbnail and the advanced pdf viewer will load.

6. Copy the url of the viewer

7. Edit the page again. Back in the edit screen delete the thumbnail and instead create an html macro and paste the following iframe code in with your url from step 6 replacing ENTER THE URL IN HERE with your url (leave the apostrophes)

\<style\>.embed-container { position: relative; padding-bottom: 100%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }\</style\>\<div class='embed-container'\>\<iframe src=' ENTER THE URL IN HERE' style='border:0'\>\</iframe\>\</div\>

8. Click save

You will now have a fully functioning viewer with download and even pdf edit options.


author: Andrei [errno]
body: Confluence behaviour has changed as of 5.1: <https://confluence.atlassian.com/display/CLOUDKB/Attachments+no+Longer+Open+in+Browser+-+Users+are+Prompted+to+Download+File+Instead>


author: HCP Ops
body: I am upgrading confluence from 5.1 to 5.6.5. On 5.1 version, clicking link to attached PDF file while show the file in browser, but on 5.6.5 it trigger download (test on same browsers, Safari/Firefox/Chrome, on Firefox, for PDF it is set to 'Preview in Firefox')

Check with curl, it show the HTTP header for new version has 'X-Content-Type-Options: no sniff'. Is this the cause? any way to fix/workaround it?

Both HTTP headers have: Content-Type: text/html;charset=UTF-8, which seems wrong.

The content type of attachment is application/pdf on both server.


author: Timothy
body: > Currently when we click on a pdf link in Confluence/Wiki the PDF gets downloaded

How a PDF gets viewed is usually determined by the browser.


Tags: pdf
How do I hide the Application Navigator from visitors that aren't logged-in?
Asked by Steven T. Snyder:

The Application Navigator on JIRA and Confluence appears for visitors that are not logged in. How do I hide it until users are logged in?


Answers:
author: AndrewA
body: Hi Steven,  
If we got to brwose-\>confluence admin and click 'applciation navigator' in the left hand nav, we can see all the links currently established. There is an column for 'restricted to groups' which is editable for each. What we would do is add an entry to each restricting the view to the most basic gorup allowed into Confleunce. By default this is the 'confluence-users' group but could have been changed depending on your user managment setup. Once restrictions are in place for each entry then the application navigator will no longer appear for anonymous users.

Cheers,  
Andrew

P.S the same options will appear in the application navigator screens of Jira.


Tags: confluence-administration
Is there a way to track likes (or have all liked pages show up in a table - with who liked them)?
Asked by Daniel Samuels:

Hi,

Does anyone know a way to track all liked pages? If possible I would like all liked pages to show up in a table with who liked them and when.

I have a feeling I may be able to use the SQL Query Macro to do this, but I just dont know enough about the inner workings of Confluence to set this up myself.

Any help would be greatly appreciated.

Thanks,

Daniel


Answers:
author: PeterKoczan
body: Hi Daniel,

Actually you are on the right track. The query should be as easy as querying the *LIKES* table.

It has 4 columns, where contentid refers to the contentid column in the CONTENT table, username is self-explanatory and you have a creationdate to indicate the time of liking.

So for example this query would return all pages liked ordered by the number of likes:

```
select c.title,count(l.*) as likes from LIKES l, CONTENT c where c.contentid=l.contentid group by c.title order by count(l.*);
```

Kind regards,

Peter

comments: author: Daniel Samuels
body: Hi Peter,

Thanks so much! This is exactly what I was trying to do.

Best,

Daniel


author: Daniel Samuels
body: Hi Peter,

Thanks so much! This is exactly what I was trying to do.

Best,

Daniel

comments: author: ABR
body: Hi!

I've never used the SQL Query Macro and cannot find it on my macro list. could you please help me find it?

I need to do exactly what Daniel needed to do, a lot is depending on it.


Tags: confluence-administration
Displaying images from a directory location in Confluence
Asked by Jeremy Seely:

My team wants the ability to have a Confluence page that automatically pulls and then displays images from a specified directory on the network.

How would one set that up?


Answers:
author: Bob Swift (personal)
body: [Script - display images and icons](https://bobswift.atlassian.net/wiki/display/SCRP/Script+-+display+images+and+icons) - this shows images and icons from the Confluence install directory. That should be enough to get you started :).

comments: author: Jeremy Seely
body: Hi Bob, thanks for the reply. This script looks like it requires your Script Plugin, is that correct? I'm not sure if this would work for pulling images from a network drive that is different than the server Confluence is installed on.


author: Bob Swift (personal)
body: Yes, the specific script requires the plugin. You could put similar logic in a custom plugin. You should be able to pull from a network drive fine provided access is configured correctly on the server.


author: Bob Swift (personal)
body: Yes, the specific script requires the plugin. You could put similar logic in a custom plugin. You should be able to pull from a network drive fine provided access is configured correctly on the server.
Administration
Asked by David Laloum:

Hello,

How can I have systm administration right ?

I can't delete or modified a space create by one of my user,

Thanks


Answers:
author: BernardoA
body: The admin can grant full permissions to such users through confluence admin \> global permissions.

Please contact your admin to provide you such permissions.

comments: author: David Laloum
body: Hello

I'm the admin :-)

I can delete user's but can't delete the space that they create ( operation denied)

Other question, is it possible to take off the possibility to create personnal page for users ?

thanks a lot


author: Jobin Kuruvilla [Adaptavist]
body: on onDemand you won't be given system admin rights.

<https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand#RestrictedFunctionsinAtlassianOnDemand-Confluence>

You will have to ask the user to make you an admin of the space or get help from Atlassian support.


author: Michael Knight
body: There is no need for system administrator permission. Normal administrator permission is sufficient.

Go to:

* Confluence admin,
* Space permissions (in the 'Users and Security' section),
* click 'Manage Permissions' on the space you want access to (you are now in the 'Space Tools' section of that space), and
* edit permissions to taste.

You can delete the space from the Space Tools section by going to Overview -\> Delete Space.


author: David Laloum
body: Hello

I'm the admin :-)

I can't delete user's but not delete the space that they create ( operation denied)

Other question, is it possible to take off the possibility to create personnal page for users ?

thanks a lot


author: Abdoulaye Kindy Diallo
body: System Administrator permissions is reserverd to engineers for troubleshooting purpose as mentioned [here](https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand). However, your administrator rights should allow to do that. Please do refer to this: <https://confluence.atlassian.com/display/DOC/Deleting+a+Page>

comments: author: David Laloum
body: Hello

I'm the admin :-)

I can delete user's but can't delete the space that they create ( operation denied)

Other question, is it possible to take off the possibility to create personnal page for users ?

thanks a lot


Tags: cloud

confluence-cloud
https://marketplace.atlassian.com/plugins/cz.semanta.exportexcel.exportexcel#reviews
Asked by wandisco_rich:

Is this plugin available on Confluence 5? It appears not but I've seen other instances where the plugin page simply hasn't been updated...

Cheers  
Rich


Answers:
author: Abdoulaye Kindy Diallo
body: It does not seem so. But it would be better if you could get in touch with the vendor directly:

katerina.vonkova@semantacorp.com (+420723086068).

comments: author: wandisco_rich
body: Thanks - I'll try them direct.


Tags: export

ms-excel
inserting an image on the same row
Asked by ashan:

Dear Forum,

When I insert an image in confluence it always attaches it on the next line. Is there a way to add it on the same line of my text.

Thank you!


Answers:
author: ashan
body: Thanks for your time peter. This was an issue in my stylesheet, which I have fixed now.


author: PeterKoczan
body: Hi,

That can very well cause this, I'd suggest you to remove any customizations temporarily, or if that is easier, install a separate Confluence instance with an evaluation license and try to reproduce the problem there. Otherwise, you are always welcome to open a ticket with us at href="http://support.atlassian.com%20"\>http://support.atlassian.com where we can assist you to debug this issue.

Kind regards,

Peter


author: ashan
body: Firefox version is 21. I'm sorry I don't have chrome with me atm. Could this be due to a stylesheet added to the space?


author: PeterKoczan
body: Can you please let me know your Firefox version too? Can you try and see if the same happens using Chrome?


author: ashan
body: Confluence 4.2.2. I use firefox and the image does not go to where the cursor is. It goes to the next line.


author: PeterKoczan
body: Hi Ashan,

Normally the image should be attached where the cursor is. I suspect you are using Internet Explorer, such problems most commonly happen there. Can you try this with a different browser and see if it makes any difference?

Can you also let us know your Confluence version?

Kind regards,

Peter


Tags: attachment

image

line-break
Why i get an error when i use filter spaces any and have selectet state
Asked by Felix Heinemeyer:

Hi,  
Why i get an error when i use filter spaces any and have selectet state  
my error is following:  
Error rendering macro 'workflowreport' : com.atlassian.renderer.v2.macro.MacroException: No default space key available need to save draft page or provide space key, state or approval name params.


Answers:
author: PeterKoczan
body: Hi Felix,

Could you explain the problem in a bit more detail? Where do you try to filter the spaces? Do I assume correctly that you use Comalatech Ad-hoc Workflows plugin? In what space do you try to use the macro? In theory it should default to the space where you use it. (see: <https://wiki.comalatech.com/display/AWP/workflowreport+macro>)

Can you let me know the parameters you use for the macro?

Kind regards,

Peter

comments: author: Phil Gochenour
body: Hi, I'm having the same error come up. I'm using the AHW workflowreport macro, AHW v.4.3.1 Reporting v.4.2.3, and Confluence 5.1.3. The issue is with the Space parameter; if i set it to @all, as specified in the documentation, I get the error. If I use it to report on a space, or tasks on a page, it functions as expected.


Tags: confluence-administration
Seeking a FOSS Document Management System that works with Confluence?
Asked by Darryl Lucas:

Ideally a free open source solution that can somehow be used to store versioned file types that are accessible within Confluence.  

My goal is to use Confluence as a Knowledge Base with links to the Document Management system content which gives granular access control to in a similar way to Confluence's Spaces.  

I need to satisfy ISO 27001,which is something that I don't think Confluence supports because of the way it natively stores attachments.  

Thanks for reading.


Answers:
author: Patrick Li
body: Alfresco is an open source document management solution, and you can use the Aflresco Confluence connector to display the files inside Confluence.

In terms of security, you can continue to use Confluence's builtin security features, and also from Alfresco.

<http://www.appfusions.com/display/CONFALF/Home>

comments: author: B_ Normann P_ Nielsen
body: Well Patrick, accoding to <https://marketplace.atlassian.com/archive/com.appfusions.confluence.plugins.alfresco.alfresco-in-confluence>

it states:

This add-on has been archived

You may still get support information and download previous versions of this add-on

So it there a future in the product, or what does "archived" means?

BR,

Normann


author: Henrik Danielsen
body: Well Patrick, accoding to <https://marketplace.atlassian.com/archive/com.appfusions.confluence.plugins.alfresco.alfresco-in-confluence>

it states:

This add-on has been archived

You may still get support information and download previous versions of this add-on

So it there a feauture in the product, or what does "archived" means?

BR,

Normann


author: David at David Simpson Apps
body: You can get it and all future updates direct from AppFusions here:  
<http://www.appfusions.com/display/CONFALF/Home>

"Archived" means that it is no longer sold on Atlassian's marketplace. That is all. I'm afraid we can't control the text they provide for "archived" add-ons as they are described there.


author: B_ Normann P_ Nielsen
body: Ok, thank for the answer - I read it as discontinued, but I am glad to hear that it is not the case.

Besides that, not using the Marketplace is in my POV sad, as this promotes, markets and makes plugins easy to test, buy and maintain, a great feature of Confluence!!

BR,

Normann


author: Darryl Lucas
body: Thank you for your answer. Would the Aflresco Confluence connector allow users to search the Alfresco content directly within Confluence?


author: Darryl Lucas
body: Let me elaborate a little.

I want to add attachments to an EDM system using Confluence. Then be able to view, link to, edit and search within the EDM-hosted content from within Confluence.

In short, I'm looking to replace Confluence's attachement storage with an EDM system and use the content as though it were natively in Confluence.  

The Aflresco Confluence connector does not currently support search.


Tags: confluence-administration
Set Cookie
Asked by saurabh bhagat:

How to set cookie in confluence on successfull login in login.vm


Answers:
author: saurabh bhagat
body: Thanks, but this is not I want. I want to create my own cookie on successfull login

Inside login.vm I am searching for the function/code where actual login is perfomed

on click of submit form goes to dologin.action.


author: Abdoulaye Kindy Diallo
body: Confluence generates the "remember me" cookie once the box is checked as highlighted in [Confluence Cookies](https://confluence.atlassian.com/display/DOC/Confluence+Cookies). In order to disable it, a workaround was suggested in here.

Hope that helps.


Tags: cookie
How do i canel subscription onDemand Confluence
Asked by linhao peng:

Hi all, I want to cancel my onDemand Confluence, so I followed <https://confluence.atlassian.com/pages/viewpage.action?pageId=321257595> try to deal with the problem, but I still didn't know how to handle it since my screen is not the same description in the aboved URL. In my screen, I haven't any licence even I have used almost 1 month.

Thx guys. :D


Answers:
author: Michael Knight
body: If you don't see your OnDemand account after logging into <https://my.atlassian.com> then I'd recommend contacting our customer advocates team, who should be able to help you out. You can email them at [sales@atlassian.com](mailto:sales@atlassian.com) or using the phone numbers on <http://www.atlassian.com/company/contact/>. Remember to include your hosted URL so they can look up your account.[](http://www.atlassian.com/company/contact/)

comments: author: linhao peng
body: Thanks a lot, I have send an email\~\~\~


Tags: cloud

confluence-cloud
Confluence not rendering correctly after clean install
Asked by nicholas waterson:

Hi All,

I have just installed Confluence using MySQL as the back end on a Win 7 Ultimate box. I think I am missing something or something is not installed quite right as pages are very minimal with no drop down menus etc.

e.g. on example space what I assum is the 'Tools' menu has a list of actions below it as shown below - its exactly like this btw:

Tools V

* Attachments (1)
* Page History
* Restrictions
* Favourite
* Watch
* Stop Watching
* Manage Watchers
* Page Information
* Link to this Page...
* View in Hierarchy
* View Source
* View Storage Format
* Export to PDF
* Export to Word
* Import Word Document
* Copy
* Move
* Remove

I also noted this error on one page:

Error formatting macro: recently-updated-dashboard: com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy template in plugin module: confluence.macros.dashboard:dashboard-macros-resources

Many thanks for any help you can give me as I am at complete loss right now.

Nick


Answers:
author: nicholas waterson
body: Hi Tim

Thanks for the response. I did create a support ticket in the end however when I was about to flush the plugin cache I noticed that the machine only had 9Gb available on its c drive!! So I re-sized this to over a 100Gb and not surprisingly things started to work properly!!!

I am not sure how the system managed only to render part of the screen and sort of function with the lack of disk space... regardless increasing the space resolved the problem without the need to flush the cache. Sorry for the false alarm.

Nick

comments: author: twong_atlassian
body: Glad to hear that things worked out for you! I'd accept your own answer so other people could see what you did to solve easily.


author: twong_atlassian
body: Sounds like it could be a more serious problem: I wouldn't know until you posted the full logs. If necessary: I'd recommend creating a full support ticket.

In any case- you might want to try clearing your plugin cache.

<https://confluence.atlassian.com/display/CONFKB/How+to+Clear+Confluence+Plugins+Cache>
Confluence - Add More No Results Found Tips - Can more tips be added "Use more general search terms"
Asked by Kirk Fahlberg:

I would like to add more Tips to the No Results Found search results page. Where is this information to update?

No results found for a3:21. Please try one of the following suggestions:

* Use more general search terms
* Try removing or adjusting the Where, What, When, and Who filters


Answers:
author: Matthew J. Horn
body: In Confluence 4, the search results page is rendered by the search.vmd Velocity template. It's located in /confluence/decorators directory.


author: Kirk Fahlberg
body: Thanks for the response, I was able to find the file in question but it didn't contain the text that I wanted to Modify/Add more information.

* Use more general search terms
* Try removing or adjusting the Where, What, When, and Who filters

Regards,

Kirk


Tags: confluence-administration

search
Confluence Database over WAN Link from Application Server?
Asked by Matt Uebel:

What sort of latency threshold does Confluence have with respect to it's connection with it's database?


Answers:
author: twong_atlassian
body: No posted threshold, but i'd recommend as low as possible. We do use the db quite a bit; any latency means you'll be tacking on that latency in multiples on many requests.

We do cache heavily, but that's no substitute for network fidelity. I would personally would shoot for under 20 as a max... under 10 would be better.


Tags: confluence-administration

database

network
Cannot install editor height fix for chrome
Asked by DevOps:

Trying to install via UPM: "Could not find a handler capable of installing the add-on at <https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor-height-fix>. Check that the file is a valid add-on."

Any ideas?

-Matt


Answers:
author: DevOps
body: Downloading the .jar file and uploading locally rectified this issue.

-Matt


Tags: confluence-administration
Added by, View Change
Asked by John Pfotzer:

In 5.x version I want to deleted added by and view change, but keep last edited and date. where do I go to amend the code and what code do I delete? Thanks  
* Added by [John Pfotzer](http://192.168.5.169:8090/display/%7Ejpfotzer ""), last edited by [John Pfotzer](http://192.168.5.169:8090/display/%7Ejpfotzer "") on Jun 11, 2013 ([view change](http://192.168.5.169:8090/pages/diffpages.action?pageId=524797&originalId=1443312))


Answers:
author: PeterKoczan
body: Hi John,

From the description it is not clear for me, let me try to summarize and let me know if I understood it right:

You wish to hide the 'created by' and 'view change' on the top of each Confluence page, you only wish to have the last editor of the page to be displayed, am I right?

If this is the case, you will need to edit the file: \<CONFLUENCE-INTALL\>/confluence/decorators/includes/page-metadata.vm

In this file you'll need to change the block:

```
&lt;li class="page-metadata-modification-info"&gt;                #if ($page.isLatestVersion() == true)                    $action.getText('added.by.user.last.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])                    #set ($previousPage = $action.getPreviousVersion($page.previousVersion))                    #if ($!previousPage)                        &lt;span class="noprint"&gt;&amp;nbsp;(&lt;a id="view-change-link" href="$req.contextPath/pages/diffpages.action?pageId=${page.id}&amp;originalId=$previousPage.id"&gt;$action.getText('view.change')&lt;/a&gt;)&lt;/span&gt;                    #end                #else                    $action.getText('added.by.user.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])                #end            &lt;/li&gt;
```

then remove all elements unwanted.

Kind regards,

Peter