I moved a previous site into ModX and am really enjoying the functionality and ease of use.
Here's a small issue. Our software has a piece of code that refers users out to a .php page on our site. I can't change the link in the software (well, I probably will for the next release but in the meantime the link needs to work). How do I tell ModX to name a page ____.php? I don't want to use redirects because the link from the software is also passing in a couple of pieces of data that I need to preserve.
Thanks for any help you can offer?
-
☆ A M B ☆
- 24,524 Posts
Perhaps use a snippet that includes your .php file? If it's a stand-alone page, then use a weblink that links to yourfile.php, and include a link back to the site in your .php page.
I thought that was what Content Types were for?
I just created a new System -> Content Type
PHP
Mime Type = text/html
File Extension = .php
then set a resource to that and it then runs as .php
-
☆ A M B ☆
- 24,524 Posts
Thanks! I think Sparky's suggestion will do exactly what I need. Appreciate the help -- good community here.
-
☆ A M B ☆
- 24,524 Posts
@sparky - Can you describe the resource? What type of resource? Does it have a snippet that includes the external .php file?
It's just a regular resource. What you then put in it, snippets/chunks, is up to you.
All my solution offered was for the url to end in .php.
It didn't change the processing of the Resource.
Doesn't this work, see attach
change .html to .php ?
Evolution user, I like the back-end speed and simplicity
