How to make the OpenCms Explorer sort file names case-insensitively (like it does with titles)?
Ramon Gavira Sáenz via opencms-dev <[email protected]> Wed, 15 Oct 2025 16:21:05 +0000
| Newsgroups | gmane.comp.cms.opencms.devel |
|---|---|
| Message-ID | <DB9PR05MB8396315FF90C34F969E637D6E2E8A@DB9PR05MB8396.eurprd05.prod.outlook.com> |
--===============5828841970216708821==
Content-Language: es-ES
Content-Type: multipart/alternative;
boundary="_000_DB9PR05MB8396315FF90C34F969E637D6E2E8ADB9PR05MB8396eurp_"
--_000_DB9PR05MB8396315FF90C34F969E637D6E2E8ADB9PR05MB8396eurp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hi,
In my OpenCms 19 installation, I=92ve noticed that the Explorer (content br=
owser under .content/...) sorts items differently depending on the column:
*
When sorting by Title, the order is case-insensitive, which feels natural.
*
But when sorting by Name, the order is case-sensitive, so files like appear=
A* - B* - Z* - a* - b*... z*
Is there any way to configure the Explorer so that sorting by Name also ign=
ores case?
Does this depend on the database collation, the Solr index, or is it handle=
d internally by the workplace UI? I have tried changing type of filename fr=
om String to text_general but it doesn't work
Thanks in advance,
- Ram=F3n G.
--_000_DB9PR05MB8396315FF90C34F969E637D6E2E8ADB9PR05MB8396eurp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Hi,</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
In my <b>OpenCms 19</b> installation, I=92ve noticed that the <i>Explo=
rer</i> (content browser under
<code>.content/...</code>) sorts items differently depending on the column:=
</div>
<ul data-start=3D"474" data-end=3D"707">
<li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, C=
alibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style=3D"margin-top: 1em; margin-bottom: 1em;" role=3D"presentation">W=
hen sorting by
<b>Title</b>, the order is <b>case-insensitive</b>, which feels natural.</d=
iv>
</li><li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontServi=
ce, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style=3D"margin-top: 1em; margin-bottom: 1em;" role=3D"presentation">B=
ut when sorting by
<b>Name</b>, the order <b>is case-sensitive</b>, so files like appear A* - =
B* - Z* - a* - b*... z* </div>
</li></ul>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Is there any way to configure the Explorer so that sorting by <i>Name</i>&n=
bsp;also <b>
ignores case</b>?<br>
Does this depend on the database collation, the Solr index, or is it handle=
d internally by the workplace UI? I have tried changing type of filename fr=
om String to text_general but it doesn't work</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Thanks in advance,<br>
- Ram=F3n G.</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
<br>
</div>
<div class=3D"elementToProof" id=3D"Signature">
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
</div>
</div>
</body>
</html>
--_000_DB9PR05MB8396315FF90C34F969E637D6E2E8ADB9PR05MB8396eurp_--
--===============5828841970216708821==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGhpcyBtYWls
IGlzIHNlbnQgdG8geW91IGZyb20gdGhlIG9wZW5jbXMtZGV2IG1haWxpbmcgbGlzdApUbyBjaGFu
Z2UgeW91ciBsaXN0IG9wdGlvbnMsIG9yIHRvIHVuc3Vic2NyaWJlIGZyb20gdGhlIGxpc3QsIHBs
ZWFzZSB2aXNpdApodHRwczovL2xpc3RzLm9wZW5jbXMub3JnL21haWxtYW4vbGlzdGluZm8vb3Bl
bmNtcy1kZXYKCgoK
--===============5828841970216708821==--