Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1880

Extension Writers Discussion • UCP: How to handle multiple modes

$
0
0
I've searched and found no examples of this. The one that someone pointed to is no longer available (php-studio).

I want my UCP to have two modes:

Code:

'modes'=> ['settings', 'gallery'],
I can't figure out how to enable/disable respective UI in my HTML. I thought this would work (or something like it):

Code:

{% if MODE == 'settings' %}<h2>{{ lang('SETTINGS') }}</h2>{% else %}<h2>{{ lang('UCP_BLOBLOADER_PHOTO_GALLERY') }}</h2>{% endif %}
Help please!

Statistics: Posted by tig_ — Sun Jan 26, 2025 10:30 pm



Viewing all articles
Browse latest Browse all 1880

Trending Articles