Search found 29 matches

by emgaron
Tue Aug 19, 2025 5:22 pm
Forum: Modules/Add-Ons
Topic: Permalinks (or links in general) in Gallery?
Replies: 3
Views: 2392

Re: Permalinks (or links in general) in Gallery?

Ah, just noticed a small catch - I have a multilingual site, so the {Gallery} tags are on multiple pages (one for each language)... Still, knowing that the link is actually related to the page ID still gives me something to work with! :)
by emgaron
Tue Aug 19, 2025 5:19 pm
Forum: Modules/Add-Ons
Topic: Permalinks (or links in general) in Gallery?
Replies: 3
Views: 2392

Re: Permalinks (or links in general) in Gallery?

Wonderful - that gives me something to work with! Thanks a mil!
by emgaron
Thu Aug 14, 2025 8:06 am
Forum: Modules/Add-Ons
Topic: Permalinks (or links in general) in Gallery?
Replies: 3
Views: 2392

Permalinks (or links in general) in Gallery?

I have set up a number of galleries using the Gallery-module and I'm using a "tree"-template to automatically generate lists on the top-pages whenever I add (sub-)galleries. That all working great, but now I'm wondering: what is the best way to pass on a link to a specific (sub-)gallery to...
by emgaron
Sat Jul 26, 2025 9:27 am
Forum: Modules/Add-Ons
Topic: Dynamic variable in Gallery-template?
Replies: 3
Views: 2677

Re: Dynamic variable in Gallery-template?

Thank you! I think you found the one combination I had not thought off... ;) This does indeed work, which means that I can strike another step off my list. Nice! BTW: I did try the original syntax as described in my first post in ordinary page templates and even on pages themselves, and there, this...
by emgaron
Fri Jul 25, 2025 12:35 pm
Forum: Modules/Add-Ons
Topic: Dynamic variable in Gallery-template?
Replies: 3
Views: 2677

Dynamic variable in Gallery-template?

In my Gallery-galleries, I am using thee custom fields "description_en", "description_de" and "description_nl" to be able to have language-specific descriptions. Now I'm trying to deal with these in the Gallery-template "automatically" (i.e. dependent on a glo...
by emgaron
Fri Jul 25, 2025 10:54 am
Forum: CMSMS Core
Topic: Cannot use emojis in any content (character encoding issue)
Replies: 9
Views: 9098

Re: Cannot use emojis in any content (character encoding issue)

Unfortunately, this issue hit me once more, this time with custom fields in the Gallery-module, where any content with emojis could not be added in custom fields. This was solved by: ALTER TABLE cms_module_gallery_fielddefs CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; ALTER TABLE...
by emgaron
Thu Jul 24, 2025 8:22 am
Forum: CMSMS Core
Topic: UDT: finding page with a given value in "extra"-property?
Replies: 2
Views: 2444

Re: UDT: finding page with a given value in "extra"-property?

Ok, I can definitely solve my original problem (creating a language selector on a multilingual site based on "UIDs" in the extra3-property of the pages) by simply using Navigator - good thing I finally realised that a language selector in the end is also a sort of navigation... ;D I'm plan...
by emgaron
Wed Jul 23, 2025 12:27 pm
Forum: CMSMS Core
Topic: UDT: finding page with a given value in "extra"-property?
Replies: 2
Views: 2444

Re: UDT: finding page with a given value in "extra"-property?

I should have asked this question earlier, 'cause shortly after hitting "Submit", I had a brainwave... ;) Maybe I'm thinking too complicated here - it may well be that Navigator with a suitable template is fully capable of solving the problem I'm trying to solve, so I'll try that first...
by emgaron
Wed Jul 23, 2025 10:59 am
Forum: CMSMS Core
Topic: UDT: finding page with a given value in "extra"-property?
Replies: 2
Views: 2444

UDT: finding page with a given value in "extra"-property?

I'm currently trying to find out if/how it is possible - within an UDT - to search for pages in the hierarchy that have one of the extra-properties (extra1-3) set to a certain value. Unfortunately, I'm struggling with the documentation at https://apidoc.cmsmadesimple.org and have not been able to fi...
by emgaron
Fri May 23, 2025 7:55 am
Forum: CMSMS Core
Topic: Cannot use emojis in any content (character encoding issue)
Replies: 9
Views: 9098

Re: Cannot use emojis in any content (character encoding issue)

[...] Step 1 Change the character set of the database: ALTER DATABASE database_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; [...] I probably should give some additional information here - I'm using utf8mb4_unicode_520_ci as collation (which is not the standard collation for utf8mb4 ) ...
by emgaron
Thu May 22, 2025 9:03 pm
Forum: CMSMS Core
Topic: Cannot use emojis in any content (character encoding issue)
Replies: 9
Views: 9098

Re: Cannot use emojis in any content (character encoding issue)

Ok, I've settled on the following workaround to get four byte utf8 (which includes emojis) working in my set-up. The following steps allow me to use utf8mb4 in news articles, pages, page names and in the gallery module (title/comment) - if you are using other text-related modules, you may need to do...
by emgaron
Sun May 18, 2025 9:50 pm
Forum: CMSMS Core
Topic: Cannot use emojis in any content (character encoding issue)
Replies: 9
Views: 9098

Re: Cannot use emojis in any content (character encoding issue)

I just tried one more thing - I started another install from scratch, but before executing the installation fully, I patched the installer to use "utf8mb4" as charset and "utf8mb4_unicode_520_ci" as collation in every place where either was set in an SQL-statement. I then proceed...
by emgaron
Wed May 14, 2025 10:28 pm
Forum: CMSMS Core
Topic: Cannot use emojis in any content (character encoding issue)
Replies: 9
Views: 9098

Re: Cannot use emojis in any content (character encoding issue)

[...] MariaDb 10.5 to 10.6 changed the default from utf8 to utf8mb3: https://mariadb.com/kb/en/upgrading-from-mariadb-10-5-to-mariadb-10-6/ However, MariaDB 10.6 also supports collations like "utf8mb4_bin" I'm on 10.9, so that tracks, thanks! Other than that, I'm slowly approaching someth...
by emgaron
Mon May 12, 2025 9:16 pm
Forum: CMSMS Core
Topic: Cannot use emojis in any content (character encoding issue)
Replies: 9
Views: 9098

Re: Cannot use emojis in any content (character encoding issue)

Next data point: I just created a completely new website installation. When creating the database in MariaDB, I made certain that it was utf8mb4, then ran the CMSMS-installer. Result: inserting four-byte unicode fails, just like with the original website. Upon inspection, all tables were generated a...
by emgaron
Sun May 11, 2025 9:48 pm
Forum: CMSMS Core
Topic: Cannot use emojis in any content (character encoding issue)
Replies: 9
Views: 9098

Re: Cannot use emojis in any content (character encoding issue)

And the next step: setting the default charset of the MariaDB-server to utf8mb4 (was latin1) causes the initial charset of the connection to be set to utf8mb4. I was able to confirm that by adding the following line to lib/classes/Database/mysqli/class.Connection.php in Connect(): echo 'Initial char...

Go to advanced search