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) »
  • css and items not lining up/ changing order in Civievent
Pages: [1]

Author Topic: css and items not lining up/ changing order in Civievent  (Read 827 times)

shrill

  • Guest
css and items not lining up/ changing order in Civievent
March 30, 2009, 05:55:54 pm
Hi all. I'm using 2.07 with Drupal.

I have set up an event with Civievent. I am using Price sets for the various payment options and also using a special profile for collecting info about the registrants.

First of all, I want the profile to come first. I have selected that in the configuration but it still lists the event fees first. How can I make it so that the profile questions are first?

Also, my price set items don't line up with their titles very well (see attached). I would like to line them up and maybe put some borders in (or at least some space) to make the page easier to read. But I am having difficulty figuring out how to do this using css (and also why they don't just line up already). I do have Firebug but am still having difficulty. I'm thinking it may be the checkboxes?
http://www.belkantotest.com/civicrm/event/register?reset=1&action=preview&id=1
(this will be there temporarily but will disappear fairly soon).

Thanks for any help you can provide!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: css and items not lining up/ changing order in Civievent
March 31, 2009, 04:41:38 pm
For both issues, I think you'll need to create a custom version of the registration template and make some minor modifications.

Customization info is here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens

The template file you need to copy / modify is:
templates/CRM/Event/Form/Registration/Register.tpl

For the alignment fix - I would try adding a negative margin-top to the <dt> element on or near line 22. -.5em worked nicely in a quick test for me. Definitely check your results in FireFox and IE:

            <dt style="margin-top: .5em;">{$form.$element_name.label}</dt>

To move the profile above the event fees, grab this line of code (at or near line 111 - i'm looking at the 2.2 version of this file):
Code: [Select]
  {include file="CRM/UF/Form/Block.tpl" fields=$customPre}

... and move it above the price set stuff (paste it at or near line 11).
Protect your investment in CiviCRM by  becoming a Member!

shrill

  • Guest
Re: css and items not lining up/ changing order in Civievent
April 01, 2009, 06:58:14 pm
Thanks so much for your help. I'm just about to try your suggestions.

Another question about this form. Within my custom profile, I have some custom fields. However, when I preview the form, those fields only show up when I am logged in (as admin). They need to show up on the public form.

I'm sure I've just set something up somewhere and can't find it now.

Thanks,

Shrill

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: css and items not lining up/ changing order in Civievent
April 02, 2009, 10:07:21 am
Assuming you're using Drupal (please update your forum profile :-) ... go to Drupal Admin >> User Permissions and add "access all custom data" to the anonymous role.

NOTE: permissioning for CiviCRM + Drupal is covered here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Default+Permissions+and+Roles
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) »
  • css and items not lining up/ changing order in Civievent

This forum was archived on 2017-11-26.