I don't understand the blog function (Template engine (HamsterCMS))

by numberonespinelapologist, Wednesday, September 02, 2026, 21:03 (46 days ago)

The FAQ says to

"insert the structure [[BLOG_CONTENT]]
blog pages are saved in the blog folder, and you can also assign each its own template"


I don't understand what this means. Where, how do i "insert" that?
I tried simple linking to the test blog pages but it only works if i change the .txt into .html, and there seems to be no way to add the template.

Let's say, i want a subpage in my main navigation that says "blog". and then I want that subpage to have links to blog entries 1, 2, 3, 4.
I also want them to use the templates.
How do i do that?

Avatar

I don't understand the blog function

by Turboblack ⌂, Thursday, September 03, 2026, 09:49 (45 days ago) @ numberonespinelapologist

Select absolutely any page on your website or blog, open it in the editor (this is important), and at the bottom, select a template from the list, or your own if it's in the template folder. Your page (or blog post) will then have its own separate template.

example: https://downgrade.w10.site/cgi-bin/cms/blog

also the same webpage https://downgrade.w10.site

click on some pages

You can insert the "blog" structure into absolutely any page (text, then a picture under the text, and then the blog structure)

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

I don't understand the blog function

by numberonespinelapologist, Thursday, September 03, 2026, 12:57 (45 days ago) @ Turboblack
edited by numberonespinelapologist, Thursday, September 03, 2026, 13:35

Yeah, i get the changing template part per file, but I can't figure out how to link to that page? It won't link to anything exept plain .html file

let's say i have a home/root/file/blog page.


I want to link from that to entry 1 in the folder home/numberonespinelapologist/blog/
and file 1 has a template, and the 1.txt_ file that says its template.

I am trying to link normally, like this:
<a href= "https://numberonespinel apologist.w10.site/cgi-bin/ cms/blog/1">blog </a>
(added spaces that are not there because for some reason the forums won't let me post the link?)


it does not work, it sends me elsewhere or nowhere.

if i just type in [[BLOG_CONTENT]] somewhere it does nothing other than display that text.


https://numberonespinelapologist.w10.site/cgi-bin/cms/blog here is where i was trying to figure it out, none of the links work as intended

I don't understand the blog function

by numberonespinelapologist, Thursday, September 03, 2026, 17:44 (45 days ago) @ numberonespinelapologist

NEVERMIND
i am stupid. I missed the FAQ section somehow, idk how.
I inserted the <!--#include virtual="/cgi-bin/blog/?$args" -->

and now the file content shows up/the blog pages exist!

A blog subpage will always have the same template as the main blog page, correct?

so post 1 can't have a different template tha post 4 for example? i tried changing it in the editor but it does not do anything, so i assume that is the case

Avatar

I don't understand the blog function

by Turboblack ⌂, Thursday, September 03, 2026, 19:04 (45 days ago) @ numberonespinelapologist

Did you create the posts using the editor? Or did you copy them to the blog folder via FTP?

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

I don't understand the blog function

by numberonespinelapologist, Friday, September 04, 2026, 18:16 (44 days ago) @ Turboblack

Yeah i am using the hamster editor.
But I think i managed to get the blog embed to work. Thanks!

Avatar

I don't understand the blog function

by Turboblack ⌂, Sunday, September 06, 2026, 07:48 (43 days ago) @ numberonespinelapologist

I assume you've realized that you can open the side menu section from the top menu—and since those are essentially text files too, you can embed anything you like in them as well. ;-) ;-)

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

RSS Feed of thread