Page class not showing applied CSS class in site

  • nitinvishi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 5 months ago #789 by 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

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #792 by 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');?>">

Please Log in or Create an account to join the conversation.

  • nitinvishi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #890 by nitinvishi
Thanks for the code. It solved the problem :-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.154 seconds