youngmon/atlassian-qna huggingface dataset:
How to disable pop-up viewing?
Asked by Ale? La?ar:

Hi there,

i have question. Is possible to disable opo-up windows? I mean that, when i open a new blog post in pop-up, i can redirect everywhere. And that is bad for security reasons.

Thank you!

Ales


Answers:
author: Ale? La?ar
body: Resolved, to Custom HTML just insert that:

```
&lt;script&gt;jQuery(document).ready(function() {    jQuery(".external-link").attr("target", "_blank");});
```

:)


author: PeterKoczan
body: Hi,

If an user can navigate to different websites in a new window, they will be able to do the same in the original window as well.

However, you may want to try the tip here: <https://confluence.atlassian.com/display/CONFKB/How+to+Force+Links+to+Open+in+a+New+Window>

This is for forcing links opening in new window, but if you replace **_blank** with **_self** I believe it should have the effect you are looking for.

Kind regards,

Peter


author: PeterKoczan
body: Hi Ales,

Can you explain a bit on how popups breach security? Maybe understanding the whole approach would help to find a proper solution for the issue.

Kind regards,

Peter

comments: author: Ale? La?ar
body: Hi Peter,

On Dashboard, user can click to show blog post in new window. And there he can visit links etc.. But here is chance to access on somewebsites, where can be something wrong... So is it possible to disable opening blog post in new windows?

Thank You


Tags: confluence-administration
Autocomplete with soy
Asked by Anis Othman:

how I can use autocomplete with soy  
`<``input` `class``=``"autocomplete-page"` `data-max``=``"10"` `data-none-message``=``"No results"` `data-template``=``"{title}"``>`

I have a bug with `{title} in soy template file.`

Any suggestions on what is wrong ?

Thanks.


Answers:
author: kyberorg
body: Same problem in 2016 as well. Reason is: {title} compiles as Soy start tag.

But I found workaround:

```
data-template="{literal}{title}{/literal}" 
```


author: Jason Nguyen
body: I'm also trying to achieve something similar. Have you had any luck trying to get it to work?


Tags: auto-complete

soy-templates
How to insert TOC section numbers into section headers with PDF export?
Asked by Rick Suel:

I'm sure everyone has faced this problem, and hopefully it's been solved. When exporting to pdf, confluence automatically creates section numbers in the table of contents. I want those auto generated section numbers to be inserted at the beginning of the actual section titles in the document. Surely this is possible? Any help is greatly appreciated!-Rick


Answers:
author: Steffen Heller
body: This must be defined in the PDF export stylesheet with the help of CSS counters. A quick example would look like this:

```
body {counter-reset: levelA;}h2:before {content: counter(levelA) ". ";counter-increment: levelA;}h2 {counter-reset:levelB;}h3:before {content: counter(levelA) "." counter(levelB) ". ";counter-increment: levelB;}
```

comments: author: Rick Suel
body: This almost works, but still results in odd numbering. Thanks for the info though, this is a starting point.


author: Maurice Pasman
body: Yeah, this fails in situations where h1-h6 markings are also used on the pages itself.


author: Steffen Heller
body: If so, just exclude those headings and include the page title instead.


author: Maurice Pasman
body: How can those headers be detected (and thus excluded)?


author: Steffen Heller
body: Use .pagetitle h1 to only include the page title but not the page headings.


