-
☆ A M B ☆
- 24,524 Posts
Here’s what I usually do:
1. Create a sample web page, exactly as you want it to look. Use whatever tools you want to do this (Rapidweaver, text editor, however you are most comfortable creating a web page). HTML/javascript/css only; no PHP allowed here.
2. Copy this to a new template in the MODx manager, set up the correct file structure for css files and such (usually in assets/templates/templatename) and adjust the paths for these in the template.
2. Create a document and set your new template as its template.
3. Start replacing the dynamic parts of the template with the appropriate MODx tags (document variables such as [*content*], TVs, snippets for PHP code, etc).
Once you get it all set up, then you can set your new template as the site default in the Configuration.
-
☆ A M B ☆
- 24,524 Posts
If you can open it and it looks the way you want it to in your browser, then you can use it.
Take a look at
http://www.sottwell.com/andreas00.html
http://modxcms.com/forums/index.php/topic,44157.0.html
both of these are 3 column templates and could be developed to include your design.
sottwell converted first link and I converted second link.
do either of these seem of use to you.
I can advise on second.
First is downloadable from
http://www.sottwell.com/andreas00.html
I did look at your code you need to get images into HTML first
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
My buttons and so on? but i every thing right then?
Where should i but my "images" to on the FTP server, template/topslemvig ?
TopsLemvig is the name of my file.
BTW.
I have allmost codede my template, but i want to make a search engine, i havent done any buttons or some thing, should i do that or how does it work?
Have you loaded MODx to your server/host yet?
If so where you place your images is your choice if small site can be in root (not agood idea in my view)
but your XHTML must reflect path.
Possible other paths
assets/images
assets/templates/images
assets/templates/
yourTemplateName/images
modxRULES
http://modxrules.com/articles/where-to-keep-your-css-and-template-images suggests :-
assets/comp
assets folder is created with MODx install.
Looking at your files you will need seperate images for header and content.
Not one as you have.
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
My content and header, is placed together, so its not possibel to copy the template unless u take a screenshot or something..
What about the buttons? - I can not just make some random buttons, because i would like that oppintunity to EDIT my buttons if possibel.
So how do i do that? Make som empty buttons??
I would second that last comment by mconsidine.
I have learnt a lot from The Coding, Pad Bobs Guide’s and Susan Ottwell’s Tutorials.
I think from your repies that a better understanding of the system is required on your part.
I found the podcasts at the Coding Pad made sense once I had read the Tutorials.
I think you should get your template sorted out before worring about the buttons that can come later...
Have you a localserver running with MODx???
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
My own server? - no, its from One.com - if thats is what u mean