We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53688
    • 12 Posts
    Is it possible to manage only certain pages of a site through ModX, while leaving other pages alone?

    I have an existing site that is used both for product promotion as well as product registration. The content writers need to be able to update content and add new product pages, as necessary. The rest of the pages that make up the site involve some intricate code for product registration. In those pages, frequent updates are not required and rewriting the code to snippets, etc. would be an enormous task.

    So, does anyone know of a way to have ModX manage only those marketing-type pages but let the other pages and code exist as they always have? If not ModX, is there another CMS that would allow for that setup?

    Thank you in advance for any suggestions,
    Mike
      • 38783
      • 571 Posts
      It may be that you could do this with MODX, and I expect others will be able to advise on that.

      I was reading about Perch the other day. I have not used it but my understanding is that your situation is exactly what Perch was created for.

      https://grabaperch.com/
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 17301
        • 932 Posts
        You could retain the exisiting pages by just setting them up as static resources and selecting the necessary php or html files. Everything else that is editable can be a normal document resource.
          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 53688
          • 12 Posts
          Quote from: lkfranklin at Oct 30, 2017, 02:20 PM
          You could retain the exisiting pages by just setting them up as static resources and selecting the necessary php or html files. Everything else that is editable can be a normal document resource.

          Thank you. Quick question regarding this - where would I set the existing pages up as static resources? I tried going to the Files tab and uploading a page there, but the site could not access the file ("not working", "too many redirects").
            • 53688
            • 12 Posts
            Quote from: andytough at Oct 30, 2017, 02:12 PM
            It may be that you could do this with MODX, and I expect others will be able to advise on that.

            I was reading about Perch the other day. I have not used it but my understanding is that your situation is exactly what Perch was created for.

            https://grabaperch.com/
            Thanks for the tip. Starting to read up on Perch just in case I can't get things to work out.
              • 17301
              • 932 Posts
              It looks relative to the modx installation. So if for example you had a booking.php file just upload that to your modx root and then in the static resource input field just select, or type, booking.php.

              If you place it in a subfolder /scripts/booking.php then just type it as that also.

              So for a complete guide:

              - Upload your exisiting files to your server
              - Log into MODX Manager
              - Create a resource (eg: booking) and in the settings tab set it to a static resource
              - Save the resource and then refresh the page.
              - In the input field for Static Resource type the path and filename of what you want the resource to reference.
                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 53688
                • 12 Posts
                Quote from: lkfranklin at Oct 30, 2017, 02:48 PM
                It looks relative to the modx installation. So if for example you had a booking.php file just upload that to your modx root and then in the static resource input field just select, or type, booking.php.

                If you place it in a subfolder /scripts/booking.php then just type it as that also.

                So for a complete guide:

                - Upload your exisiting files to your server
                - Log into MODX Manager
                - Create a resource (eg: booking) and in the settings tab set it to a static resource
                - Save the resource and then refresh the page.
                - In the input field for Static Resource type the path and filename of what you want the resource to reference.

                LK,
                Thanks. I'm getting there and think I'm a lot closer to making this work. Still having an issue and hoping maybe there's a "gotcha" that I'm missing.

                - Uploaded file (test.html - straight html, no links or references to anywhere)
                - Created the New Static Resource
                - Title: test.html
                - Resource Alias: test.html
                - Static resource: ./test.html (populated by selecting the file)
                - Resource Type: Static Resource
                - Optionally tried checking "Freeze URI" and setting URI to test.html

                Every time I try to access the new page, the browser goes to http://myurl/test (not test.html) and tells me it tried too many redirects and will not load. Any thoughts?
                  • 17301
                  • 932 Posts
                  Do you have a modified htaccess file? If so does it have any redirects in place?
                  When you go to visit the page are you using the 'view' from in the manager and does it make any difference if you go directly to the page in the browser (with the .html extension)?
                    ■ email: [email protected] | ■ website: https://alienbuild.uk

                    The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                    • 53688
                    • 12 Posts
                    Quote from: lkfranklin at Oct 31, 2017, 09:37 AM
                    Do you have a modified htaccess file? If so does it have any redirects in place?
                    When you go to visit the page are you using the 'view' from in the manager and does it make any difference if you go directly to the page in the browser (with the .html extension)?

                    I do have a modified htaccess file. It was needed to make friendly URLs work. I've included the important snippets below.

                    ------------------
                    # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
                    RewriteCond %{HTTP_HOST} .
                    RewriteCond %{HTTP_HOST} !^mydomainnamehere\.com [NC]
                    RewriteRule (.*) http://mydomainnamehere.com/$1 [R=301,L]

                    # The Friendly URLs part
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]

                    RewriteCond %{REQUEST_URI} \.html$
                    RewriteRule ^(.*)\.html$ $1 [R=301,L]
                    ------------------

                    I wish I was more knowledgeable as far as the code that makes it up, but I'm guessing it may be linked to those last 2 lines (?).

                    It doesn't make a difference if you go directly to the page or through View. Exhibits sames behavior either way.