enhancement: warn admin when SEF URLs are disabled #97

Closed
opened 2026-05-22 03:30:32 +00:00 by jmiller · 1 comment
Owner

Description

The MenuslugField should display a warning or notice when SEF URLs are disabled in Joomla's Global Configuration, since the plugin's slug matching logic requires SEF to function.

Implementation

In MenuslugField::getOptions(), check Factory::getApplication()->get('sef') and prepend a disabled option with a warning message if false.

Files

  • src/src/Field/MenuslugField.php
## Description The `MenuslugField` should display a warning or notice when SEF URLs are disabled in Joomla's Global Configuration, since the plugin's slug matching logic requires SEF to function. ## Implementation In `MenuslugField::getOptions()`, check `Factory::getApplication()->get('sef')` and prepend a disabled option with a warning message if false. ## Files - `src/src/Field/MenuslugField.php`
jmiller added the joomlapriority: mediumenhancement labels 2026-05-22 03:30:32 +00:00
Author
Owner

Testing Steps -- SEF disabled admin warning

This is an enhancement request. Implementation needed before testing.

Expected behavior

  1. Go to System > Global Configuration > SEO -- set SEF URLs = No
  2. Go to System > Plugins > MokoJoomTOS
  3. Expected: A warning notice appears near the slug field explaining that SEF URLs must be enabled for path-based matching (Itemid fallback still works)

Pass criteria

  • Warning is visible when SEF is disabled
  • Warning does not appear when SEF is enabled
  • Warning text is translatable (uses language key)
## Testing Steps -- SEF disabled admin warning This is an **enhancement** request. Implementation needed before testing. ### Expected behavior 1. Go to **System > Global Configuration > SEO** -- set SEF URLs = No 2. Go to **System > Plugins > MokoJoomTOS** 3. **Expected:** A warning notice appears near the slug field explaining that SEF URLs must be enabled for path-based matching (Itemid fallback still works) ### Pass criteria - [ ] Warning is visible when SEF is disabled - [ ] Warning does not appear when SEF is enabled - [ ] Warning text is translatable (uses language key)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomTOS#97