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
Community moderators have prevented the ability to post new answers.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.