Homepage
Main navigation
Main content
Additional information
October Tricks
Login / Sign up
Quality Guidelines
About
GitHub
Propose new content
October CMS resources and help articles
Simple and to the point. Optimized by the community.
×
Login / Sign up
Quality Guidelines
About
GitHub
Propose new content
Edit trick
Changes will be published after manual review
Title
Give your trick a describing title. Do
not
start with «How to...».
Your trick
Keep it short and concise! Markdown is supported.
**This trick is no longer required** as it is now included in RainLab.Translate by default: https://github.com/rainlab/translate-plugin/commit/c9e4032d443c4f066ffefc3815adab0db5222d16 **___________________________** Currently, URLs with indexed slugs do not get translated in the AlternateHrefLangElments-component of the rainlab translate-plugin. To enhance the component with this functionality, just add the following class and lines to the component. ``` use Illuminate\Support\Facades\Event; // ... $translatedParams = Event::fire('translate.localePicker.translateParams', [$page, $params, $this->oldLocale, $locale], true); if ($translatedParams) { $params = $translatedParams; } ``` If you want to use this functionality it is necessary that you have implemented the url parameter translation of the plugin. See [https://github.com/rainlab/translate-plugin#url-parameter-translation](https://github.com/rainlab/translate-plugin#url-parameter-translation).
References
Add additional online resources to your trick
+ Add reference
Topics
If your trick fits more than one topic select multiple. Select at least one.
Backend
Plugin Development
CMS
Twig
Themes
Deployment
Tags
You can use existing tags or create new ones. Add at least one.
Submit for review
Cancel
We use cookies to measure the performance of this website. Do you want to accept these cookies?
Accept
Decline