9yN75.png
Resource icon

Tabbed Options

#1
ahmet cemal submitted a new resource:

Tabbed Options - Add tabs to your addon's options page

This guide will allow you to have a single option group for all your options, separating them into tabbed sections rather than forcing users to change option groups.

Examples
View attachment 21154
View attachment 21153



Code Event Listener
Event:
templater_macro_pre_render
Event Hint: admin:eek:ption_macros:eek:ption_form_block
Execute Callback: Your\Namespace\XenForo2\EventListener\MacroRender :: preRender
PHP Code:


PHP:
<?php

namespace...
Read more about this resource...
 

Similar threads

swift

+Lifetime VIP+
ViP
True Member
+Member+
Registered
#2
ahmet cemal updated Tabbed Options with a new update entry:

HTML clean-up, universal template

If you use this in your add-on, you probably use it in multiple. Changing the template is a pain for each of them, so now the template has been made 100% universal, with the configuration switched to the PHP code.

I've also updated the guidelines for the listener to use a single Listener.php file instead of a new file per listener, it doesn't really matter but it's a standard I use so :p

The main core of the HTML has also had code duplication reduced thanks to @truonglv ๐Ÿ‘
Read the rest of this update entry...
 

Similar threads

Top