-
AuthorPosts
-
June 24, 2013 at 8:42 pm #188470
How can I change style of result page?
i.e. this is same template with smaller titles:
http://demo.gavick.com/free/may2012/index.php/k2-tags/2011-08-04-23-47-02/latest-items-two-columnsand also I need to hide some “Extra fields” from the results page.
I will appreciate if you can support
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
June 25, 2013 at 3:08 am #496788Hi Serhatnarin,
Please look at the Customize Layouts tab in the JA K2Filter document http://www.joomlart.com/forums/topic/userguide-ja-k2-filter-package-for-joomla-2-5-3-0/ and change style as you wish
Hope this helps.
Regards
June 25, 2013 at 10:19 am #496864Yes I did read and installed as instructed.
Now extra fields are not shown at all.
And there is nothing about selecting the extra fields to show in results page.June 25, 2013 at 4:11 pm #496897Please can you let me know whether we can select which extra fields we want to show in results page or no?
i.e. I am using a google map plugin so I have fields for coordinates… I want to hide this in results page….
Are you planing to add this function in coming version? when?
Just like in filter module let us select which extra fields to be shownHeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
June 26, 2013 at 10:16 am #497017Hi,
<blockquote>Please can you let me know whether we can select which extra fields we want to show in results page or no?
i.e. I am using a google map plugin so I have fields for coordinates… I want to hide this in results page….
Are you planing to add this function in coming version? when?
Just like in filter module let us select which extra fields to be shown</blockquote>
Unfortunately, this featured could not add to JA K2Filter setting, because the result page depends on K2 category layout. So that i can only suggest you to achieve this task on your site as below:
– Open file category_item.php
– Find code
<?php if($extraField->value != ''): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<?php if($extraField->type == 'header'): ?>
<h4 class="catItemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
<?php else: ?>
<span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
<span class="catItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
<?php endif; ?>
</li>
<?php endif; ?>
and replace it to
<?php $ex_ignore = array('size', 'color', 'price');?>
<?php if($extraField->value != '' && !in_array(strtolower($extraField->alias), $ex_ignore)): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
<?php if($extraField->type == 'header'): ?>
<h4 class="catItemExtraFieldsHeader"><?php echo $extraField->name; ?></h4>
<?php else: ?>
<span class="catItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
<span class="catItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
<?php endif; ?>
</li>
<?php endif; ?>
Hope this helps.Regards
1 user says Thank You to HeR0 for this useful post
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by HeR0 11 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum