Quote from: BobRay at Sep 03, 2010, 03:32 AM
When you create a template in MODx, it lives in the database so you shouldn’t need a templates folder. The images can go anywhere you like as long as you remember where they are.
assets/images is a common location, but if you will have a lot of images, you might want to put them in separate folders.
As for your HTML code, unless it has PHP code in it, it should be fine as is, although you’ll probably want to move the parts that are repeated on more than one page into chunks (e.g., headers, footers, etc).
What about creating an assets/mysite/ ---- (mysite = placeholder for name of site) placing html and css into that?
and the images folder (and as you say for lots of images these can be placed into separate folders).
The mysite is for keeping a good structure for creating (if I create) multiple sites.
So the header containing images, left menu, main content should be placed into a chunk of code which is reused likely by inserting a code. So do I right click chunks and choose new chunk, and then just do a copy and paste of header with images, etc to create the various chunks? What do I do then?
Edit....
Moving onward
In elements I Right clicked chunks -> new chunk
Name: header
Description: header containing images
Category: ---- I right clicked category menu on the left side and picked new Category. I called the category folder test.
I had to do it over again since the Category dropdown list did not contain the test folder. So I right clicked Chunks again -> new chunk. Filled in the above info and picked the test category.
Went into Dreamweaver and picked the div header tag code. Copied and pasted it into the new chunk. Tried to save the chunk with the name header, but there was already one with that name, so I renamed it header-test. Saved.
Right clicked new chunk again.
Name: left menu-test
Description: This is the left menu containing link names
Category: test
Went into dreamweaver and picked the div left menu tag code. Copied and pasted it into the new chunk. Saved the chunk.
right clicked new chunk again.
Name: maincontent-test
Description: Here is where the main content will go.
Category: test
I pasted the maincontent div tag code into the chunk and removed the text I had inside the maincontent area. Saved chunk.
right clicked new chunk again.
Name: topmenu-test
Description: This is the area for the top menu links.
Category: test
Pasted the topmenu div tag code into the chunk. Saved chunk.
Where do I go from here?