-
AuthorPosts
-
mazhar shah Friend
mazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
April 21, 2016 at 6:27 am #920828Hi 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:
- Which k2 CATEGORY listing template file do I need to adjust? (i want to use the current example – category list of doctors)
- Will there be any problems with the K2 Filter component
- 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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
April 25, 2016 at 3:20 am #922327Hi,
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 Friendmazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
April 25, 2016 at 6:58 am #922360Hi 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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
April 26, 2016 at 2:47 am #922747 -
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by Luna Garden 8 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum