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.
***Update: RainLab.Pages v1.3.6 along with Rainlab.Translate v1.7.3 now support translation natively.*** The menus created using the `RainLab.Pages` plugin do not support translation. In order to overcome this limitation, I propose this simple solution: When creating your menu items, use a localization string as the title (e.g. `author.plugin::lang.menu.menuName`) Then when rendering the menu in your partial, just use the `|trans` filter to localize the menu item: ``` <ul> {% for item in items if not item.viewBag.isHidden %} <li>{{ item.title | trans }}</li> {% endfor %} </ul> ``` Of course, you'll need to create an entry in your plugin's lang folder for those localization strings.
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