Problem with placement of mysource_area tags

We're currently running Matrix 3.6 but have an instance of 3.10.1 that we are using for testing before upgrading. I'm currently testing the designs.


In most of our designs we have the main mysource_area tags (menu, page lineage, search box, for example) at the bottom of the parse file, after all the HTML.



These mysource_area tags are set to print="no", and are referenced with mysource_print tags at the appropriate places within the HTML.



These work perfectly in 3.6, so I know they are set up correctly. They are identical in our test instance of 3.10, as this was created as an exact copy of our 3.6 setup.



I went into one of our designs in the test instance of 3.10 to check it. It looked fine. I made no changes, but hit commit just to make sure nothing strange was going to happen upon re-parsing…



The menu and search box disappeared down to the bottom of the page, and the only way I could get them back to their rightful places was to replace the mysource_print tags with the actual mysource_area tags, and change print="no" to print="yes". For some reason the page lineage stayed in the right place…



I tried manually re-parsing from the details screen. I also tried clearing the cache (on the page I was viewing and on the design), putting the parse file back the way it was, re-parsing again, and clearing the cache again, but none of this made any difference.



Does anyone have any suggestions as to why this may have happened? Could it be a bug? I'm just hoping I won't have to go through and change all our designs before we upgrade… we have tons. :unsure:



Thanks.

This should still work … can you send your parsefile to support@squiz.net so that we can test it on our systems as well?

This is a followup for anyone who experiences this problem…


If you have declared your Matrix design areas outside your HTML code, at the bottom, move them up to the top, after the doctype declaration but before the opening HTML tag. Also check the 'print' options in your customised design areas - you may need to change them from yes to no.



Hope that makes sense.



Thanks to Squiz support for sorting this out for us. :slight_smile:



Margaret