author: Gunnar Djurberg
body: I have a working example of plain html with levels of headings that get numbered (try here <https://jsfiddle.net/gudj/37pcs28x/> )

```
body {counter-reset: lvl1;}.pagetitle&gt;h1   {counter-reset: lvl2;}.pagetitle&gt;h2   {counter-reset: lvl3;}.pagetitle&gt;h3   {counter-reset: lvl4;}.pagetitle&gt;h1 {counter-increment: lvl1;}.pagetitle&gt;h2 {counter-increment: lvl2;}.pagetitle&gt;h3 {counter-increment: lvl3;}.pagetitle&gt;h4 {counter-increment: lvl4;}.pagetitle&gt;h1:before {content: counter(lvl1) ". "}.pagetitle&gt;h2:before {content: counter(lvl1) "." counter(lvl2) ". "}.pagetitle&gt;h3:before {content: counter(lvl1) "." counter(lvl2) "." counter(lvl3) ". "}.pagetitle&gt;h4:before {content: counter(lvl1) "." counter(lvl2) "." counter(lvl3) "." counter(lvl4) ". "}
```

**But when I use that CSS in "pdf export CSS" I get a couple of problems**: The counter increment only works on the h1 level. For the lower levels (h2-h4) there is only one increment so they all show "1" (unless the parent level is missing in which case it becomes "0"). This one is quite annoying since I know the header levels are there since the content gets inserted. Could this be caused by counter reset caused by additional h1 tags? But why would they be wrapped in pagetitle class if they are not themselves page titles?

The second problem is discussed above by Heller etc - but I am not able to use pagetitle to filter out the headings within each page, the class seems to get matched also for some "intra-page" headlines, not just the page title. I've tried using other classes/ids from the displayed HTML but it seems only pagetitle is used in the pdf export...


Tags: pdf

table-of-contents
How can I insert text into the document and preserve destination formatting?
Asked by Bobr:

Hi

We are using Confluence to write documentation in our project, but I found it really annoyed what I can't easely insert new peace of text from another document and preserve destination document's formatting style which leads to big nasty mess! I'm using Chrome and usual shortcut for it is Cmd + Shift + V, but in Confluence it binded to some another action and I can't use it normally (only through right-click context menu). I was tearing my hair and ready to kill the person who binded this shortcut, which works in another web-apps (like Google.Docs for example) as expected, but not in Confluence!

Maybe this "style preseving" feature helps to some peolple, but for me it leads to very worse results, I don't want for my documents looks like press clippings :(

Please, please, please! Can somebody say me how to re-enable native Chrome Cmd + Shift + V shortcut or disable Confluence's rebinding (untick of "Enable General Shortcuts" not helped). Thanks.


Answers:
author: Bobr
body: Sorry, I found the issue by JS debugging -- it was "Screen Capture (from Google)" extension for Chrome, but I don't know how it works properly on other pages but not in Confluence .. Also I see

* Paste table row\<kbd\>?\</kbd\>+\<kbd\>Shift\</kbd\>+\<kbd\>V\</kbd\>

in the Confluence's shortcuts which was the source of my problem .. strange things happens..


Tags: cloud

confluence-cloud
Copying bookmarks into confluence
Asked by Benjamin Horst:

What I am trying to do:   
copy bookmarks from Firefox into Confluence

steps I took:   
-open bookmarks drop down   
-right click on a folder -\> copy   
-paste into a new confluence page in edit mode

behaviour: The links get copied perfectly. URLs and their decriptions are pasted and transferred into Confluence links. Subfolder are indented so the hierarchy is displayed as well.

problem: neither in preview nor in the page view any content is shown. If I save the page and go back to edit mode, no content is displayed. I tested a bit and found out that if I remove the formatting completely, it works.

question: Is there a way to replace that indentations? Or another way to get a couple hundred booksmarks easily on a confluence page? If I remove it completly, all my links are one text without linebreaks or blanks, and I'd have to sort the URLs anew.

**edit: for some reason, I can't add comments, atm. So I will update the data in here:**

Giving an example doesn't really work without using Confluence wysiwyg editor, but I'll try.

If I:  
-open bookmarks drop down   
-right click on a folder -\> copy

I have the output in my Clipboard. Whereverelse I paste this (jEdit, Windows Editor, Clipboard Tools, Eclipse...), I get the following output:

Spys  
http://in.relation.to/Bloggers/InstantMockupForEclipseSWTApplications

But if I paste it in confluence I get:

Spys  
Balsamiq for Eclipse SWT Applications  

With an indented URL, the description I placed on my bookmark and a correct link to the page behind it.


Answers:
author: Benjamin Horst
body: Unfortunately no one seems to have a good idea there.

I now did a workaround and saved my bookmarks as html, transferred them into .docx format and imported the .docx into Confluence. Unfortunately links with a pipe \| in its description are not imported corretly. But it's few links which face that problem.

A pity that such a sweet feature (copy\&paste of all those links) that's already there doesn't work in the end.

comments: author: Benjamin Horst
body: Since I used this solution, I will mark it as solution. If anyone has a better idea, I'll gladly add the Karma reward again ;).


author: PeterKoczan
body: Can you give an example of the formatting that is added and maybe based on that we can suggest and easy way to search\&replace some tags to fix it.

Cheers,

Peter

comments: author: Benjamin Horst
body: Giving an example doesn't really work without using Confluence wysiwyg editor, but I'll try.

If I:  
-open bookmarks drop down   
-right click on a folder -\> copy

I have the output in my Clipboard. Whereverelse I paste this (jEdit, Windows Editor, Clipboard Tools, Eclipse...), I get the following output:

Spys  
http://in.relation.to/Bloggers/InstantMockupForEclipseSWTApplications

But if I paste it in confluence I get:

Spys  
Balsamiq for Eclipse SWT Applications  

With an indented URL, the description I placed on my bookmark and a correct link to the page behind it.


author: Benjamin Horst
body: testtetstesttest


Tags: bookmark

firefox
Error 324 net::Err_empty_response
Asked by Maria Huerta:

Hi,

All the day I had problems with the sistem confluence.

This are some errors  

<br />

The last error was""Error 324 (net::ERR_EMPTY_RESPONSE):""

Can you tell me how to fix the problem??

Thanks

<br />


Answers:
author: Renato Tavares
body: I have this problem now

comments: author: Nic Brough -Adaptavist-
body: Have you tried what John recommended, and then read the log to see if there are errors in it?


author: JohnA
body: Hi Moncerrat,

From looking into this issue I don't believe this is related to Confluence at all, but more a common problem with Google Chrome as described in thsi article: <http://www.roezer.com/fixing-chrome-bug-error-324-neterr_empty_response/>

Essentially, most people seem to fix this by clearing their cookies and caches so can you give this a go and let us know whether this resolves the issue or not? If that doesn't work you can also try "Incognito mode" because this issue could aslo be being caused by a browser addon that is causing conflicts.

All the best,  
John

comments: author: Jaap Scheper
body: Hi John,

The link to roezer.com seems to be a dead link.

Is it possible to post an updated link?

Best regards,  
Jaap.


author: Nic Brough -Adaptavist-
body: What does the log file say?


Tags: cloud

confluence-cloud
No XHTML source editor or space copy in Confluience OnDemand?
Asked by Robert Lauriston:

Does the very limited plugin support mean that there's no XHTML source editor or space copy in Confluence OnDemand?

If that's the case, could I work around that by exporting, importing into a download installation, exporting, and importing back into OnDemand?


Answers:
author: Michael Knight
body: That's right, they are not present in OnDemand at the moment. There are feature requests currently open for these that you can vote on to increase the chances they will be included in the future:

* <https://jira.atlassian.com/browse/CONF-24922> (Source Editor plugin)
* <https://jira.atlassian.com/browse/AOD-3543> (Copy Space plugin)

Yes, you can export a space to a local install, perform processing on it there with those two plugins and then upload it again.

Note that the version of Confluence you use for your local install should be the latest [Confluence OD downloadable release](http://www.atlassian.com/software/confluence/download-od).

comments: author: Robert Lauriston
body: Confluence is unusable without the source editor. I've switched to the installed version. Thanks.


Tags: cloud

confluence-app

confluence-cloud
Confluence OnDemand SOAP API
Asked by Tom GOERING:

Is the Confluence SOAP API available with OnDemand? Remote API is checked in the Admin/Feature Settings, but I am getting "not supported" errors.


Answers:
author: MJ
body: Have you had a look yet at the [Confluence Remote API Reference](https://developer.atlassian.com/display/CONFDEV/Confluence+Remote+API+Reference)? A similar question has been asked before, which has been answered with some links to documentation which might be beneficial to you as well, you can find it [here](/questions/170968/confluence-ondemand-remote-api-what-are-my-options)

comments: author: Tom Goering
body: Thanks! I read further in the doc and found what I was doing wrong. It is working for me now. I'm not sure how to "accept" the answer, however (I don't see an Accept button!). If there is something more I need to do to accept, please let me know. Thanks again.


author: Bob Swift (personal)
body: Yes, definitely. [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) is mainly SOAP based and works with OnDemand. It is used on the linked site (OnDemand site) all the time to updated pages and attachments :).
Copying Pages & Sub Pages/child
Asked by KP11:

We will be moving to a central home page for Knowledge Base.

How can we copy existing pages/sub pages to a new area and update any links asscociated if they point to old page? Does the COPy perform all updates to links?

Can we just rename the main Home page?

This would be the same issue if we were going from TEST Home to DEV HOME to Prod HOME for our Wiki doc. How does Atlassian do it? Is there a canned process?


Answers:
author: Ivan Maduro
body: There are several ways to do this. You can Move a page to your new KB Space, this will include all child pages (and their child pages) as well as any files. This will automatically update all internal links pointing toward the new location of the page.

You can also simply rename the Home page (or point the Space homepage somewhere else) and the Space itself via the Space Tools option (under Browse \> Space Tools or in the left sidebar).

If you want to Copy the pages instead of moving them, that is unfortuantely not possible from Confluence out of the box. However [This Plugin](https://marketplace.atlassian.com/plugins/com.nurago.confluence.plugins.treecopy) can provide that, or you can use the [Confluence CLI](https://marketplace.atlassian.com/plugins/org.swift.confluence.cli) which uses the API to copy pages around.

Cheers,

Ivan.

comments: author: KP11
body: Is there a specific way to RENAME? Space details changes Name,but the Home Page section cannot change. What process do you use? We have Space Admin not SPACE TOOLS


Tags: copy

page
Anchor works with template pages?
Asked by Cedric DEVAUX:

Hello All,I prepare procedure template in order to technical teams adds new procedures in Confluence.I create a table of content in my pages but when I try to add anchor/link but when i add link, I receive this message: "Internal Server Error"In a normal page, links \& archor works fine.It's possible to use anchor \& links macro in a global template?thank you for your helpCedric


Answers:
author: Cedric DEVAUX
body: Hi,

Probably the same incident.

The ticket is opened since 15th October 2012, do you have an update about this incident?

Thank you for your help.

Cedric


author: hsuhailah
body: Most probably you are encountering this bug: <https://jira.atlassian.com/browse/CONF-26897>. One of our engineer also reported that he gets an "Internal Server Error" message but in the insert link dialog


Tags: anchor

global

template
Handling unexpected error on livesearch macro
Asked by Boy:

Hi Guys,  

Have you experienced this kind of error message when using the livesearch macro? "An unexpected error has occured at the server side. Please contact Confluence administrator regarding this." please help if you found a solution to this.

Thanks!


Answers:
author: jing_hwa_cheok
body: Hi there,

You might want to check your Server Base URL <https://confluence.atlassian.com/display/DOC/Configuring+the+Server+Base+URL>. Some Macro will break if the server base url is not configred properly.

If that doesn't help, you will need to check the stack trace in your atlassian.confluence.logs for more clue. I would suggest you to report this issue in <https://support.atlassian.com/> . Atlassian Support engineer will help you investigate this issue.

Kind Regards,  
Jing Hwa


author: Matthew J. Horn
body: First thing I would do is rebuild the index. You can do this in the admin panel by selecting "Context Indexes". Click Rebuild.

There's additional information here:

<https://confluence.atlassian.com/display/CONF42/Content+Index+Administration>

hth,

matt


author: Boy
body: Hi Matthew,  

Thanks for the suggestion, I rebuild the index but to no avail. Do we have other ways to fix it?  

Thanks!


Tags: live-search
Is Russian translation from 4.x Confluence compatible with 5.x version?
Asked by Alexander Afonyashin:

Hi all,

The question is that we have a lot of users who use it.

Best regards,

Alex


Answers:
author: Alexander Afonyashin
body: <http://translations.atlassian.com/>


author: Alexander Afonyashin
body: <http://translations.atlassian.com/>


author: jjaroczynski
body: Hi Alex,Yes, it is compatible. Just grab the fresh version from [translations.atlassian.com](http://translations.atlassian.com).New or changed messages need to be translated of course.Cheers,Jacek

comments: author: Alexander Afonyashin
body: Hi Jacek,

Thanks a lot. It seems that Marketplace has outdated free versions of translations.

Best regards,

Alex


Tags: language-ru

translate
Pull wordpress post into Confluence blog post
Asked by Matt Shelton:

I have a personal wordpress blog that I maintain outside of my company's network. I'd like to be able to pull individual posts from my personal blog into my confluence blog. I know there are wordpress plugins to do this on publish, however I'd like to do this on an individual ad hoc basis. I also know that I can export my post as HTML and copy it over to Confluence manually. A more user-friendly option would be preferable. :-)

Do any such plugins exist?


Answers:
author: Bruna Griebeler
body: Hi Matt,  

There are two ways that I know about, but I'm not sure if they are applicable for you:  

1) Using plugins or a python script on the server as you can see here: <http://cysquatch.net/blog/software/?p=11>

<br />

2) Trying and old fashion way: Include the HTML directly on Confluence. Here is an example, but related do PHP pages: [https://confluence.atlassian.com/display/CONFKB/How+to+Use+PHP+inside+Confluence+Pages](https://confluence.atlassian.com/display/CONFKB/How+to+Use+PHP+inside+Confluence+Pages%3C/a%3E%3Cbr%3E%3Cbr%3EHope)  

Hope it helps!  

Kind Regards

comments: author: Matt Shelton
body: Thanks Bruna -- the first option would work if I was trying to port one blog to another, but I'm really trying to selectively bring posts over at the time of their publishing or shortly thereafter.


author: salehparsa
body: unfortunately the two links indicated by Bruna lead to non-existent pages of content.

comments: author: salehparsa
body: [](https://confluence.atlassian.com/display/CONFKB/How+to+Use+PHP+inside+Confluence+Pages)<https://confluence.atlassian.com/display/CONFKB/How+to+Use+PHP+inside+Confluence+Pages>


author: SarahA
body: Hallo Matt

In addition to Bruna's answer, you could use the HTML Include macro. It's shipped with Confluence, but disabled by default because of security concerns. If your site is locked down (no input allowed in any way by any untrusted users) then you can enable the macro. It will suck in the HTML from a given web page.

Here are the docs:

<https://confluence.atlassian.com/display/DOC/HTML+Include+macro>

If you wanted to display the latest blog post or posts (as opposed to specific selected posts) you can use the RSS Feed macro. Note that you can define a "white list" of trusted URLs.

<https://confluence.atlassian.com/display/DOC/RSS+Feed+Macro>

I hope this helps!

Cheers

Sarah

comments: author: Matt Shelton
body: Thanks Sarah. I considered both of those options. The HTML Include would work if I wanted the entire page or site included, but that's not my goal.

The RSS Feed could work for referencing all posts from a given wordpress category (e.g. I could have a category or tag like "cross-post" or something, and embed that feed in my Confluence site). This is a plausible option, but it means that I'm really referencing someone to my other site rather than keeping them in Confluence, which is my goal.
Using Evernote Confluence plugin with On Demand
Asked by Edgard Leite:

I have Confluence in an on Demand enviroment, now a days I can t use the Evernote Confluence plugin, as it is not enabled to on Demand instalations.

It s planned for the future to enable this plugin? Can I request it?


Answers:
author: William Zanchet [Atlassian]
body: Hi Edgard,   

As far as I know, you can't install 3rd party plugins in OnDemand instances, however you can create a ticket requesting such plugin here:

<https://jira.atlassian.com>  

I hope this helps.

Cheers,  

WZ


Tags: cloud

confluence-cloud
include random
Asked by Michael Regelin:

Hello,There is no more plugin to insert a randomly excerpt from a child page to the parent.That was prettty cool feature that is not offer right now.Maybe someone knows about a plugin doing this ?Michael


Answers:
author: Michael Regelin
body: Hi Hanis,

Thanks for the search.

It's a shame it is not conduct any further, because it was a handy plugin whit a nice feature...

Sincerly,

Michael


author: Michael Regelin
body: Hi Hanis,

I'm using Confluence 4.3.7.

No, I'm referring to the macro include-random from include-random plugin.

It was pretty old and very interesting.

```
include-random-plugin-2.1.3.jar

I'm not sure it is referenced in the marketplace, because it was found some years ago.

Michael
```

comments: author: hsuhailah
body: I found this: <https://ffeathers.wordpress.com/tag/gadgets/>. Looks like its an old plugin and not available for a later version of Confluence. At the moment, I can't find any other plugin that carry the same functionality either.


author: hsuhailah
body: What version of Confluence are you using? Can you confirm if you are actually referring to [this](https://confluence.atlassian.com/display/DOC/Excerpt+Include+Macro) macro?


Tags: excerpt

include
cannot delete a group
Asked by David Laloum:

I cant delete a group on a confluence

How can I do ?


Answers:
author: Rodrigo Girardi Adami
body: Hi David,

Is this group a LDAP group? If yes, then you won't be able to delete it from Confluence interface unless the LDAP user directory permission is set to READ/WRITE in confluence.

You may want to check out that.

Cheers!

Rodrigo


author: David Laloum
body: I m the only admin and can't delete it


author: Jobin Kuruvilla [Adaptavist]
body: You should be able to do it if you are an administrator, unless you are trying to delete the administrator group.

comments: author: Jobin Kuruvilla [Adaptavist]
body: Which group are you trying to delete? A custom one you created?


author: David Laloum
body: I m the only admin and can't delete it


Tags: cloud

confluence-cloud