We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3249
    • 3 Posts
    I’m assisting a friend make some updates to his site that uses modx.

    Before I get too far - are there permissions settings? I don’t have access to the admin login so are there features that I don’t get because of this?

    First of all, friendlyurl is off, so all pages appear dynamic.

    There is an image that links properly using "[~228~]" but when I click the source tab under view resource data the link points to an actual page?

    Here is the page: http://www.secureidentitysystems.com/index.php?id=74

    You can see that the click here to learn more white button on the left links to an actual absolute path instead of a dynamic page..how? Is it hard coded in somewhere? When I view the source there I can type in it and change it, but there is no save? Is that a admin feature?

    The last question is where is the header code typically? I’ve looked for hours and can’t see where to update it so I can add some jQuery.

    Thanks!

      • 9207 ☆ A M B ☆
      • 2,475 Posts
      Hmm.... lots of questions here...

      Yes, MODx has lots of permissions... it has the most thorough permissions schema of any CMS I’ve worked with, so that’s a wormhole of a question. Can you tell us: are you able to log into the MODx manager for this site at http://www.secureidentitysystems.com/manager/ ?

      Please, always include your MODx version number in your posts. I can tell that you’re running MODx Evolution... looks like version 1.0.4 or later.

      The [~123~] type shorthand will generate a full URL for the resource id specified (e.g. page id 123 in this example). It’s odd if you have unfriendly URLs on the rest of your site, but this link is pointing to an actual PHP page. What might have been done is that the dev might have created a weblink that resolves to a physical file on the site (weblinks can also point to external sites). This lets you handle external links alongside internal pages so they can show up in menus (and since they get an id, they can linked to using the [~123~] shorthand). It sounds like that’s what’s being used... the "content" of a weblink will just be a URL. It looks like if you FTP’d to this site and navigated to the /forms directory, you’d expect to find a PHP file named information_businesses.php. But considering that the page is generating a 404 error, maybe that’s the whole problem: that page ISN’T there. I’d recommend avoiding using weblinks unless you really need one... they might be confusing to MODx newcomers.

      Is any of that helpful?
        • 3249
        • 3 Posts
        Thank you so much for your reply!

        I was able to get the admin access so surely I now have all allowed permissions.

        So where did the dev create this weblink? That’s what I cant find for some reason, I’d like to just replace it how it should be. What’s weird is where the image links (228) is an actual page: http://www.secureidentitysystems.com/index.php?id=228 with nothing on it. Why the page settings show it links to 228 but the source links to an .php page is beyond me.

        One last question, where do I go to edit the header code? I want to add some jQuery links.

        Thanks again.
          • 9207 ☆ A M B ☆
          • 2,475 Posts
          I think you need to brush up on how MODx handles templates -- it could be that this link is hard-coded in a template. It’s not like WordPress that has a "the_header()" function, MODx uses placeholders to give you complete freedom in terms of the HTML/CSS you want to use as well as complete freedom in terms of the URL you want to use to access each page.

          I did a series of videos, but this one is probably most relevant to you:
          http://tipsfor.us/2009/04/30/creating-templates-in-modx-part-i-part-iv-in-the-series/

          And re permissions, that’s a bad assumption: just because you have logged into the manager doesn’t mean you have full permissions. Like I said, it’s REALLY granular.

          Anyhow, see if it doesn’t make more sense to you after a few videos. If you want to PM me login info, I bet I could figure it out for you in a few minutes.