Page class not showing applied CSS class in site

  • nitinvishi
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
11 Anni 11 Mesi fa #789 da nitinvishi
Page class not showing applied CSS class in site è stato creato da nitinvishi
The Custom property layout option when activated on a menu link doesn't show the "page class" applied. While the same class works for "Link CSS style"

I want to activate different CSS style for pages on which custom property search is active (through custom property layout activation on a menu)


any solution

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
11 Anni 10 Mesi fa #792 da andrea_4g
This a a CP shortcoming. The problem will be fixed with the upcoming release of CP 2.2.3.

Here's what you have to fix the problem by yourself

Edit files components/com_customproperties/views/show/view.html.php
Add the following lines after line 39 ($params = ...)
Code:
$app = JFactory::getApplication('site'); $menuParams = new JRegistry; if ($menu = $app->getMenu()->getActive()) { $menuParams->loadString($menu->params); } $params->merge($menuParams);
and edit file components/com_customproperties/views/show/tmpl/default.php
change line 337 from :
Code:
<div class="blog">
to
Code:
<div class="blog<?php echo $this->params->get('pageclass_sfx');?>">

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • nitinvishi
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
11 Anni 9 Mesi fa #890 da nitinvishi
Thanks for the code. It solved the problem :-)

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.155 secondi