1060

Trongate Pages are now supported

Comments for “Trongate Pages are now supported”
 

Posted by Dom on Wednesday 8th May 2024 at 12:50 GMT

Data generation for Trongate Pages is now fully supported by the Vtl Data Generator.

You can see a brief example here: https://app.screencast.com/XSQa5b4Qt5EzE

Getting this to actually work properly required some serious refactoring but in the process the the Generator is both more performant and has some extra custom providers thrown in. The self contained help section has been expanded to explain how this was done and the custom faker providers are also documented.

There are a couple of small cosmetic issues that I'd like to address but in the main this is close to being finished, at least in this current iteration.
Level One Member

Dom

User Level: Level One Member

Date Joined: 12/01/2024

Posted by DaFa on Wednesday 8th May 2024 at 14:00 GMT

Thanks Dom, you have done some great work here - I'll pull it down off GitHub and try it out 🤓👍
Founding Member

DaFa

User Level: Founding Member

Date Joined: 30/11/2018

Posted by Dom on Wednesday 8th May 2024 at 18:54 GMT

In response to a very sensible comment made by Simon to use the admin template for the generator as it's really a development tool I have implemented the change. It should automatically add a nav item to the admin sidebar the first time that you open the module.

I have also ensured that images transferred to the Trongate Pages uploads folder are correctly removed when yo delete data from said table.

The down here on the module market has been updated as has the source code in the github repo.

This comment was edited by Dom on Wednesday 8th May 2024 at 18:55 GMT

Level One Member

Dom

User Level: Level One Member

Date Joined: 12/01/2024

Posted by DaFa on Thursday 9th May 2024 at 08:51 GMT

Hey Dom, you could also block access to your module by checking ENV for 'dev' mode and make_sure_allowed() - if so, redirect to a safe page.

This comment was edited by DaFa on Thursday 9th May 2024 at 09:14 GMT

Founding Member

DaFa

User Level: Founding Member

Date Joined: 30/11/2018

Posted by Dom on Thursday 9th May 2024 at 11:17 GMT

That's a very good point Simon given what one could do with this.
Level One Member

Dom

User Level: Level One Member

Date Joined: 12/01/2024

×