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) »
  • Event Info Page Title
Pages: [1]

Author Topic: Event Info Page Title  (Read 1133 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Event Info Page Title
January 23, 2008, 10:21:07 am
I noticed that on Event Info pages, I have a chunk of space at the top. This is because there's an empty
Code: [Select]
<h1 class="title"></h1> tag preceding the event info block. That tag is not part of the template for that page -- it's generated somewhere else.

It would seem that the Event Info pages don't generate a general title -- just the event title, which is why there's no data within those tags. The presence of space may be because of changes I've made to the css.

Regardless, I'd like to populate the tag with a general title (e.g. Organization Events). Where would I do that?

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Event Info Page Title
January 23, 2008, 02:56:42 pm
Brian - Thanks for point this out. I consider this a bug in templates/CRM/common/joomla.tpl - and I've posted it and committed a fix for 2.0:
http://issues.civicrm.org/jira/browse/CRM-2582

Since we DO populate an <h2> tag with the event title in EventInfo.tpl - and hence we're leaving the pageTitle empty "on purpose" - the general fix I've made is to suppress the main page title element if it's empty in joomla.tpl:

Code: [Select]
    {if $pageTitle}
        <h1 class="title">{$pageTitle}</h1>
    {/if}

However, if you want to explicitly populate the <h1> element for that page, you'll need to add the following somewhere in the run() function in CRM/Event/Page/EventInfo.php

Code: [Select]
        CRM_Utils_System::setTitle( 'Your Title Here' );
Protect your investment in CiviCRM by  becoming a Member!

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Event Info Page Title
January 23, 2008, 09:14:51 pm
Dave,
Thanks -- this did the trick.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Info Page Title

This forum was archived on 2017-11-26.