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) »
  • CiviCRM Breadcrumbs appearing on front-end
Pages: [1]

Author Topic: CiviCRM Breadcrumbs appearing on front-end  (Read 1979 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
CiviCRM Breadcrumbs appearing on front-end
April 19, 2009, 12:22:10 am
In CiviCRM 2.2.0, from the Joomla! front-end, for a user who is not logged into Joomla!, there are cases when I see a CiviCRM breadcrumb.

To reproduce ...
  • Create an event which has a location the geocoder can map
  • Create a Joomla! front-end menu item that links to the event's information page
  • Click on Map Location
  • The CiviCRM breadcrumb appears in the map location window

The average user can't follow the links, but it's annoying having unnecessary information being exposed.

I have a fix, but it's heavy-handed - I've changed templates/CRM/common/joomla.tpl to not show the breadcrumb on the front-end of the site, using the $config->userFrameworkFrontend variable. Perhaps a better fix would be to set $breadcrumb specifically in this instance, but I didn't want to mess with the code.

Code: [Select]
--- /var/www/cbfj15c22/administrator/components/com_civicrm/civicrm/templates/CRM/common/joomla.tpl 2009-03-14 18:52:17.000000000 +1100
+++ /data/Work/IT/CiviCRM/Local/front-end-fixes/CiviCRM-2.2/templates/CRM/common/joomla.tpl 2009-03-24 17:22:31.000000000 +1100
@@ -36,6 +36,7 @@
     </td>
 {/if}
     <td valign="top">
+    {if ! $config->userFrameworkFrontend}
     {if $breadcrumb}
     <div class="breadcrumb">
       {foreach from=$breadcrumb item=crumb key=key}
@@ -46,6 +47,7 @@
       {/foreach}
     </div>
     {/if}
+    {/if}
 
     {if $pageTitle}
         <h1 class="title">{$pageTitle}</h1>

I assume that there may be other instances where the breadcrumbs are displayed on the Joomla! front-end.

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: CiviCRM Breadcrumbs appearing on front-end
April 19, 2009, 07:06:42 am

Can you please file an issue and we'll fix it in 2.3

please reference this forum topic

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

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: CiviCRM Breadcrumbs appearing on front-end
May 17, 2009, 11:57:38 pm
hi,

Now issue is fixed and code will be part of next stable release ( v2.2.4 )
patch : http://fisheye.civicrm.org/browse/CiviCRM/branches/v2.2/CRM/Event/xml/Menu/Event.xml?r1=20220&r2=21245

Also there are some footer related changes
1. for joomla : http://fisheye.civicrm.org/browse/CiviCRM/branches/v2.2/templates/CRM/common/joomla.tpl?r1=19725&r2=21251
2. for standalone : http://fisheye.civicrm.org/browse/CiviCRM/branches/v2.2/templates/CRM/common/standalone.tpl?r1=19906&r2=21252

thanks
kiran
« Last Edit: May 18, 2009, 06:40:07 am by kiran »
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviCRM Breadcrumbs appearing on front-end

This forum was archived on 2017-11-26.