test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mazhar shah Friend
    #920828

    Hi Today i will purchase the JA K2 filter component. I just need some advice for the K2 category layout. The example is the Doctors in the joomlart demo. It lists the doctors and shows the extra fields under the main image in the listing.

    I am using a number of Extra Fields.

    A. I need for example 10 fields, all searchable using the JA K2 filter.

    B. However, when the items are listed in the CATEGORY view (like the doctors), I only want to show 3 or 4 fields under the picture. I understand i need to recode the K2 category display. The instructions are : Use this code:

    <!-- Call to prepare extra fields --> 
    <?php  
    //convertArray to use ids as key
    $extrafields = array();
    foreach($this->item->extra_fields as $item)
    {    
    $extrafields[$item->id] = $item->value;
    }   
    ?>

    AND THEN TO CALL EACH FIELD I USE (the 13 in the example is the field id)

    <?php echo $extrafields[13];?>

    I Need help with:

    1. Which k2 CATEGORY listing template file do I need to adjust? (i want to use the current example – category list of doctors)
    2. Will there be any problems with the K2 Filter component
    3. Which file do I need to adjust to display the same code in the K2 ITEM page ( I also want to display the extra fields in different areas of the page).
    Luna Garden Moderator
    #922327

    Hi,

    Sorry for this late response.

    Here is the clarify for your question:

    Which k2 CATEGORY listing template file do I need to adjust? (i want to use the current example – category list of doctors)

    In JA Healthcare, you can use K2 template name ‘doctor’

    Will there be any problems with the K2 Filter component

    No, JA K2 Filter works well on any templates.

    Which file do I need to adjust to display the same code in the K2 ITEM page ( I also want to display the extra fields in different areas of the page).

    For category view, edit file: templates/ja_healthcare/html/com_k2/doctors/category_item.php

    With Item view, edit file: templates/ja_healthcare/html/com_k2/doctors/item.php

    mazhar shah Friend
    #922360

    Hi Luna The thread shows you may have replied to to this, but i cannot see it. I bought the module yesterday and wanted to adjust the k2 listings as above. If you just tell me the k2 files to adjust i will do that. thank you.

    Luna Garden Moderator
    #922747

    Hi,

    Our post must be moderate before published, so you’ll see the post right after it was published.

    Now you can view my reply and ask me if you still get any confusion,

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

This topic contains 3 replies, has 2 voices, and was last updated by  Luna Garden 8 years, 8 months ago.

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