- Posts: 3722
COMMUNITY FORUM
Hide extra field if value is empty
- william white
- Offline
- Platinum Member
Less
More
14 years 2 months ago #71734
by william white
Replied by william white on topic Hide extra field if value is empty
Please excuse the ning ediror as it stripped my reply
In item php and in the hack i see < div class = itemExtraFields and in the category_item.php i see< div class = catextrafields
In item php and in the hack i see < div class = itemExtraFields and in the category_item.php i see< div class = catextrafields
Please Log in or Create an account to join the conversation.
- ak2user
- Offline
- New Member
Less
More
- Posts: 19
14 years 2 months ago #71735
by ak2user
Replied by ak2user on topic Hide extra field if value is empty
Thanks for your reply.
Yes, itemExtraFields and catItemExtraFields need to be fine tuned.
Yes, itemExtraFields and catItemExtraFields need to be fine tuned.
Please Log in or Create an account to join the conversation.
- anntaj
- Offline
- New Member
Less
More
- Posts: 3
14 years 1 month ago #71736
by anntaj
Replied by anntaj on topic Hide extra field if value is empty
Hi,
I have tired all of these suggetions and I see no change at all - what could I be doing wrong?
Thanks
Ann
I have tired all of these suggetions and I see no change at all - what could I be doing wrong?
Thanks
Ann
Please Log in or Create an account to join the conversation.
- ak2user
- Offline
- New Member
Less
More
- Posts: 19
14 years 4 weeks ago #71737
by ak2user
Replied by ak2user on topic Hide extra field if value is empty
Here is a reply to this question I gave on another forum and a user reported successfully implementing these instructions. The editor here strips code so I attach it as a text file:
Please Log in or Create an account to join the conversation.
- Visual Impact Web Design
- Offline
- New Member
Less
More
- Posts: 12
13 years 11 months ago #71738
by Visual Impact Web Design
Replied by Visual Impact Web Design on topic Hide extra field if value is empty
Thank you heaps for this. It worked great!!
ak2user said:Here is a reply to this question I gave on another forum and a user reported successfully implementing these instructions. The editor here strips code so I attach it as a text file:
ak2user said:Here is a reply to this question I gave on another forum and a user reported successfully implementing these instructions. The editor here strips code so I attach it as a text file:
Please Log in or Create an account to join the conversation.
- michael neese
- Offline
- Junior Member
Less
More
- Posts: 37
13 years 10 months ago #71739
by michael neese
Replied by michael neese on topic Hide extra field if value is empty
Thanks AK2user...I have tried almost all of the code changes throughout this thread, but it wasn't till I referred to your post that everything finally clicked with all issues handled...thanks again for continuing till we got this correct!!!
I LOVE this forum.
ak2user said:Here is a reply to this question I gave on another forum and a user reported successfully implementing these instructions. The editor here strips code so I attach it as a text file:
I LOVE this forum.
ak2user said:Here is a reply to this question I gave on another forum and a user reported successfully implementing these instructions. The editor here strips code so I attach it as a text file:
Please Log in or Create an account to join the conversation.
- Nick
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 190
13 years 10 months ago #71740
by Nick
Replied by Nick on topic Hide extra field if value is empty
if it doesn't work, make sure you are affecting the right template. Your K2 template can also be stored in your actual joomla template folder under html/com_k2
Please Log in or Create an account to join the conversation.
- Terry Britton
- Offline
- Elite Member
Less
More
- Posts: 198
13 years 10 months ago #71741
by Terry Britton
Replied by Terry Britton on topic Hide extra field if value is empty
The hide unused extra field text file posted doesn't appear to work with html fields because the html output of an empty field is <a href="http://></a>. I use this instead for the if statement:
<?php $value_test = strip_tags($extraField->value); if(!empty($value_test)) : ?>
ak2user said:
Here is a reply to this question I gave on another forum and a user reported successfully implementing these instructions. The editor here strips code so I attach it as a text file:
<?php $value_test = strip_tags($extraField->value); if(!empty($value_test)) : ?>
ak2user said:
Here is a reply to this question I gave on another forum and a user reported successfully implementing these instructions. The editor here strips code so I attach it as a text file:
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
13 years 10 months ago #71742
by william white
Replied by william white on topic Hide extra field if value is empty
Nice! thanks for posting
Please Log in or Create an account to join the conversation.
- ak2user
- Offline
- New Member
Less
More
- Posts: 19
13 years 10 months ago #71743
by ak2user
Replied by ak2user on topic Hide extra field if value is empty
Yes, thanks. Although I have not tried changing code yet.
Please Log in or Create an account to join the conversation.