youngmon/atlassian-qna huggingface dataset:
I hate the wiki markup
Asked by nwsd02:

I can't stand this wiki markup and how it behaves. I know HTML and CSS but this sh\*t is aweful.

I want to wrap an image in a div with a class

{div:class=header}!https://confluence.workday.com/download/attachments/106074275/sales-club-header-2012.jpg!{div}

done.

then I view the page and this sh\*t happens:

```
<p></p><div class="header></div>!https://confluence.workday.com/download/attachments/106074275/sales-club-header-2012.jpg!<p></p>



```


Answers:
author: David at David Simpson Apps
body: If the image is attached to the current page, try

```
{div:class=header}!sales-club-header-2012.jpg!{div}
```

Otherwise, perhaps

```
{div:class=header}{img:src=/download/attachments/106074275/sales-club-header-2012.jpg}{div}
```

Or perhaps if you have the HTML macro...

```
{html}  <div class="header">    <img src="https://confluence.workday.com/download/attachments/106074275/sales-club-header-2012.jpg" />  </div>{html}
```

Aside: Wiki markup is an aquired taste and isn't for everyone.

comments: author: David at David Simpson Apps
body: Check the update ;-)


author: nwsd02
body: thank you I will try.


author: David at David Simpson Apps
body: Nope. I get the login screen -- Perhaps share a screenshot ;-)


author: nwsd02
body: second one worked, but still not the result I wanted:

<https://confluence.workday.com/display/sales/Sales+Club+2012>

can you view this? it's prematurely ending my div tags. I have a container wrapping the header and the deck, and its just picking the header div's end tag to end the container div. WHY? ugh.


author: David at David Simpson Apps
body: If you're nesting {div} macros, you might be asking for trouble.

If you have admin access, you could just wrap the correct HTML in a user macro -- that's likely to fix things up for you quicker :)


author: nwsd02
body: Thank you. I'll talk to my admin then.


author: nwsd02
body: Screenshot1 shows the firebug code that is prematurely closed off after the header div.

