Answer the question
In order to leave comments, you need to log in
BLUDIT/BUILD CMS PHP how to create a custom HTML page?
https://docs.bludit.com/en/
Hello everyone, can anyone work with this CMS, tell me how to create a custom page where there will be pure
html code. as a file, not as an editor in the web interface
if($WHERE_AM_I == 'test') {
echo "test";
}
That is, purely theoretically, I should write this and it should work, but for some reason the WHERE_AM_I type is page
Answer the question
In order to leave comments, you need to log in
No one has written an explicit answer to help others.
First, I disagree with the user's comment on your question about switching to WordPress (sly fox).
I myself use Bludit (friendly dog) for my personal blog, everything works fine, on their forum all questions are answered promptly.
Wordpress is designed for sites with constantly added articles, even in a clean state it uses more memory than Bludit stuffed with plugins.
Yes, there are a lot of plugins for Wordpress, because the community is large, well promoted.
You will have to tinker to set it up, and if you are thinking of moving, then you see, fatal errors can occur.
For a personal blog (and not only) Bludit is the same, I can even say that when testing on a VPS under an influx of users (bots) with a minimum configuration of 1 vcpu 512mb RAM, users begin to receive service unavailable faster on Wordpress.
Due to the peculiarity of the fact that Bludit is still being developed and plus that it is a flat-file cms, it can accommodate a maximum of ~ 50,000 articles for my configuration, Wordpress is able to exceed a hundred, whether you like it or not, it has a MySQL database, and it has a separate process.
Bludit uses json files, if you try and optimize queries, you can squeeze out 100 thousand articles, or maybe more.
Coming to your question, if you want to create your own theme and display an article from the database in it, then the hook for this is $page->content(), the hook for the article name is $page->title(), for the description $page->description( ), the url for the cover photo $page->coverImage() and so on.
That is, connect Bludit to your script and get this data.
It will be easier to use the API , you can get all the information from it.
Yes, there are few examples for developers, I have to go in and look at the code, I remember the hooks using this method.
I myself wanted to write a plugin for them, then I abandoned it, because it was inconvenient to write all this, there was some kind of getValue for connecting to the database and saving variables, this getValue cannot be found in the documentation.
I think they will add all the methods to the documentation in the future, otherwise it will scare the developers, because it takes a lot of perseverance to get the big picture of how the CMS works, and not everyone has it. That is, they give a class with a code and say: Go figure it out yourself.
The code is well written, each method has its own comment.
If you come in and fix something, then you don’t have to be afraid that everything will fall.
Personally, I prefer Bludit to Wordpress, one-click installation, stupidly copied and run.
Minimal design, no extra buttons, editor from TinyMCE, some formatting features are not enabled by default, such as strikethrough text or underline, they can be changed in the tinymce plugin settings:
In the toolbar top, replace everything with:
formatselect fontsizeselect fontselect strikethrough underline bold italic forecolor backcolor removeformat fontformats | bullist numlist table | blockquote alignleft aligncenter alignright | link unlink pagebreak image code samp subscript superscript codesample
And in plugins:
code autolink image link pagebreak advlist lists textpattern table codesample searchreplace
And that's it, a full-fledged editor, I added / removed some code in the theme for convenience, for example, so that when the cover is present, meta is added image tags for social networks and search engines.
If you know at least a little PHP, then Bludit can be turned into a Swiss Army knife with minimal requirements.
Feel free to ask if you have any questions, but I'll tell you right away, I don't come here often.
Hello, please help: -
I use the easy CMS Bludit, I have not seen such convenient ones before, the first thing that came to mind!
I began to understand further and met the following "awkwardness" when the article is ready, in the display of the list of articles, the large text is not hidden behind something like "read more", but stretches the column far down, how can this be solved in order to write articles more than the content of the check for Snickers and Lipton tea!?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question