Jump to content

Different custom header image apps


Arash.Ranjbar
 Share

Recommended Posts

Hi, that's pretty easy, this should help you ...

{{if \IPS\Request::i()->app == "cms"}}
CMS
{{elseif \IPS\Request::i()->app == "forums"}}
Forum
{{elseif \IPS\Request::i()->app == "downloads"}}
Downloads	
{{elseif \IPS\Request::i()->app == "gallery"}}
Gallery
{{elseif \IPS\Request::i()->app == "blog"}}
Blog
{{elseif \IPS\Request::i()->app == "calendar"}}
Calendar
{{elseif \IPS\Request::i()->app == "nexus"}}
Nexus
{{else}}
Sonstwo
{{endif}}

 

Link to comment
Share on other sites

hi again

I use this way:

.hero-image {
  {{if \IPS\Request::i()->app == "forums"}}
  background-image: url("https://example.com/5i4g1gqwh/Untitled-1.jpg");
  {{elseif \IPS\Request::i()->app == "downloads"}}
  background-image: url("https://example.com/5i4g1gqwh/Untitled-2.jpg");
  {{endif}}
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 500px;
}

but it doesn't work

Link to comment
Share on other sites

  • V0RT3X locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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

Important Information

Um unsere Webseite für Sie optimal zu gestalten und fortlaufend verbessern zu können, verwenden wir Cookies. Durch die weitere Nutzung der Webseite stimmen Sie der Verwendung von Cookies zu. Weitere Informationen zu Cookies erhalten Sie in unserer Privacy Policy.