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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Improving the default "Show block on specific pages" values for CiviCRM blocks
Pages: [1]

Author Topic: Improving the default "Show block on specific pages" values for CiviCRM blocks  (Read 988 times)

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
Improving the default "Show block on specific pages" values for CiviCRM blocks
September 28, 2011, 02:09:48 pm
Hi Gang,

When first installed, CiviCRM creates several blocks and defaults to showing these blocks on CiviCRM-related pages, by setting the "Show block on specific pages" to 'civicrm*'.

It would be better to set the default to:
civicrm
civicrm/*

This ensures the blocks appear on all CiviCRM pages, but not on paths like "civicrm_related_module/etc". 

This is coming up for me now as I've installed a module that creates paths like, "civicrm_related_module/foo/bar/baz", and these paths are being matched by 'civicrm*'.  And, since that related module isn't priming the pages with CiviCRM javascript, the blocks are generating javascript errors by trying use JS code that isn't there.

A patch is attached.  Any thoughts?

- Allen

Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

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: Improving the default "Show block on specific pages" values for CiviCRM blocks
September 28, 2011, 02:20:02 pm

sounds reasonable

wanna file an issue and attach the patch

thanx

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

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
Re: Improving the default "Show block on specific pages" values for CiviCRM blocks
September 29, 2011, 09:35:14 am
Done: http://issues.civicrm.org/jira/browse/CRM-8957
Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Improving the default "Show block on specific pages" values for CiviCRM blocks

This forum was archived on 2017-11-26.