-
☆ A M B ☆
- 24,524 Posts
To create a template, simply go to Elements->Manage Elements, and in the Templates tab and create a new template. Open one of your original html files in a text editor and copy/paste the whole thing into the template field. Give it a name and save it.
Now you replace the main content text with the [*content*] tag, and any other content (such as menus) with other MODx tags, and the content of the documents you create will be inserted into the content section of your template when a page is requested. The original HTML structure remains intact.
http://www.sottwell.com/modx-from-the-inside.html
I agree with Zi.
This might help you see what steps to follow:
http://www.bobsguides.com/porting-your-site-to-modx.html
-
☆ A M B ☆
- 24,524 Posts
Careful of what you ask for; you just might get a severe case of Information Overload here
I just wasted an hour and a half staring at drupal and my head was about to explode thank you so much for some actual freaking documentation. And So my modx adventures begin!
no freakin way in 45 minutes after install i’ve already accomplished more then i did 2 hours with drupal. I can’t thank you guys enough. I am noticing their is a {longtitle} variable so i am guessing there is a shortone as well? Along with perhaps a {date} variable basically I am trying to think how I am gonna do 3 seperate link variables as well as 2 of the same news variables only in different styles meaning the main long news header on the content section and then in the top right box it does a 3-4 listing of the news. How do I specify how many news elements can be shown with the [content] variable?
Quote from: jessay at Aug 24, 2009, 02:18 AM
no freakin way in 45 minutes after install i’ve already accomplished more then i did 2 hours with drupal.
We’re not surprised at all.
I can’t thank you guys enough. I am noticing their is a {longtitle} variable so i am guessing there is a shortone as well? Along with perhaps a {date} variable basically I am trying to think how I am gonna do 3 seperate link variables as well as 2 of the same news variables only in different styles meaning the main long news header on the content section and then in the top right box it does a 3-4 listing of the news.
pagetitle is the short version (it’s the Title field in the Manager). Those are content fields of a resource and they’re displayed with [*fieldName*] in Evolution (and [[*fieldName]] in Revolution).
All the fields on the Create/Edit resource panel are available for display and you can use any of them for any purpose but, if they are not enough for you, you can create more by adding template variables. As for dates, you have: createdon, publishedon, and editedon.
-
☆ A M B ☆
- 24,524 Posts
For displaying lists of articles or blog posts or whatever you’ll want to use the Ditto snippet.
By the way, feel free to go poke around in my site’s manager and see what stuff looks like.
Sleeping on the couch tonight the customization the power the capabilities are just over-whelming, especially with the ability to create your own variables.
I had actually just stumbled on the ditto snippet so thank you for confirming I am on the right track