- Posts: 5
- Thank you received: 0
Page class not showing applied CSS class in site
- nitinvishi
- Topic Author
- Offline
- New Member
Less
More
12 years 5 months ago #789
by nitinvishi
Page class not showing applied CSS class in site was created 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
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.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 5 months ago #792
by andrea_4g
Replied by andrea_4g on topic Re: Page class not showing applied CSS class in site
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 = ...)
and edit file components/com_customproperties/views/show/tmpl/default.php
change line 337 from :
to
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);
change line 337 from :
Code:
<div class="blog">
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
Less
More
- Posts: 5
- Thank you received: 0
12 years 3 months ago #890
by nitinvishi
Replied by nitinvishi on topic Re: Page class not showing applied CSS class in site
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