We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    Quote from: lauener at Aug 21, 2006, 10:44 AM

    Everything is OK, but now I have to make the navigation available. What next steps are necessary? I read the MollioMenu.txt-Document, but do not understand where I must write which text.

    Thanks for help, Hans
    Hello Hans!

    Did you follow the instructions that are in the resource repository to "install" the template package? There is no need to write anything anywhere. After you have setuped the templates, just select mollio type c as your template and vóila, menus will appear.

    The menus will be built from the document tree like this:

    * Item1
    * Item 1.1
    * Item 1.2
    * Item 1.2.1
    * Item 1.2.2
    * Item 1.3
    * Item 2
    * Item 3

    In the top menu, you will have 2 first levels, so there will be Item 1, Item 2, Item 3 visible and Item 1.1, Item 1.2, Item 1.3 in the dropdown lists. Item 1.2.1 and Item 1.2.2 will be in the side menu when you are in item 1.2 or somewhere below that in the tree. Side menu will show up to level 5, you can make it go even further if you need.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 16711
      • 12 Posts

      Hello Hans!

      Did you follow the instructions that are in the resource repository to "install" the template package?

      Yes i did. But I forgot to set "Published default = YES!" So all my sites were not published, Shame on me.

      Thnx a lot
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I’ve done that so many times that it’s finally just become a habit to immediately on installation go set the site configuration to publish by default! I got tired of beating my head against the wall trying to figure out why my new page wasn’t showing up in the menu!
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 22533
          • 41 Posts
          Hello everybody!

          First of all, thank you very much doze for porting the Mollio Template for ModX! grin

          I’m using it since a few days, and I found out that the original FlexSearchForm didn’t display the results quite well...

          That’s why I adapted it for the Mollio template, and called it "MollioFlexSearchForm"...

          It uses the styles provided in the CSS, so no need to edit anything... (except the config of course!)

          Simply call it like that, where "50" is the id of your result page...
          [!MollioFlexSearchForm? &FSF_landing=`50` &FSF_showResults=`0`!]

          Your result page should look like this :
          <h1>Search Results</h1>

          [!MollioFlexSearchForm? &FSF_showResults=1!]

          Maybe it could be useful to add it to the main archive?

          Anyway, hope you will enjoy it! wink
            • 7923
            • 4,213 Posts
            Quote from: P4T4T4 at Aug 26, 2006, 03:49 PM

            Maybe it could be useful to add it to the main archive?
            Thanks alot for sharing! I have added it to the archive. smiley


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 22533
              • 41 Posts
              Quote from: doze at Aug 26, 2006, 06:09 PM

              Quote from: P4T4T4 at Aug 26, 2006, 03:49 PM

              Maybe it could be useful to add it to the main archive?
              Thanks alot for sharing! I have added it to the archive. smiley
              Your welcome!

              Well, I forgot to tell you that a demo is available on my website : www.brethous.fr

              Search with term "presentation", in order to find something, as the website is pretty empty for the moment... tongue
              The version on my website doesn’t display "pagetitle" and "description" but "longtitle" and "introtext".

              I also wanted to add another line to the search result, calling the "Breadcrumbs" snippet to show the path of each document in the website. But it doesn’t seem like you can pass a document ID to the snippet...
              When I’ll have a little more time, I will modify this snippet, and add an optional parameter to pass the document ID... I’ll tell you if so... wink
                • 22533
                • 41 Posts
                Houston, we’ve got a problem!

                When I try to validate the CSS "main.css", the validator returns this error :

                Erreurs
                URI : http://www.mywebsite.com/template/main.css

                * Ligne: 47 Contexte : form.f-wrap-1 label b .req

                Propriété érronée : line-height Erreur lors de l’analyse grammaticale. - [empty string]

                Here is the line in the current (wrong) version :
                form.f-wrap-1 label b .req {color:#c00;font-size:150%;font-weight:normal;position:absolute;top:-.1em;line-height:1;left:-.4em;width:.3em;height:.3em}

                It is used to display the "*" in a form (to inform that field is mandatory)...
                <label for="firstname"><b><span class="req">*</span>First name:</b>

                I replaced "line-height:1" with "line-height:1px", and the validator is now OK...
                Anyway, I don’t think this is right, even if the display works correctly...

                It is really odd, because other "line-height" statements don’t need any units to be added after the figure "1". huh

                That’s why I think this is due to the ".req" used for the "<span>".
                I’m not an expert in CSS, so if somebody could confirm this, and propose a solution, it will be really great! grin

                Thanks in advance! wink
                  • 23703
                  • 180 Posts
                  I don’t think there is anything wrong with your code. Eric Meyer has written about this. There is a bug in the validator. According to the Eric’s comment on the bugreport you could try adding a decimal, ie "1.0"

                  Hope this helps
                    • 16711
                    • 12 Posts
                    Another litte problem: If I use the friendly URL Settings, the "Mollio-CSS Style"? <http://www.unifr.ch/lb/web/lds1/erfahrungsberichte.html> is no longer available. Who can help? What shall I do?
                      • 7923
                      • 4,213 Posts
                      if you have friendly alias paths enabled, that can happen. Add [(base_url)] to your css file paths, so this:

                      <link rel="stylesheet" type="text/css" href="assets/templates/mollio/css/main.css" media="screen" />


                      in your template would become this:

                      <link rel="stylesheet" type="text/css" href="[(base_url)]assets/templates/mollio/css/main.css" media="screen" />


                      etc..


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."