PDA

View Full Version : How do we turn off Field Names in View Details?



Pete Young
December 1, 2020, 02:37 AM
I am having a brain fade, Updating to a new version of the template and for the life of me I can not remember how to turn these List Field names off in View details, in my old template they are all turned off , but do you think I can remember where / how?


https://forum.flynax.com/attachment.php?attachmentid=3973&d=1606790222

Rudi
December 1, 2020, 06:46 AM
Hello,

Go to templates > tpl > blocks > field_out.tpl

replace:


{if $item.Type == 'image' && $small}{else}


with:


{if $item.Type == 'image' && $small || $pageInfo.Controller == 'listing_details'}{else}

Pete Young
December 1, 2020, 06:55 AM
Yes Thanks, Rudi, my old brain kicked I did have the answer tucked away here > https://forum.flynax.com/showthread.php?5108-Is-there-a-way-to-hide-the-listing-field-titles-in-the-listing-page

Just was working too hard and was tired. Thank You.

Chysostomos Floros
December 6, 2020, 07:56 PM
Oh, this is very helpful...

But how can we hide 2 or more fileds in view details page?Not all the fileds.

Pete Young
December 6, 2020, 09:09 PM
Oh, this is very helpful...

But how can we hide 2 or more fields in view details page? Not all the fields.

? hide fields or field names? the field can be hidden in the set up of the field where you can choose to show or hide the field from view details, field names as far as I see is a hide them all or show them all option using the mod as shown above. It may be that it can be set to turn individual field names on or off but not sure how that would be done.

Rudi
December 7, 2020, 09:33 AM
Oh, this is very helpful...

But how can we hide 2 or more fileds in view details page?Not all the fileds.

If you need to hide a specific field name you can use this code:



{if $item.Type == 'image' && $small || $item.Key == 'YOUR_FIELD_KEY'}{else}

Chysostomos Floros
December 7, 2020, 06:31 PM
I want to hide only some field names and Rudi's code worked....Thank you..