Jump to content

Code hook question


WP V0RT3X

Recommended Posts

Posted

Good morning everybody,

what I am trying to do is, I want to assign a theme to an application. So when I go to page xy, the theme changes to ID2 and when I go back to the forum or whatever, it automatically switches back to the standard theme, for example ID1.

Usually this is no problem and works fine when I simply add \IPS\Theme::switchTheme(2); to the Application.php, but in this case it's not possible, because the file is cubed.

I already tried and searched the forums but sadly didn't get it to work properly yet. Don't know if it's the conditional (\IPS\Dispatcher::i()->application->directory === 'theapp') or an issue with my hook settings at all.

Would be great, if someboy could help me out with this :)

Best regards

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...