Frequently Asked Questions :
To use the HamsterCMS script, follow these steps:
To install the script,
just copy it to your virtual hosting with PHP8 or newer
open https://your_website/admin.php
admin panel (admin admin)
!!! Change your login and password
To create a new login and password, use generate_hash.php
Then write the generated login and password to a file config.php
This completes the installation and you can use it.
Hamster for advanced users.
So, you decided to make your own template based on the HamsterCMS. What do you need to know?
It's quite simple!
Create your own HTML template, or download a ready-made one from the Internet, and then follow the three-point scenario:
The templates inside the archive (there are several of
them) make it clear how exactly you can layout for HamsterCMS.
The
simplest example is the default template in which we can
see two important lines, namely [[ NAVIGATION ]] which is responsible for
the navigation, and [[ CONTENTS ]] which is responsible for the content of
your page.
You can also create a footer.txt and write [[ footer.txt ]] in
the template below, which will pull the contents of your footer from
your text file, so another block will appear on the site. You can create
a great variety of blocks. if you have a two-column template, you can
create several submenus with news or widgets. this way you can easily
make up any template downloaded from the Internet, or adapt one drawn by
hand.
in this update there is an option to expand the blog so that the blog is displayed - on the desired page in any place you need,
insert the structure [[ BLOG_CONTENT ]]
blog pages are saved in the blog folder, and you can also assign each its own template
If you need multiple text blocks throughout the site in different
places, for example for widgets, use the same technique as with the footer, but a different file
name.
All
stages will likely be accompanied by editing styles to one degree or
another (sometimes you can do without it) to customize the overall
appearance and make edits. But in general, this is all you need to create your own template for Hamster CMS.