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

    I´m trying to put SiblingNav working but i´m having an unexpected error saying:

    Warning: implode(): Invalid arguments passed in \core\components\siblingnav\model\siblingnav\siblingnav.class.php on line 99

    I´m trying to navigate from resources in diferent folders, and SiblingNav does it right in some resources, but then in other resources it gaves me the above error!!! Why?

    I have the following resource structure, and the siblingnav plugin is applied on the third level resources.

    -Properties
    --Villas
    ---Villa 1
    ---Villa 2
    ---Villa 3
    --Apartments
    ---Apartment 1
    ---Apartment 2
    ---Apartment 3


    SiblingNav Call
    <ul>
    	[[!siblingNav? 
    	&parents=`13,14,15,16` 
    	&prevTpl=`snprev` 
    	&nextTpl=`snnext` 
    	&selfTpl=`snself` 
    	&rowTpl=`snrow`]]
    										
    	[[+sn.prev]]
    	[[+sn.self]]
    	[[+sn.next]]
    	[[+sn.row]]
    </ul>


    The templates, i´m using the default ones.

    Any idea about this problem?

    Many thanks in advance,
    Nuno
      • 28000 ☆ A M B ☆
      • 397 Posts
      I don't think there is a placeholder called sn.row is there? Here is a link to the documentation:
      http://rtfm.modx.com/display/ADDON/siblingNav

      In the example these placeholders are shown:
      [[+sn.first]][[+sn.prev]][[+sn.prevlinks]][[+sn.self]][[+sn.nextlinks]][[+sn.next]][[+sn.last]]

      Cheers,
      Ben
        Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
        • 16899
        • 284 Posts
        Quote from: sonicpunk at Jul 24, 2013, 02:37 AM
        I don't think there is a placeholder called sn.row is there? Here is a link to the documentation:
        http://rtfm.modx.com/display/ADDON/siblingNav

        In the example these placeholders are shown:
        [[+sn.first]][[+sn.prev]][[+sn.prevlinks]][[+sn.self]][[+sn.nextlinks]][[+sn.next]][[+sn.last]]

        Cheers,
        Ben

        Hi Sonicpunk! thanks a lot for your reply!! I´ve removed the
        [[+sn.row]]
        but it´s not working again!!! sad
          • 21078
          • 77 Posts
          As Ben mentioned, there is no row-placeholder. So best is trying to use the minimum call (with your parent-ids) like in the official docs to see if you're still getting an error:

          [[!siblingNav? &parents=`13,14,15,16`]]
          [[+sn.first]][[+sn.prev]][[+sn.prevlinks]][[+sn.self]][[+sn.nextlinks]][[+sn.next]][[+sn.last]]
          
            L.net Web Solutions
            Professional webdesign and development with MODX and WordPress.
            • 16899
            • 284 Posts
            Quote from: Nebulous at Jul 25, 2013, 04:45 AM
            As Ben mentioned, there is no row-placeholder. So best is trying to use the minimum call (with your parent-ids) like in the official docs to see if you're still getting an error:

            [[!siblingNav? &parents=`13,14,15,16`]]
            [[+sn.first]][[+sn.prev]][[+sn.prevlinks]][[+sn.self]][[+sn.nextlinks]][[+sn.next]][[+sn.last]]
            

            I did this, but i keep having the error. The strange thing here is:

            For example, i have only one child in the apartments folder and 4 childs in the villas folder. If im in the apartment child and click on the previous siblingNav Button, it shows the last Villa. Until here it´s all ok. Then if i do previous again it gave me the error and no arrows anymore. Why?
              • 21078
              • 77 Posts
              Hm, strange ... do you have unpublished documents under Villas or Apartments?
                L.net Web Solutions
                Professional webdesign and development with MODX and WordPress.
                • 16899
                • 284 Posts
                Quote from: Nebulous at Jul 25, 2013, 06:55 AM
                Hm, strange ... do you have unpublished documents under Villas or Apartments?

                No, but the folder(parents) that archive all the childs have hidden from menus.
                  • 21078
                  • 77 Posts
                  Hm, ok ... let's try &showHidden=`1` and see if the error still occurs.
                    L.net Web Solutions
                    Professional webdesign and development with MODX and WordPress.
                    • 16899
                    • 284 Posts
                    Quote from: Nebulous at Jul 25, 2013, 07:15 AM
                    Hm, ok ... let's try &showHidden=`1` and see if the error still occurs.

                    It´s not working!!!! The above error persist!!! sad
                      • 16899
                      • 284 Posts
                      Quote from: legues at Jul 26, 2013, 03:32 AM
                      Quote from: Nebulous at Jul 25, 2013, 07:15 AM
                      Hm, ok ... let's try &showHidden=`1` and see if the error still occurs.

                      It´s not working!!!! The above error persist!!! sad

                      Any ideas about this problem?