Hello,
I’m currently trying to write a xhtml-macro Plugin and finding it pretty difficult to figure out how to customize anything.
What I’m trying to do is make the user select a space and then make a list of all pages in there(as another input field, or many).
I thought maybe this video would help me: https://www.atlassian.com/company/about/events/atlascamp/2010/day2/making-confluence-macros-easy
The guy kinda teases parameter “dependencies” but I have no clue how to use this, or if it even fits my needs.
I have somthing like this in mind:
var jsOverrides = {
"fields" : {
"string" : {
"Bereich" : function(params){
var options ={
}
var somefield = AJS.MacroBrowser.ParameterFields["confluence-content"](params, options);
field.setValue(somefield.name);
return field;
}
}
}
};
AJS.MacroBrowser.setMacroJsOverride(“thisParamMacro”, jsOverrides);
But I am actually not that good with JavaScript and can’t find any Atlassian documentations on this… really disappointing.
If there are Java solutions I would gladly take them as well.
Thanks in advance.