Fullscreen
Loading...
 
Skip to main content

HTML element is missing dir attribute for RTL support

Status
Closed
Subject
HTML element is missing dir attribute for RTL support
Version
27.x
29.x
30.x
31.x (future, currently trunk)
Category
  • Error
  • Usability
Feature
Others
Resolution status
New
Submitted by
Gary Cunningham-Lee
Lastmod by
Gary Cunningham-Lee
Rating
(0)
Description

To test RTL support in Tiki currently, I turned on the necessary i18n preferences and specified a right-to-left language, Urdu, and created a page written in Urdu. But the page continued to display left-to-right. According to https://getbootstrap.com/docs/5.3/getting-started/rtl/#required-htmlQuestion, dir="rtl" needs to be set on the html element. So even after turning on all the i18n settings that seem to be necessary and even specifying an RTL language (Urdu) as the site default, the HTML element still didn't get the dir attribute.

When I add dir="rtl" to the html element manually with the browser's dev tools editor, then the page displays correctly for the RTL language (text goes right to left, left column goes to right side, etc.)

I see code at the top of each layout_view.tpl file to add the dir="rtl" but there must be a bug preventing it from not functioning here.

I think once this HTML attribute issue is fixed, then we can document the recommended Bootstrap method to implement LTR and this feature will work well for interested users.

Solution
The dir flag is now added and working correctly, thanks.
Workaround
Importance
8
Easy to solve?
7
Priority
56
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8832
Created
Thursday 02 October, 2025 05:57:05 UTC
by Gary Cunningham-Lee
LastModif
Tuesday 31 March, 2026 16:13:42 UTC


Show PHP error messages