We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23718
    • 15 Posts
    Hello

    First, thx for your plugins. Very usefull

    I tried to add a custom button, that it could add a new doc in the current parent.

    parent01
    |
    |child01
    |child02
    |
    parent02
    |
    |child03
    |child04

    In frontend, I’m on doc child02. If I click on this custom buttom, it add new child in parent01, but if I’m on child03, it add new doc in parent02. Is it possible to do this? Do you have any idea for this?
    I tried something like ’Neue Arbeiten’,’new’,’[*parent*]’,’7’,’1,2’ in Custom buttons (here ’7’ is template and ’1,2’ roles), but nothing... embarrassed
      • 16610
      • 634 Posts
      Quote from: popboy at Sep 21, 2009, 03:51 PM

      In frontend, I’m on doc child02. If I click on this custom buttom, it add new child in parent01, but if I’m on child03, it add new doc in parent02. Is it possible to do this? Do you have any idea for this?
      I tried something like ’Neue Arbeiten’,’new’,’[*parent*]’,’7’,’1,2’ in Custom buttons (here ’7’ is template and ’1,2’ roles), but nothing... embarrassed

      Sorry, it’s not possible. You will need separate buttons: one for new docs to parent01 and one for new docs to parent02.

      Added later: I mean this is not possible right now without some hacking but I’ll add this to new feature requests list.
        Mikko Lammi, Owner at Maagit
        • 18206
        • 59 Posts
        Quote from: popboy at Sep 21, 2009, 03:51 PM

        Hello

        First, thx for your plugins. Very usefull

        I tried to add a custom button, that it could add a new doc in the current parent.

        parent01
        |
        |child01
        |child02
        |
        parent02
        |
        |child03
        |child04

        In frontend, I’m on doc child02. If I click on this custom buttom, it add new child in parent01, but if I’m on child03, it add new doc in parent02. Is it possible to do this? Do you have any idea for this?
        I tried something like ’Neue Arbeiten’,’new’,’[*parent*]’,’7’,’1,2’ in Custom buttons (here ’7’ is template and ’1,2’ roles), but nothing... embarrassed


        I’m not sure this is what you’re trying to do.. Anyhow, I wanted to have the "add document" button to add a child only if the current document was a container. If not, add it to the current document’s parent container.

        I implemented a very simple hack to the qm.inc.php file, starting at row 111, from:
                            if ($this->addbutton == 'true') {
                                // Add button
                                $addButton  = '
        							<li>
        								<a class="qmButton qmAdd colorbox" title="'.$doc['pagetitle'].' » '.$_lang['create_document_here'].'" href="'.$this->modx->config['site_url'].'manager/index.php?a=4&pid='.$docID.'&quickmanager=true">'.$_lang['create_document_here'].'</a>
        							</li>';
        
                                // Does user have permissions to add document
                                if($this->modx->hasPermission('new_document')) $controls.=$addButton;
                            }
        

        to:
                            if ($this->addbutton == 'true') {                    
                                if ($doc['isfolder'] == 1) {
                                    $targetID = $docID;
                                } else {
                                    $targetID = $doc['parent'];
                                }
                                // Add button
                                $addButton = '
                                <li>
                                <a class="qmButton qmAdd colorbox" title="'.$doc['pagetitle'].' » '.$_lang['create_document_here'].'" href="'.$this->modx->config['site_url'].'manager/index.php?a=4&pid='.$targetID.'&quickmanager=true">'.$_lang['create_document_here'].'</a>
                                </li>
                                ';
                                
                                // Does user have permissions to add document
                                if($this->modx->hasPermission('new_document')) $controls .= $addButton;
                            }            
          • 23718
          • 15 Posts
          mmmh interesting!

          i’ll try it later and give feedbacks. But it seems a good solution.
            • 21521
            • 7 Posts
            Khm, save and close doesn’t work on my installation anymore. it saves document and QM window stay on top after. there is no close button at bottom too, so i’m often stuck in editing mode... is it possible to have rounded frame with close button around QM+ iframe window like in 1.0 version?
              • 16610
              • 634 Posts
              Quote from: nikk at Sep 24, 2009, 09:41 PM

              Khm, save and close doesn’t work on my installation anymore. it saves document and QM window stay on top after. there is no close button at bottom too, so i’m often stuck in editing mode... is it possible to have rounded frame with close button around QM+ iframe window like in 1.0 version?

              Can you tell your QuickManager+ version and the browser you are using?

              Rounded frame was removed from the version 1.3.2: "CSS style didn’t work properly with IE and crashed too often with Safari, had to replace it with minimalistic style for better cross-browser compatibility"

              If you want you can change the Modal Box (ColorBox) frame to rounded frame by modifying the qm/css/qm-colorbox.css.
                Mikko Lammi, Owner at Maagit
                • 16610
                • 634 Posts
                Just noticed that there is a small bug in QuickManager 1.3.2 that prevents using other language files than english.

                Corrected version 1.3.2.1 attached to this post and soon available from repository too.
                  Mikko Lammi, Owner at Maagit
                  • 28651
                  • 26 Posts
                  Seems easy, but how do I enable this for my other pages? It only shows up on my home-page.
                  I’m not sure how to enable it on another page. I see that the code is being included on the other pages though, it’s just being hidden by css.
                    • 16610
                    • 634 Posts
                    Quote from: stormlifter at Sep 30, 2009, 11:42 AM

                    Seems easy, but how do I enable this for my other pages? It only shows up on my home-page.
                    I’m not sure how to enable it on another page. I see that the code is being included on the other pages though, it’s just being hidden by css.

                    I haven’t seen this problem before. QuickManager+ should automatically be present on every page unless you explicitly deny it.

                    Could you tell more what you mean by hidden by css? Is the QuickManager+ toolbar visible? Or could you copy/paste your page source here?
                      Mikko Lammi, Owner at Maagit
                      • 28651
                      • 26 Posts
                      Well I can look with Firebug and see the code for it there, it’s just "hidden".
                      Also is there something I should include in my Templates to enable QM+? The template for home and another page are the same, but it works on home and not on the other page.