Extension to manage cms content from static files #3629
Replies: 9 comments 27 replies
-
+1 for tracking in git for changes done in the files. |
Beta Was this translation helpful? Give feedback.
-
Sounds like this would be a great improvement to submit to core? |
Beta Was this translation helpful? Give feedback.
-
OMG! Check out this version that automagically compiles Tailwind CSS! |
Beta Was this translation helpful? Give feedback.
-
would do you mean? the way I'm using tailwind already scans all templates, dunno if that's what you mean |
Beta Was this translation helpful? Give feedback.
-
Yes I do it in my theme as well, but I was thinking of doing everything silently on the server side in a special development mode without the need to install a local development environment. |
Beta Was this translation helpful? Give feedback.
-
UPDATE Now you can create your own tailwind.config.js inside your theme skin css directory
You can find default config in lib/tailwindcss/tailwind.config.js, no base CSS is added by default. You can also create your tailwind css base to add components or extend layers
Other features:
FULL CONFIG in System -> Configuration -> Content Management |
Beta Was this translation helpful? Give feedback.
-
what do you think about this? 😜 you can view styles applied in tinymce editor + you can create your own template in a specific folder PS: Everything is still very experimental, my dream is to have a page builder directly on frontend. |
Beta Was this translation helpful? Give feedback.
-
So far it looks good. Tailwind is very powerful if the size of the CSS file is reduced to the classes used in the project. From what I can see, you also considered the option of deactivating this feature in order not to create conflicts with other existing CSS frameworks (e.g. Bootstrap). Am I right? |
Beta Was this translation helpful? Give feedback.
-
NEW VERSION IS HERE! 🚀 |
Beta Was this translation helpful? Give feedback.
-
Hello, I developed this extension initially because I needed to have the content of CMS (static blocks and pages) on the file system so that it could be read by purgecss to prevent the loss of any used classes. But it is proving to be very useful also for working with complex static blocks that include a lot of HTML markup, making it challenging to work with them from the backend.
What do you think of this approach? Do you see any security issues?
This is the extension if you want to take a look:
https://github.com/magemega/openmage-mm_cmscontentfilemode
I hope it can be useful to others as well. I am experimenting with it for a new theme that utilizes gulp with purgecss, scss, alpinejs.
Beta Was this translation helpful? Give feedback.
All reactions