youngmon/atlassian-qna huggingface dataset:
url-rewrite with confluence
Asked by Derek Page:

I am trying to perform a simple url rewrite however it seems everything I try does not do what I am expecting.

I am using UrlRewrite 2.5 plugin from tuckey.org  
Basically I just want to redirect <http://wiki/marketing> to [http://wiki/display/CORP/Marketing](http://wiki/display/Marketing) so my end users dont have to type the exra display/CORP.

Here is once example that I tried in my urlrewrite.xml file

    <rule> 
    <from>^/maketing$</from> <to type="redirect">/display/CORP/Marketing</to> 
    </rule>


Answers:
author: Penny Wyatt (On Leave to July 2021)
body: The \<from\> value you have there is "maketing", it should be "marketing" (with an "r").


author: Radu Dumitriu
body: mod_rewrite works for sure:

`RewriteEngine on`  
` RewriteRule ^`**/**`marketing$`` /display/CORP/Marketing [R]`

2 cents: I never tried this one, but I imagine that the order of the filters is important, so try to move your filter declaration as the first one (so that this is invoked first).

I also think that you should come with more info. What kind of problems do you have ? (what is happening ?)

comments: author: Derek Page
body: Thanks for you answer... I will give this a try.

Basically nothing happends as if the rule does not exist.  


author: Radu Dumitriu
body: Have you tried to enable some debug on it ?

    <init-param>
     <param-name>logLevel</param-name>
     <param-value>DEBUG</param-value>
    </init-param>


author: Radu Dumitriu
body: well ? works ?


author: Derek Page
body: I was able to get this working by upgrading to conf 4.1 and installing a redirect plugin.


Tags: configuration

confluence-app
Customising the HTML exported with a new style & layout
Asked by marksweb:

We've just started to evaluate Confluence \& I've been given a few exported html files to see if we can work with it to achieve the layout/style we need.

Initially I've got a custom HTML file using framesets to have a header, the index.html as a sidebar and content frame for the pages. My initial problem is with the shared IDs \& Classes between each page because I wanted to strip the index frame down to just the list of pages, but that was removing content I wanted from the content frame.

I've not been able to find any documentation on this so could someone point me in the direction of some usful resources please?

I've only been working with Confluence for a few hours so know very little of it, but we've got to use this method due to limiations of exports using the theme builder with diagrams.


Answers:
author: Kiran Kumar
body: Hi Mark,

I'm facing the problem. If you have find a way to add content frame could you please tell me how did you do it.

Thanks

Kiran

comments: author: marksweb
body: I'm afraid I never did get an answer to this so eventually gave up on the idea.


Tags: css

export

style
Default template
Asked by john walter:

How can i make a custom template the default to always show up on new pages - and/or switch the template after the page gets initially created? I have tried all sorts of things, including just the simple "include page tree on left" checkbox that comes with Confluence default template. But regardless of what i do, i always get a blank page.

But what i really want is to be able to have a default template, complete with sections, columns, preinserted macros in various places, and that comes up automatically whenever I add a new page. I can see how if i am on a page and click on the + key to add, i can select Page from Template, but if i have made an undefined link (as im trying to do everywhere as im totally all over the place in documenting my life here), when i click on that link, i get a blank page, and not any kind of premade page...and then i can't change it to the premade either.

any help on this? Seems like i must be missing something.

Thanks in advance.

John


Answers:
author: Shahrooz kamali
body: I don't have an answer but need to know if this is possible. I am trying to mass create confluence pages by using the import word document functionality. The pages will not contain anything (just the title) and I have a custom template which I would like to be applied to the new pages created by the import. I don't know if changing the default template for the space will work in this case but would certainly like to try


author: Perry Lea
body: Has this ever been resolved? Standard wiki's allow for undefined pages to default to a new template. I must be missing something here.


author: Kai Diercks
body: Hi there, this is also, what I want to do! We have a list of software modules to write a documentation for. It would be great, if this module can be described by clicking the link opening a default template to have a structured documentation.

Is it possible or a planned feature?

-Kai


author: Kerrin Hardy
body: I'm also looking for the answer too

**How to create an undefined link set to use a specific page template?**

My questions is here ([https://answers.atlassian.com/questions/80549/is-it-possible-to-link-to-a-not-already-created-undefined-page-in-confluence-from-an-external-site](/questions/80549/is-it-possible-to-link-to-a-not-already-created-undefined-page-in-confluence-from-an-external-site))


author: claire.simonson@ci.stpaul.mn.us
body: I don't have an answer, but wonder if you got the answer - I'd like to make a default page layout for 70+ users whom I support, can't get enough info from the Confluence documentation on how to insert a 'built-in' macro (attachments) to a global template, nor whether that global template becomes the default. If you've figured anything out, I'd love to hear it - thanks in advance!

-Claire


Tags: default

link

template
Automatic Confluence page or gallery slideshow
Asked by Neil Arrowsmith:

We'd like to build a wallboard showing a set of Confluence pages on rotation (say 5 seconds per page). Ideally without the Confluence chrome showing. Does anyone know of a good way of doing this, either with a Confluence plugin or something that sits as part of the browser?

Failing that, does anyone know of an alternative to the gallery macro that will rotate through the image slideshow automatically?


Answers:
author: Remo Siegwart
body: You may also want to try the [Image Slider plugin](https://marketplace.atlassian.com/plugins/com.simplenia.confluence.plugins.imageslider), which lets you automatically slide through images or any other Confluence content.

Disclaimer: I'm the author of the plugin.

comments: author: Neil Arrowsmith
body: Thanks Remo - we're on a really old version of Confluence at the moment, but i'll take a look at the plugin when we upgrade - it looks really useful.


author: Dennis Kromhout van der Meer
body: Unfortunately Confluence does not support this out of the box. However, the easiest way to accomplish this would be to create an html page that loads Confluence content via the [JSON RPC API](https://developer.atlassian.com/display/CONFDEV/Confluence+JSON-RPC+APIs) and uses that data in a javascript content slider, such as [Bxslider](http://bxslider.com/).

Another idea would be to load it with "?decorator=none" in the url, but that doesn't fully distill the data to the page content.

If you do not have the required time/skill to make this happen, I'm more than happy to find the best expert to help you based on your requirements.

Good luck!

comments: author: Neil Arrowsmith
body: Thanks Dennis. I think using the API might be a bit beyond me right now, but I followed your general idea and found <http://www.troywolf.com/articles/client/siteshow/> which served my purposes well.


author: Renjith Pillai
body: What we did in that case was to open all the required pages as tabs in Firefox and use the Automatic tab swticher extension of Mozilla firefox. Additionally put the browser in full screen (F11). Check <https://addons.mozilla.org/en-US/firefox/addon/auto-toggle-tabs/>

comments: author: Neil Arrowsmith
body: And thanks Renjith too. That particular add-on doesn't seem to support Firefox 11, but I found <https://addons.mozilla.org/en-US/firefox/addon/tab-slideshow/> which does the job.


author: Renjith Pillai
body: Oh yeah, it was meant for a bit previous versions of Firefox!
What happened to the code macro? Odd new formatting. . . .
Asked by Emily Johnson:

We're using Confluence 3.5.13 and it looks like the code macro suddenly has new formatting---a dashed line around the perimiter that looks very odd. Is this intentional? Any way to use an earlier version?

Thanks,

Emily


Answers:
author: Jo-Anne MacLeod
body: Looks like it is expected behaviour, <https://studio.plugins.atlassian.com/wiki/x/1wEq>

comments: author: Emily Johnson
body: Hi Jo-Anne, this is a much thicker line and it just started happening today. Thanks for your answer though!


Tags: cloud
Import complex word document
Asked by Joerg Bencke:

Hi Folks,

i just have some issues importing complex word documtens and thought I'd share that. Maybe you got a trick.

For your reference :

1. Chapters with identical names in one document are not renamed, but overwritten (Last wins)
2. Paragraphs are imported as \\\\ linebreaks ! (see : <https://jira.atlassian.com/browse/OFFCONN-17?focusedCommentId=301739#comment-301739> ) Any workaround available ?
3. word grafiphs, metafile graphics etc are crippled, when scaled. Often becoming useless in the process. Pasting as PNG images helps a little bit. ([JIRA](https://jira.atlassian.com/browse/OFFCONN-74))

There are some other bugs, check the JIRA list for it :


Answers:
author: Thomas Schlegel
body: Hi,

You can automatically rename the new pages, if another page with the same name already exists.

We have to work over the imported Word Documents, Doc import is not perfect, but you don't have to type the whole text again.

Best regards

Thomas

comments: author: Joerg Bencke
body: Hi Thomas, the rename only works with pages, already in the wiki before importing th eword file. it does not work with identical word-titles. If you have two chapters 1.1 and 2.1, both with title "Management summary", the first is overwritten by the content of "2.1."

Regards, Josh


Tags: ms-office-connector
Page restriction does not work in some spaces
Asked by Arantxa Lacasa Madero:

Hello,

I am Confluence Administrator, and I have noticed a extrange behabiour.

In some spaces, when clicking on tools -\> restrictions, it does not show the pop-up of restrictions.

Then, when editing a page, if I click on edit restrictions it shows the pop-up, but it does not add the group or user that I choose. I have tried in other spaces and restrictions are added without any problem.

Is there anything configured in the space that makes this happen? What am I missing?

Thanks for your help,

Arantxa.


Answers:
author: Jo-Anne MacLeod
body: In the spaces that are not behaving properly is it possible that someone else has set a restriction that you exclude you. If they have you wouldn't be able to see it (even as a confluence admin). You can however see if this is the case, but going into space admin, and then looking at the restricted pages.

comments: author: Arantxa Lacasa Madero
body: Thank you.

We realized that it was due to the personalized theme we chose. It mas have an error, so the restrictions does not work in spaces with that theme.
Is it possible artificially weight specific pages/spaces so they appear higher/lower in search results?
Asked by Steve Goldberg:

As the title says, I want to artificially weight some results.

We have some documents about a certain aspect of our product and I'd like certain pages to be returned higher in the results than others, and others not to appear until the user reaches the bottom of the list (for instance, they might be very technical pages or otherwise esoteric). Is there a way to do this?

I'm aware of the Atlassian page on search rankings (<http://confluence.atlassian.com/display/DOC/Ranking+of+Search+Results>) but I can't find a clever way to manipulate it the way I want. I'd much rather be able to, at a space level, set a specific space or page to appear higher/lower manually.

Ideas?


Answers:
author: NielsJ
body: You can implement a certain ranking algorithm with a Plugin (Lucene Boosting Strategy):  
<https://developer.atlassian.com/display/CONFDEV/Lucene+Boosting+Strategy+Module>

By doing so you should be able to adjust the ranking by an additional factor that is e.g. configured per space.

comments: author: Steve Goldberg
body: Thanks for your answer, Niels. Presumably, however, such a plugin does not exist? I mean, I had a look and couldn't find one - unless you know of one?


author: NielsJ
body: I do not know such a Plugin. What I meant is you could **write** such a Plugin yourself ;-)


Tags: search
How to disply tiny url on everypage by default?
Asked by poonam chaudhari:

I want to show tiny url of every page on page itself by default.Is it possible?


Answers:
author: Bob Swift (personal)
body: You can put the tiny link on the breadcrumb with minor customization. See [CONF-9104](https://jira.atlassian.com/browse/CONF-9104) . We have done this for years. I will update the issue with the latest version of the customization we use.

Oops, of course this doesn't apply to OnDemand since you can't customize. You can just vote for the issue.


Tags: cloud

confluence-cloud
Using TOC and reporter macro. Generating anchors.
Asked by Michal Zebrowski:

I tried to use TOC for page with content (haedings) generated with reporter macro. It doesn't work. Probably beacause of that, there are no anchors generated. Is there a way to generate them automaticly?

I tried something like this, but it doesn't work.

```
{composition-setup}{composition-setup}{section}{column:width=15%}{toc:maxLevel=3}{column}{column:width=85%}{table:border=1|cellpadding=10px|cellspacing=3px|width=100%} {report-block}{local-reporter:value:label IB7 &gt; label:content|space=MARINEIMAGES }{text-sort:content:title}{content-filter:space=MARINEIMAGES |labels= +marine, +spec_cases, +ib}{local-reporter}{report-body}{tr}{td}h3.{report-on:injected=true}{anchor:%content:title%}{report-on}h3.{report-info:content:title|link=false}{report-info:content:body|render=wiki}{td}{tr}{report-body}{report-empty}None.{report-empty}{report-block}{table}{column}{section}
```


Answers:
author: Michal Zebrowski
body: I solve the problem by creating two user macros:   
m_anchor - {anchor:$body}  
m_callanchor - \[#$body\]  
both generate wiki markup. The whole solution is listed below.

```
{anchor:TOC}{panel:title=TOC|titleBGColor=#00CCFF}{report-block}{local-reporter:value:label IB7 &gt; label:content}{text-sort:content:title}{content-filter:space=MARINEIMAGES |labels= +marine, +spec_cases, +ib}{local-reporter}{report-body}* {m_callanchor}{report-info:content:title|link=false}{m_callanchor}{report-body}{report-empty}None.{report-empty}{report-block}{panel}{table:border=1|cellpadding=10px|cellspacing=3px|width=100%}{report-block}{local-reporter:value:label IB7 &gt; label:content}{text-sort:content:title}{content-filter:space=MARINEIMAGES |labels= +marine, +spec_cases, +ib}{local-reporter}{report-body}{tr}{td}{m_anchor}{report-info:content:title|link=false}{m_anchor}h3.{report-info:content:title|link=false}{report-info:content:body|render=wiki}[Go back to TOC|#TOC]{td}{tr}{report-body}{report-empty}None.{report-empty}{report-block}{table}
```

As you can see, I search twice for the same thing:

```
{local-reporter:value:label IB7 &gt; label:content}
```

First, when I create TOC, second for the content. The question is how to do it just once?

I did something like this, it works, but it's not elegant:

```
{anchor:TOC}{table:border=1|cellpadding=10px|cellspacing=3px|width=100%}{report-block}{local-reporter:value:label IB7 &gt; label:content}{text-sort:content:title}{content-filter:space=MARINEIMAGES |labels= +marine, +spec_cases, +ib}{local-reporter}{report-body}* {m_callanchor}{report-info:content:title|link=false}{m_callanchor}{tr}{td}{m_anchor}{report-info:content:title|link=false}{m_anchor}h3.{report-info:content:title|link=false}{report-info:content:body|render=wiki}[Go back to TOC|#TOC]{td}{tr}{report-body}{report-empty}None.{report-empty}{report-block}{table}
```


Tags: anchor

local-reporter

table-of-contents
How to increase the length of the filename displayed via attachment plugin?b
Asked by andrey dmitriev:

I have found the way to display more info via the reporting plugin, but you'd also lose some functionality that way (e.g. remove)


Answers:
author: PeterKoczan
body: Hi,

Sorry for the late reply on this, but I believe the following thread answers the question for you: [https://answers.atlassian.com/questions/54562/how-can-i-make-the-file-name-column-wider-in-confluence-for-attachments](/questions/54562/how-can-i-make-the-file-name-column-wider-in-confluence-for-attachments)

Kind regards,

Peter


Tags: attachment
Confluence mail server with exchange
Asked by Pinaki Basu:

HI

We are in the process of acquaring confluence for our organisation. The issue I am facing is to configure the email notification. We use out exchange server for our emails. Does anyone configured confluence to use the exchange server, if they have can they put some instruction here.

Thank=s


Answers:
author: Renjith Pillai
body: We are using Confluence with Exchange server using IMAP.

Protocol: IMAPS

Port: 993

Hostname: Exchange server (mostly ur Web Mail Access Server)

Username: DomainName\\username\\firstpartofemailaddress (note the format)

Password: Obvious

comments: author: Pinaki Basu
body: Thanks for the reply apreciate that. when I click on the Mail Servers under Configuration in Confluence it asks to add SMTP server. There is no opton for IMAP.


author: Renjith Pillai
body: Oh, my example was for the mail accounts for the confluence spaces, sorry.

For notification, I guess it is only SMTP, and you need to enable SMTP access in Exchange server.


Tags: email

ms-exchange

smtp
Can I catch database error using sql-query macro
Asked by Ian Leslie:

For various reasons our databases (sqlserver) may be unavailable when the page is refreshed and the sql query is run. The SQL connection will throw an error showing the database is unavailable. The same issue will occur if the query runs too long and a timeout exception is thrown.

My question... Is there a way to wrap the {sql-query} macro statement and catch the SQL error? The best case would be to catch the error and then NOT refresh the page. If that is not possible, then maybe have the page show 'No data'.


Answers:
author: hsuhailah
body: Looks like this isn't possible at the moment, but I'd suggest you to raise an improvement request at the plugin's issue tracker - [https://studio.plugins.atlassian.com/browse/SQL](https://studio.plugins.atlassian.com/browse/SQL.). Hope this helps!


Tags: addon-org.swift.confluence.sql

ms-sql

sql
FDA quality system in Confluence
Asked by Arianna Sunbear:

Hi all -

I am interested in using Confluence for my organization -- I would like to find out if anyone has set up an FDA-style quality system in Confluence. Of special interest is: how would one handle managment approvals within such a system?

Any and all comment is welcome and appreciated!


Answers:
author: Gorka Puente _Appfire_
body: Hi @Arianna Sunbear,

We released a document that describes how some of our customers ([Comalatech](http://www.comalatech.com/)) achieve compliance with the [FDA Title 21 CFR Part 11 regulatory requirements for Electronic Records and Electronic Signatures](http://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=11) using [Comala Workflows](https://marketplace.atlassian.com/plugins/com.comalatech.workflow).

You can find it [here](https://wiki.comalatech.com/display/CW/Comala+Workflows+FDA+Title+21+CFR+Part+11+Compliance+Statement). Check it out and let us know what do you think. If you are also interested in ISO 9001, please contact us through our [support system](https://comalatech.zendesk.com/hc/en-us).

Kind regards,

Gorka


author: Matteo Gubellini _SoftComply_
body: Hi Arianna,

We have just released an eQMS plugin for Confluence with a full integrated quality system for Medical Devices.

<https://marketplace.atlassian.com/plugins/ee.softcomply.qms.confluence-blueprints/server/overview>

Regards

Matteo


author: Ellen Feaheny [AppFusions]
body: Cross-linking the question with this:

[https://answers.atlassian.com/questions/151613/confluence-for-fda-regulated-document-management](/questions/151613/confluence-for-fda-regulated-document-management)


author: Ellen Feaheny [AppFusions]
body: Hello Ari

Happy to discuss this with you -

On a sep note, we have a plugin to also help meet your [FDA compliance needs in JIRA](https://marketplace.atlassian.com/plugins/com.appfusions.jira.plugins.electronic-signature-plugin). Maybe you want to check that out in meantime.

Best,

Ellen  
ellen@appfusions.com


Tags: compliance
How do I insert a jira issue in confluence OnDemand?
Asked by Martin Scott:

My OnDemand set up is

* JIRA
* GreenHopper
* Confluence
* FisheEye/Crucible
* Gliffy

I cannot seem work out how to reference JIRA issues in confluence.

The documentation is confusing around this it seems to jump between documentation that covers OnDemand and documentation that is not applicable.

It suggests that JIRA issues can be inserted in confluence using the 'Insert JIRA Dialog', I can't find any icon or menu item that lets me insert JIRA issues.


Answers:
author: SimonS
body: Hey gamingo!

Sorry for the confusion in this - to insert a JIRA issue, just click the "insert" button while editing a page:

<http://i.imgur.com/Fmqcd.png>

It's an option in the "insert" option list.

-Simon

![](http://imgur.com/Fmqcd)

comments: author: Martin Scott
body: JIRA Issues were not appearing in the insert list. Although they now are as the last item on the list.


Tags: cloud

confluence-cloud