Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Serhat Narin Friend
    #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-columns

    and also I need to hide some “Extra fields” from the results page.

    I will appreciate if you can support

    HeR0 Friend
    #496788

    Hi 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

    Serhat Narin Friend
    #496864

    Yes 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.

    Serhat Narin Friend
    #496897

    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

    HeR0 Friend
    #497017

    Hi,

    <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

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  HeR0 11 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum