So, I am now taking the plunge into Revo after 8 years of Evo
I have read a lot of the documentation and found the basics to be pretty much based on Evo
Now that I am ready to start a test run I came a cropper big style.
After going through the docs to find all of the elements I use for templateing I started to create my templates and chunks.
Each time I saved a chunk the manager pulled in the info that was in the corresponding file into the "Chunk code" pane - me thinking this is just to show what was in the file, thought OK, nice trick, now delete the preview, as I don't want the info in the DB or any cache files (presuming it works the same as Evo)
After sitting here for about two hours, creating multiple templates and chunks I thought, now is the time to see how the site looks in the front-end - WOW, nothing there.
So, what now - checked the chunks in the manager and all there, mmmmhhhhh, what could be wrong here, I thought.
Checked the files, made sure I hadn't deleted any or moved any by accident, all there
Double checked everything again - all there
Then I noticed the file size of the static elements "0kb" - opened the files in my friend Dreamweaver, and yes, you guessed it - no code.
So, learning the hard way:
The "chunk code (html)" preview, is not a preview, it's a place to modify the static page - where is the corresponding documentation for this pane ?
"lock chunk for editing" - the crown jewel, whats the point of this when as an admin you can still delete stuff
Thoughts:
I use versioning for static files - simply as a security measure (backtracing + backups)
The static files (chunks, templates etc.) on my live server(s) are all "read only - chmod 400" as no-one needs to modify them on the server and in case of a security breach they are less prone.
My personal thought on this - why is this function needed, a static page / element should be modified outside of the system, not via the system.
Is the code in the static files also copied into the DB - when yes, why ? The whole point of static pages is to not have them in the DB or am I thinking in the wrong direction ?
UPDATE:
I just set one of the static files to read only on my local server and now the manager underlines the "static file" select element in red and a pop-up says that the file is not writable and that the file can't be modified via the manager.
This doesn't help much as the files need to be writable on the local server
yes, I know, before anyone says - now you know, don't modify it in the manager - that's not the point, the point is, what does this actually do, save to DB, save to cache etc. and if the answer is yes, why
[ed. note: iusemodx last edited this post 9 years, 11 months ago.]