adrian Posted September 26, 2016 Author Posted September 26, 2016 54 minutes ago, Joynal said: Hi guys, I just installed and tested this module. I'm trying to generate page with dummy data. AutoContent module only fills page title field and other fields remain empty. Any idea? Thanks in advance. Maybe you are expecting it to populate the page's fields in the admin? This module is not designed to do that - it generates content when viewing the page on the frontend - this way your database remains unchanged and once you populate the field on the backend, the module leaves that field alone. Or if I am mistaken, perhaps it's a PW 3.x/2.8 issue? I haven't had a chance to test with these yet.
Joynal Posted September 26, 2016 Posted September 26, 2016 Ohh, my mistake, I got it now. Thanks @adrian 1
Joynal Posted September 26, 2016 Posted September 26, 2016 There is no faker formatter option for per field, It will be more convenient if every field has separate formatter.
adrian Posted September 26, 2016 Author Posted September 26, 2016 2 minutes ago, Joynal said: There is no faker formatter option for per field, It will be more convenient if every field has separate formatter. Sorry, I must not be understanding - take a look at the screenshots in the first post - they show the options for defining the content for each field. I guess this is not what you are talking about though?
Joynal Posted September 26, 2016 Posted September 26, 2016 Sorry, I don't have any Autocontent configuration like your screenshot. Please see this screenshot.
adrian Posted September 26, 2016 Author Posted September 26, 2016 As mentioned in that first post: Quote Many fieldtypes are configurable via the Input tab on the field's config settings
Joynal Posted September 26, 2016 Posted September 26, 2016 Thanks again @adrian Now it makes more sense to me. 1
Ivan Gretsky Posted July 7, 2017 Posted July 7, 2017 On 26.09.2016 at 1:46 PM, adrian said: Maybe you are expecting it to populate the page's fields in the admin? This module is not designed to do that - it generates content when viewing the page on the frontend - this way your database remains unchanged and once you populate the field on the backend, the module leaves that field alone. Or if I am mistaken, perhaps it's a PW 3.x/2.8 issue? I haven't had a chance to test with these yet. Good day @adrian and everyone! I was just like @Joynal, thinking this module will generate fake data for all fields and save it in the database. Could you suggest a solution for that type of behavior? I need it to do some load testing for search functionality.
bernhard Posted July 7, 2017 Posted July 7, 2017 @Joynal and @Ivan Gretsky maybe my module is something for you: don't know why it didn't get any response (1 like...) - as it seems to be interest/need for those situations 1
Ivan Gretsky Posted July 7, 2017 Posted July 7, 2017 I gave you 2 more) Will check it out. But still think @adrian's module coul have a "persistent" mode as well. 1
bernhard Posted July 7, 2017 Posted July 7, 2017 i just saw adrian used php faker - i guess that's more powerful than my solution. but sometimes for quick testing the most simple solutions are the best
adrian Posted July 7, 2017 Author Posted July 7, 2017 1 hour ago, Ivan Gretsky said: I gave you 2 more) Will check it out. But still think @adrian's module coul have a "persistent" mode as well. I don't have time right now, but I don't expect it would take too much to make it work to populate the fields in the backend, instead of just displaying on the frontend. Probably just a matter of a config setting and a new hook (in addition to the current Fieldtype::formatValue) to get it to populate the backend form fields instead. Feel free to submit a PR 1
bernhard Posted July 7, 2017 Posted July 7, 2017 @Ivan Gretsky maybe you could just populate your pages via a little api script? I've never used adrian's module but maybe you can get the formatted values, create a new page and save it. then maybe a simple for does the trick...? 1
Ivan Gretsky Posted July 7, 2017 Posted July 7, 2017 Yep, that sounds easy. Just thought I would try out something ready-made from my favourite module-builder) 1
bernhard Posted July 7, 2017 Posted July 7, 2017 you can use tracy and the console panel for that, not to get too independent from your favourite module builder 2
Ivan Gretsky Posted July 7, 2017 Posted July 7, 2017 19 minutes ago, bernhard said: you can use tracy and the console panel for that, not to get too independent from your favourite module builder Might not be the best thread for this, but as you mentioned tracy... Wanted to let @adrian know, we, his PW fans truly appreciate what he is doing promoting our beloved system. 5
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now