We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38001
    • 6 Posts
    Site http://www.rodeko.lv/
    1) Button "Sākums" (Home) makes link twice and offcourse - error loading
    2) Clicking on "Agrisem" link goes "agrisem/" and if you click on any level 1 menu - link goes to "agrisem/agrisem/" - like 2nd level menu - and offcourse - error loading
    3) Clicking on 2nd level menu like "Agrisem->Diski" link is "/2/agrisem/diski.html" - why there ar "2" inside of link?

    Please help! I'm sitting on this problem already 2nd day and can't figure out where is problem.
      • 31946
      • 116 Posts
      The base_href tag is missing inside your <head></head>, try adding this:
      <base href="http://www.rodeko.lv/" />
        • 38001
        • 6 Posts
        Yes! smiley Problem #2 solved! Thankyou Wanze! smiley
          • 37582
          • 65 Posts
          What did you use to generate those links? What is your site_url setting? In your config.inc.php, what is your base_url?
            • 38001
            • 6 Posts
            Wayfinder generates urls

            $modx_base_url= 'http://www.rodeko.lv/';

            Friendly URLs settings:
            use_alias_path = yes
            automatic_alias = yes
            link_tag_scheme = -1 (not sure what this setting does)
              • 37582
              • 65 Posts
              I think it is some kind of a configuration problem of yours.

              link_tag_scheme = -1 means that your urls are generated relative to your site_url. Can you please find out what your site_url setting is.

              If you haven't already done so, please use this for your base_href:

              <base href="[[++site_url]]" />

              So let modx generate it and see what it says...
                • 38001
                • 6 Posts
                It is interesting..
                Config file:
                $modx_base_url= 'www.rodeko.lv'
                $url_scheme= $isSecureRequest ? 'https://' : 'http://';
                $http_host='';
                $site_url= $url_scheme . $http_host . MODX_BASE_URL;
                Bet when printing out site_url, on <Title> for example it is "http://www.rodeko.lvwww.rodeko.lv"
                Can't figure out where setting is changed..

                But setting <base href="" /> not <base href="http://www.rodeko.lv/" /> problem #2 come's back.
                  • 37582
                  • 65 Posts
                  Ah, the forums screwed it somehow... I wanted you to use this:

                  <base href="[[++site_url]]" />


                  Moreover, your $modx_base_url should be "/" or anything, which means a directory, not an URL.

                  I think you can set the site_url setting in your context settings. Click on "web" in the resource tree and go to "Context Settings". If there is no setting called site_url create it. You don't have to fill in all the fields. Just use site_url as key and http://your-domain-name.tld as the value.

                  Clear cache, see what happens. [ed. note: chrisissorry last edited this post 12 years, 4 months ago.]
                    • 38001
                    • 6 Posts
                    Fantastico, it works! smiley
                    Thankyou very much! smiley

                    Still problems with #3 - First child of Parent menu makes url http://www.rodeko.lv/2/agrisem/diski.html
                    but 2nd and 3rd child url is http://www.rodeko.lv/dzilirdinataji.html
                    As You see - first child appends Resource Containers Aliases, bet other two - not. Why so?

                    And, found another problem - not with URL's smiley
                    - In Security- Access Controls-User Groups-Right Click on UserGroup-Update Group - never ending loading.. I guess without accessing that page i can't add any content manager to site?
                      • 37582
                      • 65 Posts
                      Did not see problem #3:

                      Make sure all of your containers have an alias, because otherwise modx will use their ids for the url slugs. Is dzilird... really child of agrisem? Looks like you badly mixed something up in your resource tree. Because there are two different documents I can find:

                      #1: http://www.rodeko.lv/dzilirdinataji.html
                      #2: http://www.rodeko.lv/2/agrisem/dzilirdinataji.html

                      What's the right one? What is the other one for???

                      Usually, your first link to your home page should not have any slugs attached to it and should merely point to your start_id. BTW, have a look at your settings, which resource is set as start id.

                      I don't have any experience with user groups so far. You can add users via the manage users tab. Maybe you can do it there. Otherwise you'll have to wait for version 2.2 I think... Or check the error log (tab reporting) whether errors occur.

                      [ed. note: chrisissorry last edited this post 12 years, 4 months ago.]