Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Dynamic parameters

Deleted user July 31, 2015

Hello developers!

I have once more a question which hopefully can be answered by some of you guys.

I made a custom macro which uses a velocity template to render its content. It's working pretty good so far: I click on insert->custom macro, add the parameter which is later displayed when the macro has been added.

Now I want to have a dynamic number of parameters. Like choosing my macro to add and then I would like to have an "add parameter" button which adds a new parameter so I can enter some text to it which is later displayed on the site. Is this possible? I like the idea a lot and would be very glad when someone can help me with this.

Kind regards

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Andreas Purde August 11, 2015

Honestly I don't know but I think it is not possible using Velocity only. The only way I saw to manipulate parameters (not the number) is with plugins using JavaScript.

Sorry, Andreas

Deleted user August 12, 2015

Thanks for your reply. I already tried using JS but didn't get very far with it. I will go back to this later, right now I use one single parameter string which will be splitted by using Java. I can achieve what I wanted but it's really "ugly" in my opinion. Thanks again my dear nam twin.

TAGS
AUG Leaders

Atlassian Community Events