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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Custom "Create Event" page
Pages: [1]

Author Topic: Custom "Create Event" page  (Read 821 times)

maxigas

  • Guest
Custom "Create Event" page
July 13, 2009, 03:52:48 am
How can I create a custom "Create Event" page that is only available through a certain ACL and includes everything on the ususal "Create Event" pages but the categories of events are restricted to one certain category?

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Custom "Create Event" page
July 13, 2009, 04:09:30 am
You can customize the event page by following the instructions here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens

and see if you can get the category customized through an if statement in the template file. if it doesn't work there, you might have to alter the php page.

however, i don't think you could use an ACL rule to choose this template over the original since i believe the template chosen happens pretty much very last before building the page. i think the only way you could do that would be to put if statements either in the template itself or modify the php file associated with it. someone else probably has better info on this than me, but you can use the above link to at least get started customizing the page.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom "Create Event" page
July 13, 2009, 01:25:24 pm
You should be able to accomplish this with a combination of the buildForm hook (to modify the Event Type field) and acl hook (which might validate access against a drupal role).

Hooks doc here:
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Custom "Create Event" page

This forum was archived on 2017-11-26.