- Posts: 15
COMMUNITY FORUM
Individual extra fields
- karlo
-
Topic Author
- Offline
- New Member
Less
More
12 years 5 months ago - 12 years 5 months ago #107363
by karlo
Individual extra fields was created by karlo
Hello
K2 2.6.2 Joomla 2.5.8
How can I add elsewhere category_item.php only individual extra fields.
When I use the code nothing happens.
Can someone show a sample code which is added some extra fields?
Thank you!
K2 2.6.2 Joomla 2.5.8
How can I add elsewhere category_item.php only individual extra fields.
When I use the code nothing happens.
<span class="catItemExtraFieldsLabel"><?php $this->item->extraFields->price->name; ?></span>
<span class="catItemExtraFieldsValue"><?php $this->item->extraFields->price->value; ?></span>
<span class="catItemExtraFieldsLabel"><?php $this->item->extraFields->manufacturers->name; ?></span>
<span class="catItemExtraFieldsValue"><?php $this->item->extraFields->manufacturers->value; ?></span>
Can someone show a sample code which is added some extra fields?
Thank you!
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
12 years 5 months ago #107364
by william white
Replied by william white on topic Re: Individual extra fields
if you are using the new syntax for displaying extra fields -
are your override files updated?
do you have extra fields set to show in the item view in category display?
are your override files updated?
do you have extra fields set to show in the item view in category display?
Please Log in or Create an account to join the conversation.
- karlo
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 15
12 years 5 months ago #107365
by karlo
Replied by karlo on topic Re: Individual extra fields
Yes, the display of additional fields in Item in category listings are allowed.
K2 template is copied to the templates/template/html/com_k2/templates/events.
Use and K2 - Css4K2
K2 template is copied to the templates/template/html/com_k2/templates/events.
Use and K2 - Css4K2
Please Log in or Create an account to join the conversation.
- DINALVA ROMANCINI
-
- Offline
- Senior Member
Less
More
- Posts: 41
12 years 5 months ago #107366
by DINALVA ROMANCINI
Replied by DINALVA ROMANCINI on topic Re: Individual extra fields
Hi... the code is woking for me...
You have to use it in the "category_item.php" file, or the "item.php".
Also, perhaps i'm not a php expert, I think that you are missing the "echo" in php. I mean IE:
Instead of:
You have to use it in the "category_item.php" file, or the "item.php".
Also, perhaps i'm not a php expert, I think that you are missing the "echo" in php. I mean IE:
Instead of:
Log in or Create an account to join the conversation.
- karlo
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 15
12 years 5 months ago #107367
by karlo
Replied by karlo on topic Re: Individual extra fields
Giu Tae Kim ,
Thanks, now it works!!! :woohoo:
Thanks, now it works!!! :woohoo:
Please Log in or Create an account to join the conversation.
- DINALVA ROMANCINI
-
- Offline
- Senior Member
Less
More
- Posts: 41
12 years 5 months ago #107368
by DINALVA ROMANCINI
Replied by DINALVA ROMANCINI on topic Re: Individual extra fields
Great :woohoo:
Please Log in or Create an account to join the conversation.