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
  • Offline
  • 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.186 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started