• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

repeating field

Zephyr

Well-known member
#1
Hello, I can create options XenForo but I would like the user to add fields.

Repeating field.



==>





Is there a class in XenForo ready to repeating field please ? :)
As I created a slideshow and I would like to add autan field I want without having to create new options.


 

Chris D

XenForo developer
Staff member
#2
You can try checking the settings of that option by clicking the "edit" icon next to it.

You'll notice that the option type is a PHP Callback defined as:

XenForo_Option_CensorWords::renderOption

So you'll need to check out the following file to see how that is achieved:

xenforo-root/library/XenForo/Option/CensorWords.php

There is a function in there called renderOption.

You could use that as a starting point.