Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • BTB300
  • BTB300's Avatar Topic Author
  • Online
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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

Please Log in or Create an account to join the conversation.

Last edit: by BTB300.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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 following user(s) said Thank You: BTB300

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.081 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started