Jump to content

Markup regions question


joer80
 Share

Recommended Posts

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

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'>

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...