Hey all, I had a quick search and couldn’t quite find what I needed; Sorry if it has been touched upon before!
Basically, a friend-of-a-friend has a large site and they’re looking to ditch their IT guy and try to edit it themselves using a CMS. I have a bit of knowledge with sites so I offered to help (uh oh! haha)
The website has alot of PHP that seems to auto select the page to view depending on whether the user has selected low graphics (turns off the stylesheet, right?) or in a different language (redirects to a spanish version of the site). It’s set so that index.php does the redirecting (either to engIndex.php or spanIndex.php)and has nothing but PHP code written on it. So I’m a little confused because I’m trying to figure out what the guy before me did although it seems like a pretty cool way of doing it.
However, my problem comes with using the entire site, php redirects and all, with MODx.. I have made a database and installed MODx on a local test copy of the site, but where do I go from here?
Any help / pointers / critique of my jumble is much appreciated. I apologise if I’ve confused you.
RT
-
☆ A M B ☆
- 24,524 Posts
That won’t be easy to port. Custom-coded dynamic sites rarely are.
I see, this could be a problem then. Any advice on where I’d start / anything I could use to help me?
Thanks!
RT
I’ve done something lazy. Rather than including each individual .php file, I’ve just copied everything from said files and pasted it directly onto the index page. I reckon without these dynamic includes it’ll make things alot easier for everyone.
The usual method would be to put that content in chunks and put a chunk tag where the "include" is (assuming that there’s no real PHP processing in the file). If there is, then you’d put that code in a snippet that returned the results and put a snippet tag in place of the "include".