![](http://www.workday.com/Images/screenshots/screen2.jpg)

![](http://www.workday.com/Images/screenshots/screen1.jpg)


Tags: markup

wiki
Receiving Error with Team Calendar Macro
Asked by Craig Hylwa:

I am receiving the following error when addring the team caledar marco to a page and then previewing it

It is a red warning label with the following text:

Error(s) occured.

* error

How do I correct this?


Answers:
author: Craig Hylwa
body: This question was resolved via Technical Support. The solution was to uninstall and reinstall the Team Calendar Plugin.


author: hsuhailah
body: This issue could also be due to the configured Base URL in General Configuration does not matched with the path/link used to access Confluence via the browser.


author: Joe Clark
body: Could you please check your Confluence log file for any additional error information? (see <http://confluence.atlassian.com/display/DOC/Working+with+Confluence+Logs>)
How to make Heading 2 a custom color for a space?
Asked by Craig Hylwa:

I would like to make "Heading 2" a custom color for an entire space. How can this be accomplished?


Answers:
author: David at David Simpson Apps
body: Browse to **Browse \| Space Admin \| Look \& Feel \| Stylesheet**

Add the following style:

```
#com-atlassian-confluence h2 {  color: hotpink;}
```

...or use the [standard hexadecimal colours](http://www.colorschemer.com/online.html).

comments: author: Joe Clark
body: I think I might have to make hot pink the next [System Favourite Colour](http://stackoverflow.com/questions/329726/favourite-colour-myrtle) :-)


author: David at David Simpson Apps
body: Can we have a checkbox to enable **Comic Sans** throughout too?

Hotpink + Comic Sans = Lovely!


author: Craig Hylwa
body: Thanks for the help, had no problem to see that it worked. I will now select another color!
Confluence 4.1 how to conditionally show content ?
Asked by John Bercik:

In Confluence 4.1 is there a "show-if" or other ways to conditionally show content like for pdf printing.


Answers:
author: David Peterson
body: In fact, the new, Confluence 4.0 and 4.1 compatible version ov the Visibility Plugin has just been released today. You should be able to find it in the UPM. Enjoy!Regards,David


author: Thomas Schlegel
body: Hi,

there is a plugin called "CustomWare Visibility Plugin". They have macros for this (show-to, show-if, hide-if, hide-from). Unfortunately, it is not yet available for Confluence 4.x

Cheers

Thomas

comments: author: John Bercik
body: It seems a lot of functionality was lost in 4 so far with so many plugins not making the transition and dropping wiki markup.


author: Thomas Schlegel
body: The CEO of Customware said three days ago " It should be out in a couple of weeks." (<http://community.customware.net/customware/topics/visibility_plugin_and_confluence_4>)
The Page Tree is missing from the Left navigation, how would I restore it?
Asked by Tim Wheeler:

Hi, I am using the Documentation Theme, in the customisation Page Tree is enabled. My wiki used to show it.  
Now I still see the left section and the page tree control seems to load for about one second. During that time I see "Loading...". then it dissapears and the whole area is blank except for the search box at the top.  
I have confluence ondemand. I have tried changing themes and then changing back. still not working. Appreciate any help restoring this functionality. Thanks.


Answers:
author: Tim Wheeler
body: Thanks for your help here. In the end the problem was that I had created a new wiki home page. That page did not have any child documents. It seams that the left nav is built from the home page rather than the actual space content. The reason I created a new home page rather than edit the exiting one was to remove the previous version which I didn't want public.

comments: author: Derek Hansell
body: Thank goodness this thread is here. But can we talk about how dumb a design decision that is?


author: Lily Tsui
body: Agreed, thank God for this thread. I was really confused. I created a new Overview page and the whole Page Tree disappeared while on the Overview page. But if I somehow had an old URL to a page in the tree page I could see the hierarchy. Either way, I changed back to the original overview page now and the tree is back! Thanks for the help.


author: Rondel Ward
body: This same thing happened to me. For us the solution was to Go into the Confluence Admin section-\>Look under plugins for the Documentation theme plugin-\> Enable all modules for the documentation theme. For our implementation, the 'Velocity Helper' had become disabled when we installed some other plugin.

Check out some other possible solutions here :<http://ffeathers.wordpress.com/2010/03/27/why-dont-my-pages-appear-in-the-documentation-themes-table-of-contents/>


author: Tim Wheeler
body: Hi Jamie. Yes I know about that icon. It will hide and show the left navigation area. The area is visible and shows the Search Box at the top. Hiding and Showing the left nav area works but the page tree still won't display.


author: JamieA
body: Just a punt, but have you tried clicking the little icon thing at top right? Looks like two rectangles, one grey, one white.


Tags: cloud

confluence-cloud
linking to "new blog post" page from wiki content
Asked by Masahiro Iwao:

Hello

Confluence: 4.1.2

Is it possible to make a link to "new blog post" (createblogpost.action) in wiki content body?

Currently I am making a link to [http://example.org/confluence/pages/createblogpost.action?spaceKey=space but](http://example.org/confluence/pages/createblogpost.action?spaceKey=space%C2%A0but) it depends on the context of Confluence which should be avoided.

I would like to make a relative link. And if possible populate the title of the new post with some template.

Thanks in advance.


Answers:
author: David at David Simpson Apps
body: I can't really guess the use case for this, but a user macro could be the way forward...

Browse to Confluence Admin \| Configuration \| User Macros

Add a new user macro...

```
## Macro title: New Blogpost## Macro has a body: N## Body processing: n/a## Output: HTML#### Developed by: David Simpson [AppFusions]## Date created: 2012-01-12## Installed by: My Name## This is an example macro## @param Title:title=Title|type=string|required=true|desc=The blogpost title#set ( $blogpostTitle = $generalUtil.urlEncode($paramTitle) )<a href="$req.contextPath/pages/createblogpost.action?spaceKey=$space.key&title=$blogpostTitle ">$paramTitle</a>
```

Further details: [http://minus.com/mKYmU0y0I#1o](http://minus.com/mKYmU0y0I#1o%C2%A0)

comments: author: Masahiro Iwao
body: Thanks. It worked and gave me a hint to develop macros.
From: Anonymous (Confluence)
Asked by Adolfo Casari:

Is there any option to change the from parameter in the daily summary email? Like DailyDigest, etc.

Confluence 3.X

Thank you.


Answers:
author: David at David Simpson Apps
body: You can set this globally (for all emails)...

Browse to **Confluence Admin \| Configuration \| Mail Servers \| Create SMTP Mail Server**

Set the from address to be just **Confluence**
Unable to get working attachments
Asked by Stephen Hoffmann:

Hello, when I attach a file, nothing shows an error, however, when I try to click on the file or a link to the file in a page, I get this URL:

[https://oururl/download/attachments/950284/Kyocera+OS+X+10.5%2B+Web+build+2011.08.09.mpkg.dmg](https://oururl/download/attachments/950284/Kyocera+OS+X+10.5%252B+Web+build+2011.08.09.mpkg.dmg)

And a File Not Found error.

The URL looks proper, but is it due to something not being configured or a improper character in the file name?


Answers:
author: Colin Goudie
body: Hey Steve, if you get real stuck maybe ping me if I still have access
Where is workflow info stored in Confluence database?
Asked by stuartu:

Does anyone know where workflow information is stored in the Confluence database (or in the (linux) file system if stored there?)

For example, if I hover over the "Approvals: Edited, Reviewed, Signoff", I get a popup as to who approved\|edited\|reviewed, and on what date, but I can't find this info in the database.

I am also unable to find where in the database how Confluence determines whether a document is 'Draft' or 'Published'. By querying a draft and published doc in the 'content' table, I see no difference. I thought this detail might be in 'content_perm' or 'content_perm_set', but I couldn't find any linking data for both types.

Perhaps this is stored in the filesystem? Any help much appreciated.

Thanks in advance


Answers:
author: stuartu
body: One of my collegues has just found it.

select \* from WIKI.os_propertyentry where entity_key like '%com.comalatech%' and ENTITY_ID = \<entity_id\>;

In the text_val field, you see

\<ApprovalChecks\>  
\<ApprovalCheck\>  
\<name\>Edited\</name\>  
\<version\>2\</version\>  
\<approvers\>  
\<Approver\>  
\<approved\>true\</approved\>  
\<user\>sgra0999\</user\>  
\<date\>2008-10-31 11:14:55.935 NZDT\</date\>  
\<comment\>Initial import from Word document without change\</comment\>  

...  
...


Tags: database

query

sql

wiki

workflow
Confluence 4.1 how to use macros in template,
Asked by simon roberts:

Another issue i have with 4.1 over 3.5 confluence.

I have a template that uses macros, specifically the visio macro

```
{visio:file=^classesmethods 1.vsd|width=500|height=500|pageTabs=true}
```

If i create a page from this template, the macro is contained in Wiki Mark-up rather than just adding the macro.

This means it cannot be configured correctly.

How do you add macros in 4.1 to templates?

Thanks


Answers:
author: David at David Simpson Apps
body: This should work as normal. Provided that the macro is Confluence 4.x compatible, it won't get wrapped in the wikimarkup macro.

For example a template containing this

```
{children:page=Home}
```

...will work just fine when you build pages based off of it. In this case, the **Home** page does need to exist though ;-)

In your case, the {visio} macro need to be Confluence 4.x compatible and it will likely throw an error as new pages don't generally have attachment when first created.

-- Hope this helps a bit.

comments: author: simon roberts
body: Thanks, that explains it. The macro works in every other way, just not via the template. cheers


author: claire.simonson@ci.stpaul.mn.us
body: Adding to the question - so how do you add a premade macro to a template? I'm in 4.1, would like to create a global template that includes the Attachments macro so my users don't have to figure it out for themselves. I can't see what's inside the Attachments macro, and the global template edit mode wants only wiki markup - so I'm stuck. Help would be appreciated!

-Claire


Tags: template
How to make LDAP-User available in Confluence
Asked by Robert Robert:

My Problem: we have a new confluence installation, conected with our LDAP. We want to create confluencegroups and add users to it. Since it is necessary to have at least one user-login, to have users available in Confluence, we are not able prefilling groups.

Are there other ways to get users from LDAP available to confluence without userlogin?


Answers:
author: Colin Goudie
body: Not totally clear on what you are asking, but hopefully this helps

Confluence will have whats called 'multiple user directories'

So one directory will be sourced from LDAP.

Another one (also the default one) is an internal user directory. Provided you haven't disabled this, you will ALWAYS then be able to log into Confluence to admin it and pull users from LDAP etc.., setup default permissions for groups from LDAP and so forth.

There is more details here - <http://confluence.atlassian.com/display/DOC/Configuring+User+Directories>


Tags: ldap
Table inside of a macro
Asked by Craig Hylwa:

Is there a way to copy a table that is inside of another macro (example: column macro) without copying the surrounding macro?


Answers:
author: Matt
body: You should be able to highlight the table with your mouse - i.e. click and drag until you have selected the whole table and then copy it to your clipboard and paste it where ever you like :)

comments: author: Craig Hylwa
body: Working On a Mac with Safari Browser

The table is nested in column macro

The column macro is nested in section macro

I highlight only the table then press \<command\>\<c\> to copy

When I paste what I have copied it pastes the table and the two surrounding macros, column and section even though I have only copied the table.

I just want the table not the two surrounding macros.


author: Craig Hylwa
body: Tried it on Firefox and it works as you have described it previously. Seems to be Safari related.


author: Graham Hannington
body: In the meantime, until this bug is fixed, you might like to use the built-in Web Inspector that comes with Safari (or similar "Firebug-like" extension) to delve under the hood of the rich text editor, select (just) the corresponding HTML table element (with class attribute value "confluenceTable"), copy it to the clipboard, and paste it wherever you want.

I've tried this in Safari 5.1.7 on Windows with Confluence 4.2:

1. Show the Develop menu in the Safari menu bar (if you haven't already): Preferences \> Advanced \> Show Develop menu in menu bar.
2. Select Develop \> Show Web Inspector.
3. Use the "magnifying glass" button (tooltip: "Select an element in the page to inspect it.") to select the table, or one of its descendant elements. (This is to display the roughly appropriate section of HTML in the HTML source view displayed by the Web Inspector, as a precursor to precisely selecting the table element in the following step. In practice, I have not been able to select the table using the magnifying glass; I select the first th, or first td, element.)
4. In the HTML source view displayed by the Web Inspector, right-click the table start tag, and then click "Copy as HTML".
5. An unfortunate kludge (to get the content into the appropriate internal clipboard format, so that it does not paste as HTML source code): open the Snippet Editor (Develop \> Show Snippet Editor), and paste the HTML in the top pane. Then select the rendered content (the table) shown in the bottom pane, and copy it to the clipboard.
6. In the rich text editor, paste the table where you want it.

Firebug in Firefox doesn't involve that kludge in step 5, so I thought I'd try "Firebug Lite" in Safari, but the "Inspect" button didn't work for me. I'm moving on.

I've previously added some related comments (about "under the covers" editing in the rich text editor) to the [Confluence 4 editor - Customer Feedback](https://confluence.atlassian.com/display/DOC/Confluence+4+Editor+-+Customer+Feedback) page that you might find interesting.


author: Matt
body: Looks like you found a bug, Craig. Specifically in Safari. I've raised this with our Development Team. I could not reproduce this in Chrome of Firefox.
Migrate Lost Attachments
Asked by Alex Valderrama:

We recently discovered that we 'lost' five months worth of attachments. We found our 'lost' attachments and now we want to be able to migrate them back into production. We want to have minimal interruption with our current users when we migrate our missing attachments. I'd like to setup a conference call with a technician that can assists with this issue.

Thanks!


Answers:
author: Nic Brough -Adaptavist-
body: I'd think about scripting it with Bob Swift's CLI - that way no-one will be interrupted as you upload them

\>I'd like to setup a conference call with a technician that can assists with this issue

Is this a direct question for Atlassian support? (if so, raise a support call). Or one of us in the community? (There's loads of experts and partners here who would help, albeit for some reward. I'll rule myself out though, tad busy, and I'd just use the CLI)


Tags: attachment

migration
Active directory authentication
Asked by krasimir kosev:

Hello,   

I have tried to integrate my current confluence installation with the Active Directory in the office. I was able to sync the accounts  
as objects- they become visible and they were recognized as active directory objects. However when I tried to authenticate with  
active directory credentials - then the confluence returned error that it is not able to find such account.   
What could be the reason for that and is the active directory authentication possible?  

BR  
Krasimir


Answers:
author: Colin Goudie
body: Very much so, See <http://confluence.atlassian.com/display/DOC/Connecting+to+an+LDAP+Directory>

You will need to specify at least one AD group to have 'use' permissions to Confluence as well.

Also, AD is not available in Ondemand as far as I know so update the tags on this question if you are actually referring to a behidn the firewall install (which it sounds like you are)


Tags: cloud

confluence-cloud
Wiki markup to wrap an image with an anchor tag
Asked by Steve Winton:

Hello!

I'm trying to wrap an image with a link i.e. so clicking the image will open the link, as per:

[![Example](http://placekitten.com/g/600/300)](http://www.example.com/ "Example.com")

How do I do that with Wiki markup in Confluence?

Cheers,

Steve


Answers:
author: Remo Siegwart
body: 1. Click **"Insert" =\> "Image"** in the editor toolbar and insert your image
2. Select the image and click **"link"** in the property panel
3. Click the **"Advanced"** tab and [insert your link with anker](http://confluence.atlassian.com/display/CONF40/Linking+to+Pages#LinkingtoPages-LinkingtoanAnchororHeading) into the **"link"** text input

See [Working with Anchors](http://confluence.atlassian.com/display/CONF40/Working+with+Anchors) for more information.

comments: author: Steve Winton
body: Not working for me unfortunately. When I click link on the property panel, I don't see an "Advanced" tab.

Could you provide the actual wiki markup these steps generated for you?


author: Remo Siegwart
body: Yep, another way would be to click **"Insert" =\> "Wiki Markup"** and then insert the following wiki markup:

```
[!your_attached_image.jpg!|Testpage#anchorname]
```

Hope this helps


author: Steve Winton
body: Thanks, worked a charm! :)


Tags: confluence-cloud

cloud

image

link
Local-reporter macro. Two (or more) labels
Asked by Michal Zebrowski:

I have a code on page:

```
{report-block}{local-reporter:value:label spec_cases > label:content|space=PUB}{content-filter:space=PUB|labels= +marine, +(algeria, dz)}{text-sort:content:title}{local-reporter}{report-body}h5.{report-info:content:title|link=true}{report-info:content:labels|link=true}{report-body}{report-block}
```

It works, but it's slow. It first chooses pages with 'spec_cases label', and then narrows results only to those pages with 'marine' label and either 'algeria' or 'dz' label (or both). The question is if it's possible to create something like that:

```
{report-block}{local-reporter:value:label (algeria, dz) > label:content|space=PUB}{content-filter:space=PUB|labels= +marine, +spec_cases}{text-sort:content:title}{local-reporter}{report-body}h5.{report-info:content:title|link=true}{report-info:content:labels|link=true}{report-body}{report-block}

```

The code above doesn't work of course.

I know I can use combining-reporter, but I'd like to avoid it.


Answers:
author: David Peterson
body: There's no way to do it with the 'value:label' option, or with {local-reporter}. I suspect the problem is that you can't filter labels to a specific space using 'value:label' - it will get all content with that label across all spaces initially.

I would suggest testing using {content-reporter} in this case. It has some performance issues currently (hopefully to improve for the next release of Reporting for Conf 4.0), but with labels it is often not too bad. Try this:

```
{content-reporter:labels=+(algeria, dz), +marine, +spec_cases|space=PUB}  {text-sort:content:title}{content-reporter}
```

See how that goes...

comments: author: Michal Zebrowski
body: Thanks for the answer.

Unfortunatelly content-reporter macro is way too slow. That's why I want to use local-reporter.


Tags: label

local-reporter