- Posts: 404
COMMUNITY FORUM
Displaying certain Extra Fields on Category Item
- Odin Mayland
- Offline
- Platinum Member
Less
More
11 years 5 months ago #102326
by Odin Mayland
Replied by Odin Mayland on topic Re: Displaying certain Extra Fields on Category Item
I can get it to work in item.php but not in category.php
Here is the post about it from another thread:
getk2.org/community/New-to-K2-Ask-here-first/161714-SOLVED-Tutorial-for-extra-fields#174031
Here is the post about it from another thread:
getk2.org/community/New-to-K2-Ask-here-first/161714-SOLVED-Tutorial-for-extra-fields#174031
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 5 months ago #102327
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Displaying certain Extra Fields on Category Item
Hello,
You should look at this thread .
Also make sure you are using $this->item or $item-> correctly.
PS. I 'm sure it's a typo but you need to edit category_item.php not category.php for extrafields in category listings.
You should look at this thread .
Also make sure you are using $this->item or $item-> correctly.
PS. I 'm sure it's a typo but you need to edit category_item.php not category.php for extrafields in category listings.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
- Offline
- Platinum Member
Less
More
- Posts: 404
11 years 5 months ago - 11 years 5 months ago #102328
by Odin Mayland
Replied by Odin Mayland on topic Re: Displaying certain Extra Fields on Category Item
I will review the other threads.
I have attached a mockup of why I stil think the extrafields need to be in the category.php
I have attached a mockup of why I stil think the extrafields need to be in the category.php
Attachment not found
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 5 months ago #102329
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Displaying certain Extra Fields on Category Item
They still have to be inside the foreach loop if you want to use them inside category.php.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
- Offline
- Platinum Member
Less
More
- Posts: 404
11 years 5 months ago - 11 years 5 months ago #102330
by Odin Mayland
Replied by Odin Mayland on topic Re: Displaying certain Extra Fields on Category Item
Can you help me with the right code?
Here is an example page: 50.116.122.124/~goodwin/xjoomla/index.php/fast-packs
If I put the extrafield code at the bottom of category.php it displays as desired:
But I want it to appear as a header above the list of items. If I paste the same code in this location the extrafield php does not display:
Here is an example page: 50.116.122.124/~goodwin/xjoomla/index.php/fast-packs
If I put the extrafield code at the bottom of category.php it displays as desired:
Attachment not found
But I want it to appear as a header above the list of items. If I paste the same code in this location the extrafield php does not display:
Attachment not found
Please Log in or Create an account to join the conversation.