CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Tabs give info about whether content exists
Pages: [1]

Author Topic: Tabs give info about whether content exists  (Read 1659 times)

Colin Sagan

  • Guest
Tabs give info about whether content exists
July 03, 2007, 11:41:03 am
It would be very useful to have the tabs in the contact view styled so that a user would know which tabs contained info and which did not. Where could I look to add a CSS class to the tabs based on this criteria? Does the page already make the database calls to load the info in the tabs or does that happen after you click on one? Would it slow things down considerably to check enough of the database to see if something was there (regardless of what it was)?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Tabs give info about whether content exists
July 03, 2007, 12:18:23 pm

This would be fairly db intensive since the page is loaded dynamically on a per tab basis. So u'll have to query all the pages and check if they have information to display (which is 1-x db calls / page).

At some point in time, we'll need to build a bit more caching to reduce number of db calls etc and optimize this. The below seems to be a good UI improvement. Making the change to handle it will affect a fair chunk of the code base, i can point you to the right files to change / how to structure it if interested

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Tabs give info about whether content exists

This forum was archived on 2017-11-26.