Skocz do zawartości

[resources.invisionpower.com - pliki] IP.CCS > How to set up your website link to show as active when in CCS


Rekomendowane odpowiedzi

Opublikowano

For the purposes of this article, assume that your CCS website is at www.yoursite.com and that your forums are at www.yoursite.com/forums.

  • Log in to the ACP.
  • Browse to to the System tab > System Settings > System > General Configuration.
  • Enter a value in the setting for "Website Name", such as "Home".
  • Enter a value in the setting for "Website Address". Since we've said earlier that your site is at www.yoursite.com, enter "http://www.yoursite.com/".
  • Save the settings.
  • Browse to the Look & Feel tab. Click on the skin set you want to apply this edit to. (You will need to repeat this for each skin set you want to apply this change to.)
  • Click on "globalTemplate" in the left column.
  • Find:
                            <if test="showhomeurl:|:$this->settings['home_url']">
                               <li id='nav_home' class='left'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li>


    </if>

  • Replace with:
                            {parse variable="ccsActive" default="" oncondition="IPS_APP_COMPONENT == 'ccs'" value="active"}
                           <if test="showhomeurl:|:$this->settings['home_url']">
                               <li id='nav_home' class='left {parse variable="ccsActive"}'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li>
                           </if>

  • Save the skin set.

Edit complete. :(Wyświetl pełny artykuł

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.