calebgrove / select-a-structure

A select field for Kirby populated by a structure field.
43 stars 7 forks source link

structurepage fallpage to current page #7

Closed jenstornell closed 7 years ago

jenstornell commented 7 years ago

I was surpriced that I needed to add structurepage to my blueprint. It's not very flexible if I want to use the blueprint for more than one page and I want the structure field on the same page.

My suggestion, fallback to the current page if structurepage is missing.

calebgrove commented 7 years ago

@jenstornell I fully agree. When I get around to #6, I'll implement this.

colourmafia commented 7 years ago

I agree! Any idea of when this may be done? Great plugin otherwise, but this stops me from being able to use it!

calebgrove commented 7 years ago

Thanks @colourmafia. I'll try to get a small update out this weekend with this change.

colourmafia commented 7 years ago

Just saw this - will keep my eyes peeled!

calebgrove commented 7 years ago

Alright, as of v1.2.0, if structurepage either doesn't exist in the blueprint, or is left valueless (blank), we will fall back to using the current page. :)

colourmafia commented 7 years ago

Thanks so much @calebgrove - tested and working perfectly. Lifesaver!