This plugin contains macros which allow finer control over the layout (or composition) of a page.
The macros in this package use CSS and JavaScript (a.k.a. ECMAScript) extensively. The macros generally don't do anything other than allow you to control how and when page content is displayed.
A really neat macro.
it would be nice if, instead of using a complicated deck/c...
A really neat macro.
it would be nice if, instead of using a complicated deck/card hierarchy for nested cards, you were able to tell the page to convert heading tags into cards, so that:
Hi Vincent,
From reading your issue report I'm not entirely clear what you are ...
Hi Vincent,
From reading your issue report I'm not entirely clear what you are trying to achieve. Are you using the Composition macros in the 'Navigation' page while using the Left Navigation theme, or something else entirely?
Sorting this issue out in comments is not the best approach for several reasons. It would be best if you signed up for an account at the JIRA tracker above and create a bug report there with more details on the nature of the problem.
Hi,
I'm using Ajax to display a "Loading" message while the page is loading in ...
Hi,
I'm using Ajax to display a "Loading" message while the page is loading in the background, but when the page is displayed all deck/cards elements on the page are not showing.
Everything else works fine.
Any ideas why that happens? Not sure if this is because of the composiiton macro.
Decks and cards use JavaScript in the background to arrange and render the cards...
Decks and cards use JavaScript in the background to arrange and render the cards. Most likely, your ajax is interfering with the initialisation process.
Try adding something like this to your 'done loading' JavaScript code:
if (Behaviour) {
Behaviour.apply(document.body);
}
It may not be exactly correct. Also, if you're just hiding a specific <div> tag, you can pass that in instead of 'document.body'.
Hi David,
thank you for the quick response.
When I try to use the code you ind...
Hi David,
thank you for the quick response.
When I try to use the code you indicated I get a "Behaviour is not defined" error message.
The following is the Ajax code I'm using. I also tries to include the 3 .js files indicated in http://www.randombits.org/x/ugo but that didn't work either.
var page = "$body";
function loadPage() {
var h = document.getElementById('contentContainer')
h.innerHTML = "Loading data.... Please wait...."var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
// Something went wrong
alert("Your browser broke!");
returnfalse;
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
var a = document.getElementsByTagName('body');
a[0].innerHTML = ajaxRequest.responseText;
}
}
ajaxRequest.open("GET", page, true);
ajaxRequest.send(null);
}
}
window.onload=loadPage;
Hi David,
i havent a Jira-accout on your site. So i post an issue here. There i...
Hi David,
i havent a Jira-accout on your site. So i post an issue here. There is something missing within the css to display the cards (tabbed) correctly in Internet Explorer (Firefox works fine).
we are using version 2.6.2. I knew that Composition plugin is compatible fr...
we are using version 2.6.2. I knew that Composition plugin is compatible from Confluence v2.3 to v2.5.8. still I am able to use this plugin in my version 2.6
Comments (20)
Nov 02, 2005
Guy Fraser says:
For an example of the extremes that you can take the deck/card macros to, check ...For an example of the extremes that you can take the deck/card macros to, check out http://adaptavist.com
Mar 13, 2006
Dan Hardiker says:
This plugin is now available in the Confluence Repository Client.This plugin is now available in the Confluence Repository Client.
Nov 30, 2006
James Mortimer says:
A really neat macro. it would be nice if, instead of using a complicated deck/c...A really neat macro.
it would be nice if, instead of using a complicated deck/card hierarchy for nested cards, you were able to tell the page to convert heading tags into cards, so that:
{format-heading-as-cards} h1. something h2. alpha h2. beta content h1. someting elsewould render as the following card (excuse the approximate card formating):
Options could specifiy what level to 'card' versus traditional heading layouts.
Feb 14, 2007
Vincent Thoulé says:
Hi David, As the mentioned Issues Tracker (http://jira.adaptavist.com/browse/PO...Hi David,
As the mentioned Issues Tracker (http://jira.adaptavist.com/browse/POSI) required account, I post my issue here ...
Have a look on CONF-7850, where I describe a conflict between composition macros used in Navigation page and Normal pages.
Rgds
Vincent
Feb 14, 2007
David Peterson [CustomWare] says:
Hi Vincent, From reading your issue report I'm not entirely clear what you are ...Hi Vincent,
From reading your issue report I'm not entirely clear what you are trying to achieve. Are you using the Composition macros in the 'Navigation' page while using the Left Navigation theme, or something else entirely?
Sorting this issue out in comments is not the best approach for several reasons. It would be best if you signed up for an account at the JIRA tracker above and create a bug report there with more details on the nature of the problem.
David
Apr 25, 2007
Christopher Christophorou says:
Hi, I'm using Ajax to display a "Loading" message while the page is loading in ...Hi,
I'm using Ajax to display a "Loading" message while the page is loading in the background, but when the page is displayed all deck/cards elements on the page are not showing.
Everything else works fine.
Any ideas why that happens? Not sure if this is because of the composiiton macro.
Thanks,
Chris
Apr 25, 2007
David Peterson [CustomWare] says:
Decks and cards use JavaScript in the background to arrange and render the cards...Decks and cards use JavaScript in the background to arrange and render the cards. Most likely, your ajax is interfering with the initialisation process.
Try adding something like this to your 'done loading' JavaScript code:
if (Behaviour) { Behaviour.apply(document.body); }It may not be exactly correct. Also, if you're just hiding a specific <div> tag, you can pass that in instead of 'document.body'.
Apr 26, 2007
Christopher Christophorou says:
Hi David, thank you for the quick response. When I try to use the code you ind...Hi David,
thank you for the quick response.
When I try to use the code you indicated I get a "Behaviour is not defined" error message.
The following is the Ajax code I'm using. I also tries to include the 3 .js files indicated in http://www.randombits.org/x/ugo but that didn't work either.
Jul 17, 2007
John Moiraskik says:
Hi David, i havent a Jira-accout on your site. So i post an issue here. There i...Hi David,
i havent a Jira-accout on your site. So i post an issue here. There is something missing within the css to display the cards (tabbed) correctly in Internet Explorer (Firefox works fine).
Just add
to the following style class:
.deck .cards.tabbed { border: 1px solid #339999; }Then scroll bars will correctly be displayed and there isnt a tab overflow if there is to much content in a tab.
cheers
Nov 01, 2007
Pranav Olkar says:
Can you please tell when this plugin will be available for version 2.6 ?Can you please tell when this plugin will be available for version 2.6 ?
Nov 26, 2007
Landis Linford says:
I'm getting the following error message: Error formatting macro: composition-se...I'm getting the following error message:
Error formatting macro: composition-setup: java.lang.IllegalStateException: zip file closed
Any way to get this to work correctly? The plugin is installed on our system.
Nov 26, 2007
Landis Linford says:
Never Mind. I uninstalled and reinstalled the plugin and it's working just fine...Never Mind. I uninstalled and reinstalled the plugin and it's working just fine.
May 22, 2008
Mark says:
Seems to not work in 2.8 - I get nothing where I used to have tabs.Seems to not work in 2.8 - I get nothing where I used to have tabs.
Jun 26
Carolina Niebres says:
Any news on when it will work for 2.7 and above?Any news on when it will work for 2.7 and above?
Jul 08
Brian Bukowski says:
This is a great plugin. Is there any plans to release a new version that's...This is a great plugin. Is there any plans to release a new version that's compatible with 2.7? We would GREATLY appreciate it.
Jul 16
Dhana Lakshmi Marothu says:
we are using version 2.6.2. I knew that Composition plugin is compatible fr...we are using version 2.6.2. I knew that Composition plugin is compatible from Confluence v2.3 to v2.5.8. still I am able to use this plugin in my version 2.6