joer80 Posted March 20, 2018 Share Posted March 20, 2018 I am working with the markup regions method, and I have noticed if I do a few pw-append groups in the same file, targeting the same id, they do not go in the same order as they are found in the file. Is that normal? Here is an example: <div id="main"></div> . (located in _main.php) Code in template file: <div id='1' pw-append='main'>First</div> <div id='2' pw-append='main'>Second</div> <div id='3' pw-append='main'>Third</div> May show on page as: <div id="main"> <div id='2'>Second</div> <div id='1'>First</div> <div id='3'>Third</div> </div> Is that expected? Thanks! Link to comment Share on other sites More sharing options...
joer80 Posted March 20, 2018 Author Share Posted March 20, 2018 I also noticed if I remove the id tags off the code in the template file, it returns to the correct order. What the id tags are named does not seem to effect the order. 1 Link to comment Share on other sites More sharing options...
joer80 Posted March 20, 2018 Author Share Posted March 20, 2018 Update. It seems to go back to expected behavior if in the template code, you place the pw-append before the id but not after. The order matters. ie. This works: <div pw-append='main' id='main-content'> This does not: <div id='main-content' pw-append='main'> 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now