Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple Author / Created By V2 fails build SQL

Multiple Author / Created By V2 fails build SQL 18 Sep 2012 10:45 #3731

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Hi There
I use more than one author field for a few of my projects
for example
created_by = seller
created_by_2 = buyer
that way when the item is purchased and becomes unpublished to the public views both users have access to the data without a great deal of external coding being needed

In V1.5 we could create multiple author fields in a table - v 1.5 builds ok
In v2 we can also create multiple author fields

in the builder if you have two author fields it allows you to create two or more author fields
it names them created_by and created_by_2

V2 Build: the build fails indicating that there is a duplicate field "created by" and does not show a created_by_2 field

Thanks in Advance
Last Edit: 18 Sep 2012 10:47 by BTB300.
The administrator has disabled public write access.

Re: Multiple Author / Created By V2 fails build SQL 18 Sep 2012 13:40 #3736

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
It is very specific. Not handled by Cook.

You are right, in 1.5, it was possible to have 2 times the wizard.
So it is still available, but works only with one.

The author initialization is .... only one line, so really easy to modify the system.
(Table, or Model, depending of the configuration)

Then for the acls if you need to extend the visibility, it is really easy as well.

In populateParams()
params->set('access-view', true); //This is forcing the item to be shown.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: BTB300
Time to create page: 0.071 seconds

Get Started