Quote from: BobRay at Dec 17, 2010, 12:35 PM
I think part of the problem is that over 90% of what you want to do has nothing to do with MODx. With respect to the front end of a web site, MODx will replace any MODx tags in the text with whatever you tell it to (chunk content, TV content, language tag content, system setting content, or snippet return value), but otherwise, it doesn’t touch your HTML or CSS code....
Solve all the HTML and CSS issues by editing the template and your CSS file and get it looking the way you want. Then, move all the actual content on the page into resource fields (E.G. Long Title, pagetitle, summary, content), template variables, or chunks and replace that content in your template with the appropriate MODx tag. Generate your menu with Wayfinder. Bingo, you’re site is in MODx.
Thank you, BobRay, however the html/css part is not the issue I’m having. In fact, that is the easy part for me and what was drawing me to ModX in the first place...the fact that I could build a site, starting with how I would have built it in the first place, and by using the proper ModX tags, make the thing perform as a robust CMS. The ability to actually build a site that didn’t inherently look like just another template site. I’m not expecting ModX to solve anything regarding the basic html framework of the template or the CSS. In fact, the workflow you just outlined is how I envisioned it to go. The two last sentences you wrote are where I’m stuck.
I think the problem I’m having is the coding parts within the ModX-specific things, such as Template Variables and Snippits. The chunks part is easy to get and implement...in fact that part works similarly to php includes. I get that.
I’ve already implemented some of ModX into a test site. I took a site I did a while back, chosen because it is a very simple structure (kind-of template-like but easily built), which you all can view here:
http://www.rcpbc.org (the original non ModX version)
...and using that as the testing ground for ModX and so far have come to:
http://67.222.24.164/~rcpbc/index.php (the ModX training version)
As of this writing, the test version is to have three columns, as illustrated. Although you can see content in the three columns at the moment, only the main center column is being generated dynamically with a ’content’ tag. That’s straightforward to me. The header and footer are chunks that just contain the html code I would have hard-coded into the page to begin with. The top and footer menus are being generated with Wayfinder, but that was an easy tutorial implementation.
However, right now, as of this writing, the content you see in the left and right columns are just hard-coded into the template with plans on replacing the hard-coded content with content added in the resources area of the backend. Since I want to be able to use that same template for multiple pages throughout the site and have it be smart enough to house the correct content for the page you’re on, I’m assuming that that’s the job for template variables (that’s my newbie understanding, anyway).
Now what? How is that implemented is my problem. What template variables do I create...what code goes in them...how do they get attached to my template. I’m not getting that.