Skip to content

Add another Options page #476

Answered by timohubois
Iain-g asked this question in Q&A
Jan 10, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @Iain-g would suggest to add subpages to the existing two option pages. If you want use them, you can use the 3rd argument of the addGlobal and addTranslatable functions, to define the name of the subpage and the rest will be done automatically:

/* Create a Global Option subpage */
Options::addGlobal('NameOfTheComponent', [], 'NameOfTheSubpage');

/* Create a Translatable Option subpage */
Options::addTranslatable('NameOfTheComponent', [], 'NameOfTheSubpage');

Does this match your expectations?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Iain-g
Comment options

Answer selected by Iain-g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants