(keeping it simple)
Instead of using nested/sub layouts, why not create the full template page with conditional regions.
(keeping it simple)
Instead of using nested/sub layouts, why not create the full template page with conditional regions.
Not much to add besides the layout FRs.
Wappler’s server routing has been lagging for quite some time. Some love would be appreciated.
I think the main problem with partials is UI picker support as the partial doesn’t have access to the data of the page it’s in.
@Antony I had a similar issue but with Classic ASP and .NET. Its a huge application that had to be converted to NodeJS, after much research I reluctantly figured the best way was to completely start again from scratch - that was a big decision as the site had been developed since 1997 and it grew organically since then with various different bolts ons. We were also using PHP on some backend parts, migrating to PHP 7 or 8+ wasn’t possible as we had too many breaking changes - I’ll let you all imagine what all the code looked like.
I found out the following:
It wasn’t as big a nightmare as I was expecting, yes, there were/still are some technical issues, but there are easily worked out with work and a bit of thought.
The end result was very robust and future proofed for a long time, Once I started breaking open the earlier code I could see it was terrible in some places so replacing it was essential (Wappler does indeed output some great looking code)
We can run everything now on NodeJS and no longer have to mashup with PHP, Classic ASP, .NET etc This obviously means its much easier to update and maintain.
We have another six or seven in-house sites / applications still to do, including a very recent .NET application that I’ve decided to give the same treatment.
I’m not too sure if this will help you much but I suppose my summary would be to suggest the transition to NodeJS from PHP may not be as brutal as you imagine.
That’s a great point, its a bit of a bugbear of mine to have to handball my partials as they cant access the parent data, hopefully we’ll get an update to this at some point.
Thanks for that perspective @JonL… the good news for me is that PHP includes don’t seem to either, so I gave up using the data picker near the start!
Also… the data picker just isn’t designed in a way that is any benefit to a really really big design, IMHO!
@ben, I think the simple answer is that is makes life waaaaaay too complex to have it all in one file!
Thanks for the co-existing ideas @ben… I appreciate that!
Apologies @Antony for my delayed response. There are plenty of good topics in your post however the issues we experience with MeetUps is securing Wapplers to present on good topics. Is there a good solution or example or sample site/app you would like to present at a monthly MeetUp?
Thx