Well, again you’ve upgraded, because things were a bit broken. For an experienced developer, this is certainly a few hours work max.
For @vibedesign s code, first paste it into a simple html structure, then if it works paste it as I said into the content section of a copied standard website template from the site. Then you can style more if needed, it will match the site, and you can implement it. Then, if you want to get fancy, take that same piece of code, put it into a chunk, and call the chunk in the template.
The behavior will be exactly the same.
Chunks are pieces of code, I guess any code can go in there. They are handy for example to hold your header, so that you can go right to that code really easily, and change it on multiple templates.
Like contact details could be in chunks, easy to get at and change, and also you can deliver the chunks you want, might have a quick location checker and deliver local info. Or head contents, which need to be updated sitewide. Keep in mind some sites will have multiple banners, footers, everything
Snippets are more the tools, its easy to make a snippet to get all the products and sort or search them for something, or users or whatever data you want.
Good morning.
Right got you. Yes makes sense… I can see the fluidity of it and certainly makes sense.
Yes the good thing is a significant upgrade! When I first got into the site I knew we had an issue immediately with out of date software.
I’m late to this party, but have a couple of comments:
- The UpgradeMODX extra makes it a lot easier and more reliable to upgrade MODX.
- The SPForm extra installs a spam-proof contact form and is quite simple to install (it usually works out of the box). I use it at Bob’s Guides and get no spam at all without using any form of Captcha. It has a number of spam-proofing options (including traditional Captcha with the math option).
Hi!
Aha I did see that SPForm when initially doing some digging two weeks ago. But, didn’t think we could apply it as the forms seemed totally different to what we had? Now I know however, that it’s because they were using obsolete code.
So I will have a look, thank you.
I can make a contact page pretty easily, but understanding the work flow on Modx is the culture shock more than anything I think. Learning curve. Thank you for that, will take a peek.
To be a little more precise, chunks are used for general HTML code (and scripts, etc.). Like @nuan88 mentioned you want to use those for elements on your site which occur in several templates (like a navigation, head-section, footer, etc.) so you have one place to update them on all sites.
Snippets are used the same way, but are made for processing PHP code.
Aha okay makes perfect sense. I can understand that. Jigsaw pieces are coming together. I think towards the end of last night, I’d been at it so long, I’d started to confuse myself - even over basic stuff.