Phil7789 Posted May 21, 2019 Posted May 21, 2019 Hey there, I have a small question about the URL the main logo points to. In the template "logo" href attribute is set with {setting="base_url"}. I now want to change that link within some (or all) applications to link back to that app and not to the root path/ default app. So if I'm in the forum I want to get /forum, in the gallery /gallery and e.g. in the calendar the link should be /calendar (the blog application is our default app). Is there any way to do this with stock IPS features or would this require some coding? Thanks in advance for any help Phil
Martin A. Posted May 22, 2019 Posted May 22, 2019 {{$app = \IPS\Dispatcher::i()->application->directory;}} {{$url = $app != 'core' ? "app={$app}" : 'app=core&module=discover&controller=streams';}} <a href='{url="{$url"}' .....> This works in all apps but the core, which would go to the contact us form. That's why I put the URL to the activity stream in there.
Phil7789 Posted May 23, 2019 Author Posted May 23, 2019 Thanks for the hint! I'll give it a shot and see what I can accomplish :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.