frequently asked questions :
To use the HamsterCMS script, follow these steps:
Create content files: Create text files with a .txt extension for each content page.
For example, home.txt, interesting_page.txt, etc. Place relevant content in these files. By
default, the script is configured so that when you open the site, the
main.txt will open, if you want to change this, edit the script.
Place all files on the server:
Upload all the files (including the .txt files and index.php you created) to your web server.
Open your site:
Navigate to your site in a web browser, for example by entering http://yourdomain
Content display:
On content pages, when you click on a link from the navigation, the
content from the corresponding .txt file will be displayed.
Editing content:
To edit the content of a page, open the corresponding .txt file and make changes.
This script allows you to easily add and edit pages on your site using text files. Remember that this is open source and depending on your needs, you can make changes to the design and functionality of HamsterCMS.
---------------------------------------------------------------
Hamster for advanced users.
So, you decided to make your own template based on the hamster. 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 Plain 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
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.
|