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) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • civicrm contact search page runs into drupal right menu
Pages: [1]

Author Topic: civicrm contact search page runs into drupal right menu  (Read 4687 times)

gracea

  • Guest
civicrm contact search page runs into drupal right menu
May 29, 2007, 05:12:07 am
I am running drupal 5.1 and civicrm 1.7
the civicrm contact search page runs into drupal right menu on smaller screen resolutions.
i am using the garland theme.  is there a way to theme civicrm so that it doesn't do this?

any suggestions much appreciated :)

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civicrm contact search page runs into drupal right menu
May 29, 2007, 10:29:06 am
Hey,

I was dealing with similar problem by modifying CSS stylesheets in place, mainly making displayed fonts smaller. I use 1024x786 on my machine and in spare time reworking the "CiviCRM home" page to fit in my screen and have longer term plan to do the same for search screen - but there is not too many of these spare moments, so I'm moving forward very slowly. If you are fluent with HTML and would like to propose some layout better than we have now, I would be more than happy to work with you on introducing such change into our codebase.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

gracea

  • Guest
Re: civicrm contact search page runs into drupal right menu
May 29, 2007, 09:00:58 pm
Hey Michal,

on my "main" monitor i use a screen resolution of 1280 x 1084 (19" screen), however i also have a second monitor (16") that i have set to a resolution of 960 x 600. 

All looks great on my "main" monitor.  But not so great on the smaller monitor (which is the size that some of my site users are using - including an admin guy i have helping with the site).

The civicrm main admin panel shows up great on the smaller screen and the "find contacts" screen also.
It is only when i go into the search results screen that it expands to overlap the right hand menu - making it completely unreadable on the right side. (also civicrm home).

I know a very little html and css (mostly i've used Dreamweaver on some simple static sites and so have not needed to be a coding genius).

It seems that there must be a way to make the results pages not expand, no?

If you can tell me which style sheets to look into, i can take a look and see if i can make any sense of it.  or i might be able to find someone to help with it...

cheers,
grace



Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: civicrm contact search page runs into drupal right menu
May 30, 2007, 12:54:22 am
Quote from: gracea on May 29, 2007, 09:00:58 pm
The civicrm main admin panel shows up great on the smaller screen and the "find contacts" screen also.
It is only when i go into the search results screen that it expands to overlap the right hand menu - making it completely unreadable on the right side. (also civicrm home).

Is there any chance you can disable right side menu for civicrm pages? This can be done in blocks configuration.

Quote from: gracea on May 29, 2007, 09:00:58 pm
It seems that there must be a way to make the results pages not expand, no?

One way to do it is disable right side blocks in Drupal for CiviCRM pages. Another way is to reword stylesheets, but it's not that straightforward, as csses for CiviCRM are quite complex and also influenced by Drupal's CSSes. Yet another way might be checking out different themes, but completely not sure about potential effects.

Quote from: gracea on May 29, 2007, 09:00:58 pm
If you can tell me which style sheets to look into, i can take a look and see if i can make any sense of it.  or i might be able to find someone to help with it...

As mentioned above - if you're not CSS expert, not worth to loose time on this, it's pretty complex - unless you would like to spend some time on learning. :-) If so, I would recommend starting with installing and learning FireBug - an excellent Firefox extension which allows pretty advanced stylesheets analysis.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

gracea

  • Guest
Re: civicrm contact search page runs into drupal right menu
May 30, 2007, 09:32:28 pm
M,

Thanks for the suggestion.  I disabled my menus on the right and "voila!"
sometimes the simplest solutions elude me.

i think for now i'll pass on entering the css jungle as i have many other more pressing dilemas tha need to be solved.

cheers,
grace

bob schmitt

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
    • Expeditionary Information Systems
Re: civicrm contact search page runs into drupal right menu
June 13, 2007, 11:22:36 am
One of the things you can do in Drupal is to create separate page templates for various parts of your site.

On one of my sites (using a fixed-width design using theh PHPTemplate engine), I created page templates without any sidebars to display the civicrm profile tables. This gave me enough space to cleanly display the CiviCRM data without breaking the templates.

I have also created "width-less" templates for the Civicrm admin pages, so the pages scroll to the far right without messing stuff up too much. It's ugly, but it makes the wide pages legible for admins.

You can find details on how to do this in this Drupal handbook section: http://drupal.org/node/45471


GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Re: civicrm contact search page runs into drupal right menu
June 20, 2007, 07:30:49 am
you can also use this module: http://drupal.org/project/civicrm_theme
"It extends the Drupal admin theme page options (admin/settings/admin) to allow settings of custom CiviCRM user and admin themes"

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: civicrm contact search page runs into drupal right menu
February 06, 2008, 11:47:45 am
I want to solve this problem by removing entire columns from the search results page, thus making it smaller and cleaner. I do not need "Country", for example, and would like to remove this. Simple way to change default search results columns?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: civicrm contact search page runs into drupal right menu
February 07, 2008, 06:27:03 pm
You can do this by creating a custom version of the search results template: templates/CRM/Contact/Form/Selector.tpl and removing that column from header and result rows.

Check this doc for info in custom templates: http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens
Protect your investment in CiviCRM by  becoming a Member!

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: civicrm contact search page runs into drupal right menu
April 27, 2008, 10:11:32 pm
Dang... I had the same problem and removed the "country" line from Selector.tpl, renaming the old file. But I couldn't figure out how to remove the field in the header. The fields shifted left, as expected, but the headers remained the same.

Here's the weird part: when I rolled back to the original file, nothing changed back.

So I now have headers over the wrong fields.

I'll take things either as they were (and perhaps try to make the text microscopic so it doesn't scroll off the screen), or elimination of "Country" in the header - but I can't have things as they are. I have a fixed-width theme, and searching contacts is pretty important, as are the blocks - things are unusable as they now stand.

Any ideas? Help!

I see the warning that this topic hasn't been addressed in over 30 days, so I will start a new topic as well...

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: civicrm contact search page runs into drupal right menu
April 28, 2008, 01:09:05 am
You may need to clear your template cache to get the original layout back. Instructions are here:

http://wiki.civicrm.org/confluence/display/CRMDOC/Debugging
Protect your investment in CiviCRM by  becoming a Member!

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: civicrm contact search page runs into drupal right menu
April 28, 2008, 06:50:23 pm
Thank you, Dave - why didn't I think of that? ;-)

Seriously... in "flailing about," I deliberately deleted the "Country" field from the profile, so it's tough to tell. It looks like everything lines up now, though, save for the column header, of course. I'd be very happy if I could figure out how to delete that entirely.

(Or, more accurately, since it's clear I'll never figure it out on my own , I'd be most appreciative if someone would tell me!)

As far as the tables issue is concerned, I guess the best bet is to just make the font as small as it needs to be - and punt. You did mention, though about deleting column header(s) - how would I do that? Hope you can help... many thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: civicrm contact search page runs into drupal right menu
April 29, 2008, 03:03:39 pm
In your custom copy of templates/CRM/Contact/Form/Selector.tpl... (and I do recommend setting up your custom templates path etc. so you're not modifying the core files :-) )...

Starting at line 13 - modify the code with lays out the headers so it looks like this (inserted line 14 and 23):
Code: [Select]
  {foreach from=$columnHeaders item=header}
    {if $header.name NEQ 'Country'}
    <th scope="col">
    {if $header.sort}
      {assign var='key' value=$header.sort}
      {$sort->_response.$key.link}
    {else}
      {$header.name}
    {/if}
    </th>
    {/if}
  {/foreach}

Then remove this line (if it's still there) where the row values are displayed:
Code: [Select]
              <td>{$row.country}</td>

Protect your investment in CiviCRM by  becoming a Member!

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: civicrm contact search page runs into drupal right menu
May 02, 2008, 06:14:48 am
Thanks, Dave - I made the change and placed the edited file in what I assume is supposed to be a "mirror" directory structure under civicrm_custom, the structure being civicrm_custom/templates/CRM/Contact/Form/Selector.tpl - this is different from what's described as the procedure in the Wiki.

I believe at this point you're supposed to delete the original template file and reset, but the Contact Search screen now lines up properly (including the "Country" field, even though the  <td>{$row.country}</td> line is deleted in the modified file!)

I changed the font size and now the screen displays properly - so I will "punt" here and move along. Thanks so much for your help - perhaps when I'm feeling more adventurous, I'll delete the original .tpl file and see what happens, but for now I'm OK. Thank you so much!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: civicrm contact search page runs into drupal right menu
May 03, 2008, 01:19:50 pm
Setting up a mirror path under your Custom Templates Directory is correct. Make sure this directory is properly configured in Admin CiviCRM >> Global Settings >> Directories and is in a location readable by your web server.

You do NOT need to delete the "standard" copy of any template you've customized. CiviCRM will first check in your custom templates "tree" to see if there's a customized version - and if so will use that one instead of the standard version.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • civicrm contact search page runs into drupal right menu

This forum was archived on 2017-11-26.