Changing title in jqadm to be dynamic
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Changing title in jqadm to be dynamic
I was able to get my own version of the index.blade.php for the admin screen working based on another post. I was hoping to have the title generated based on the site label. How would I get that in the index.blade.php? I tried using the app() and app('aimeos-context') but neither seemed to return the actual label (not the word "default", but the label for the site: "My Site")
Thanks!
Thanks!
Re: Changing title in jqadm to be dynamic
Try this code:
Code: Select all
app( 'aimeos.context' )->get( false )->locale()?->getSiteItem()?->getLabel() ?: 'Aimeos admin interface'
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Changing title in jqadm to be dynamic
Yep, that worked great. I missed the get(false) when I was trying to do it myself.