I'm trying to create a Joomla module for typical CSS cards, but I want to make the number of cards dependent on a number input from the user. For example the user wants 5 cards so in the parameter field "number of cards" he puts '5'.

Now he has to choose the text and logo for each card he wants, but how can I 'spawn' parameter values during runtime?

I could just put a set number of cards in and define the corresponding parameters in the modules XML, but is there a way to do it like I want to?


1 Answer 1


I can't say exactly how to make your question, but I used something similar to show a field conditioned to the value of another field in the 'showon' attribute with XML Path Language (XPath). I believe it is something similar. You can find out more at the link:


  • To be honest I have no idea how to achieve what I wanted with what you provided. Could you maybe explain or elaborate? Jun 19, 2022 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.