We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21778
    • 223 Posts
    Hey guys.

    I want my seach form to be on my template inside an div below my menu. However! i want my search results to appear on a new page, inside the content.

    With: &AS_landing=`75` i get the results on page 75, but not in the pages content.

    Thanks
      • 5811
      • 1,717 Posts
      Add the first ajaxSearch snippet call in your template (under your menu) with
      &AS_showResults=`0` &AS_landing=`75`
      and on the content of the page #75 add an other ajaxSearch snippet call with
      &AS_showForm=`0`


      See http://www.modx.wangba.fr/index.php?id=51 for more examples.
        • 21778
        • 223 Posts
        Thanks for your quick respond ! I will have a look at it when im done styling... it’s hard to stop when you begun hehe!

        A question regarding styling though, if you got some time to spare:
        I want to place a text in front of the search box like "search the website:", only it’s in Danish and not English, so some special letters get messed up if i type inside the layout.tpl.html... guess i can make it work by using UTF-8 Unicode Character Sets, just want to know if there’s another way?
          • 5811
          • 1,717 Posts
          only it’s in Danish and not English, so some special letters get messed up if i type inside the layout.tpl.html... guess i can make it work by using UTF-8 Unicode Character Sets, just want to know if there’s another way?
          This is the correct way to do this. Add your text in the layout.tpl.html and save this file as UTF-8.
            • 21778
            • 223 Posts
            Actually i just copyed the layout.tpl and made a chunk.... just found this " &tplLayout ", that way charset is not messed up.

            Could you tell me where i change the text value inside search box? it says "Search here..." =)
              • 5811
              • 1,717 Posts
              Could you tell me where i change the text value inside search box? it says "Search here..."
              Inside the language file.

              But as the danish.inc.php language file is missing, you need to create this file by translating the english-utf8.inc.php first.
              Look at this post. Kleist has provided a 1.8.1 danish language file.

              If you use the release 1.8.2 version rather 1.8.1, translate the lang file of 1.8.2 release. Then a donation is welcome wink
                • 21778
                • 223 Posts
                Quote from: coroico at May 07, 2009, 08:32 AM

                Could you tell me where i change the text value inside search box? it says "Search here..."
                Inside the language file.

                But as the danish.inc.php language file is missing, you need to create this file by translating the english-utf8.inc.php first.
                Look at this post. Kleist has provided a 1.8.1 danish language file.

                If you use the release 1.8.2 version rather 1.8.1, translate the lang file of 1.8.2 release. Then a donation is welcome wink

                Haha, alright ill make a donation when/if i succeed smiley
                  • 21778
                  • 223 Posts
                  I’m having some problems with displaying danish letters in search results!

                  My database is "iso-8859-1"

                  Also (no biggie) but when i login/out with WebLoginPE, while having just done a search, the search results are wiped, is this fixable?
                    • 5811
                    • 1,717 Posts
                    I’m having some problems with displaying danish letters in search results!

                    My database is "iso-8859-1"
                    And which Page charset do yo use ? UTF-8 or ISO-8859-1 ?

                    Look at this post, it could be useful for you.


                    Also (no biggie) but when i login/out with WebLoginPE, while having just done a search, the search results are wiped, is this fixable?
                    Without an url of a live site, It is not easy to do understand what could be your issue.
                      • 21778
                      • 223 Posts
                      My site is located here: http://www.norlins.dk/uchihaproject
                      For manager use: http://www.norlins.dk/uchihaproject/manager/
                      Username: user
                      Password: helpme

                      I have actually already looked at that post. I tryed to comment out the line as suggested, but it doesn’t change anything for me.