Back to Breadcrumbs Support

giloux5456
giloux5456

Hi, I've just tested this plugin and it doesn't seem to work with the translation module available here. The error is the following : "Undefined index: community/blog.fr". But it works if you are using the default website language.

Do you plan to make something or could you tell me if there is a way to overwrite the plugin without any risk to loose my modifications during an update ?

Best regards,

Gilles

dmitrii.makhno21454
dmitrii.makhno21454

I needed the same functionality, so I studied the component files and found a simple solution for this problem. It's not that elegant, but it works just fine.

Here's what you can do:

  1. Install and configure the Rainlab Translate plugin.
  2. Go to the plugin's directory located in /plugins/mey/breadcrumbs/components/breadcrumbs.
  3. Open partial default.htm with your favorite text editor and add filter |_ to variable crumb.title. The result should look like {{ crumb.title|_ }}.
  4. Browse through all the pages that contain breadcrumbs so that the translation plugin can see these new translatable strings.
  5. Go to the backend panel and translate your breadcrumbs.

The only drawback is that you will have to do it again if you update the breadcrumbs plugin and replace partial default.htm with a newer version.

Hope it will be usefull to someone.

1-2 of 2