Jump to content

Recommended Posts

Posted

This week we have some useful upgrades to ProcessWire’s Markup Regions system. These upgrades make Markup Regions even more flexible and intuitive by reducing the dependence on HTML id attributes. Here is a new blog post that covers it in detail—

https://processwire.com/blog/posts/pw-3.0.250/

 

  • Like 21
  • Thanks 1
  • 2 weeks later...
Posted

Just a heads up for everyone to be careful with this upgrade. I had a poor piece of code that worked before but broke with these markup region changes.

In my _main.php I had:

<div id="main">

and in my templates I was doing:

<main pw-replace id="main">

So before, the id="main" was enough to match - now it no longer matches.

Obviously a mistake on my part - I have now replaced "<div" with "<main" in _main.php and everything works again.

  • Like 3

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
  • Recently Browsing   0 members

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