-
☆ A M B ☆
- 265 Posts
I've been interested in creating "themes" for MODX for a very long time, making themes as a passive income has been proven and the MODX community is perfect for this right now so I'm pretty excited about these possibilities.
Now, I put the word themes inside quotes because currently MODX doesn't have a concept of interchangeable themes like other content management systems and WordPress. A MODX template is not a theme because it doesn't include any meta data about CSS files, JS files and other theme-related info.
I think this is the first problem we need to discuss and discover a possible solution. For standard website owners and for a lot of the web developers out there having installable and interchangeable themes is mission critical. Simply having to reconfigure many templates, assets and chunks to change the site design is not going to cut it.
At this point we are all going to separately create our own system for interchangeable themes.
We can push to introduce a core "theme" concept to MODX, maybe for 2.3.5, 2.4 or 3.0; or we can come up with some kind of plugin or extra which handles swapping and replacing themes.
What ideas and concepts have you guys got for packaging, swapping and interchanging themes in the smoothest way possible?
MODX Ambassador for Thailand. Managing Director at
Monogon, a web design and development studio based in Bangkok, Thailand. -
Follow me on Twitter.
I also have a default set up much like the flexibility one that I can use on the majority of projects. I haven't tried packaging it as yet but will give it a go and put it out in the community to use. Would myComponent be the best method for this?
Some way to select themes like there is in WP would be a great addition. I guess it would work by replacing templates, tv's and chunks without touching the content. Although it would also be good to have the option of adding some dummy content...this way users get the whole selection of content possibilities such as galleries, blog posts, accordions, tabbed areas, seo etc etc.
But packaging up all the extras in addition to this would mean huge file sizes wouldn't it?
I'm not sure what can currently be packaged and whether a whole site (extras included) could feasibly be unpackaged (via PM) to a fresh Modx install?
www.9thwave.co.uk
WEB | DESIGN | PRINT
-
☆ A M B ☆
- 91 Posts
It`s really hard goal for MODX. We can not switch templates for all resources by some system setting. Natively...
I do this via
phpTemplates+
modxSmarty.
Clickable:
[ed. note: Fi1osof last edited this post 12 years, 11 months ago.]
-
☆ A M B ☆
- 350 Posts
Haha nice fix! But not really something that would be good for general users...
-
☆ A M B ☆
- 91 Posts
Quote from: ThaClown at Nov 07, 2013, 05:50 AMHaha nice fix! But not really something that would be good for general users...
Have you things how create it in pure MODX? I did not. Create templates with prefix in MODX-tags or some else?... I dont think so.
-
☆ A M B ☆
- 23 Posts
Now "Creative Freedom" is a restriction here. ;-)
Programmers love the clean slate. Its difficult to have a base/rigid system and everyone has their own.
As an end user switching themes would require minimum 2 things:
Fixed Template or set of Templates.
Pre-configured chunks/tv's and snippets.
Thats just to get started with. Every developer will have their own system for templates. I don't think there's a one base solution for all. But strategy could be same for all.
Just a note: Batcher allows you to change the template for multiple pages very easily. I'm not sure if template variables keep their values, though.