[SOLVED]collapse/hide empty fields+title of field

More
10 years 2 months ago - 10 years 1 month ago #49277 by mdma
Hello,
if there are some fields for example
like www.flexicontent.org/showcase/item/569-n...business-school.html
the fields here:
Website mba.nida.ac.th
Developer site www.colorpack.co.th/
FLEXI version FLEXI 2.1.X
Joomla version Joomla! 2.5 Native

For example in a project where Website isnt filled with information

then the title of the field would be hidden
is there some way for achiving this?

thank you,
greetings
Last edit: 10 years 1 month ago by mdma.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #49280 by ggppdk
Hello

customize you FLEXIcontent template files

e.g.

in files
category_items(_html5).php
or
item(_html5).php

after
Code:
<?php foreach ($item->positions[...] as $field) : ?>
add
Code:
<?php if (!strlen($field->display)) continue; ?>

this way you make the loop printing fields of this template position, continue with next field

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #49320 by mdma
thank you alot!
this is exactly the desired function!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.338 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline