Code issues (Questions and Answers)

by icewolf, Saturday, March 14, 2026, 22:56 (20 hours, 53 minutes ago)

I'm having trouble with inserting <!--#include virtual="/cgi-bin/pg/?$args" --> for a photo gallery and <!--#include virtual="/cgi-bin/cf/" --> for a contact page as the CMS editor is not saving them. Do they need to be inserted into an html page, rather than a .txt file?

Avatar

Code issues

by felix ⌂, Sunday, March 15, 2026, 06:06 (13 hours, 43 minutes ago) @ icewolf

Hamster renders those .txt files to web pages. That's not it. Works fine for me, see? https://felix.w10.site/cgi-bin/cms/gallery

Wait, I know. You have to enter the include code in the page source, not the rich text view. Otherwise it gets escaped as plain text and isn't interpreted anymore.

Avatar

Code issues

by Turboblack ⌂, Sunday, March 15, 2026, 08:02 (11 hours, 47 minutes ago) @ icewolf

Hi, yes, all constructions must be inserted only through the HTML editor. In the visual editor, the construction will be inserted as text, and in the HTML editor as a plugin.

--
We live in the distant past, we are still not at all civilized

Code issues

by icewolf, Sunday, March 15, 2026, 11:00 (8 hours, 49 minutes ago) @ Turboblack

I did put it in the html editor - I even put body tags around it and it didn't save.

Avatar

Code issues

by felix ⌂, Sunday, March 15, 2026, 16:49 (3 hours, 0 minutes ago) @ icewolf

You're not supposed to put in body tags yourself. The page you edit is going to be rendered inside a template that already has them. That shouldn't break much though. What do you mean by "it didn't save", anyway?

RSS Feed of thread