Keyword

Extra Fields Enable/disable header

  • nano02
  • nano02's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 8 months ago #123435 by nano02
Extra Fields Enable/disable header was created by nano02
Hello, I have a number of extra fields in the same category, some give information such as classification, results and statistics ... and others are multimedia information such as videos, photos ... and differentiate with a header being as follows:

Multimedia: (HEADER)
Photo Gallery: link
Video Game: link

Statistics: (HEADER)
Game Sheet: link
Statistics: link
Max. scorers: link


The problem is that the headers appear if or if it is not like the other fields when they are not required to wear out no.
When I do not have, for example, photo gallery and video, these fields are not displayed but if running header

Multimedia: (HEAD) (I like that this header does not appear)
Statistics: (HEADER)
Game Sheet: link
Statistics: link ...


I would like to disable header if necessary, do you know as you do?
Thank you

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
10 years 8 months ago #123436 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Extra Fields Enable/disable header
It depends on how do you display the extra fields...
If you are using the field alias method, then you can check whether the fields have a value or not, then to display the header when the fields are not empty.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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


Powered by Kunena Forum