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
  • Away
  • 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.076 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started