? ? ? Success

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
29 Aug 2016

Summary of Changes

This PR adds custom fields functionality to com_content, com_users and com_contact. The fields are managed trough a new component com_fields and a new fields system plugin.

image
image

The fields are loaded automatically in a new tab in the form when an article, user or contact is edited trough the onContentPrepareForm Joomla event.
image

Trough Joomla events onContentAfterTitle, onContentBeforeDisplay and onContentAfterDisplay are the fields automatically displayed on the front.
image

  • It is possible to attach a field to a "Field Group". They will be represented then as individual tabs in the form.
  • It is possible to disable the custom fields feature for every component in the configuration.
  • This approach to implement custom fields allows 3rd party extension developers to integrate with minimal effort custom fields into their components.
  • Every output is put into JLayout's, which allows 3rd party extension developers to adapt the output to their extensions and the site integrator to customize them to their needs.
  • New custom field types can be added trough plugins which belong to the fields group. There is a gallery field added to this pr which showcases this.
  • Contacts do support multiple contexts, one for contacts and one for the contact form.

I kept the documentation and test instructions short as we were extensively testing it on it's own repository https://github.com/joomla-projects/custom-fields. Progress of the old issues and pull requests can be seen there. The only open issues are new features which can be implemented on a later stage.

Testing Instructions

Create a custom field

  1. Log in on the back end.
  2. Navigate to Content -> Articles.
  3. Click on the left sidebar on Fields.
  4. Click on the New button on the top.
  5. Define a title and label.
  6. Click the Save & Close button on the top. #### Create an article
  7. Log in on the back end.
  8. Navigate to Content -> Articles.
  9. Click on the New button on the top.
  10. Define a title.
  11. Open the Fields tab.
  12. Add some text on the custom field.
  13. Click the Save & Close button on the top. #### View it on the front
  14. Log in on the back end.
  15. Create an article menu item in the menu manager and select the new article.
  16. Go to the front site of your Joomla installation.
  17. Open the article.
  18. Check if the custom field is displayed. ### Todo
  19. The migrate and installer script for SQL Server are not done yet, because I had no environment to test it. Would be great if somebody can help out here.
  20. External fields are integrated by convention and not by plugin events. PLT needs to decide if this would be ok.
  21. Hathor adaption
avatar laoneo laoneo - open - 29 Aug 2016
avatar laoneo laoneo - change - 29 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2016
Category SQL Administration Components
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 29 Aug 2016
Labels Added: ?
avatar RonakParmar
RonakParmar - comment - 29 Aug 2016

I have applied this PR in my local and It took more time to apply. After PR has been applied I can see "Fields" and "Field Groups" menu items in sidebar, but when I clicked on "Fields" menu item I got Component Not found error. please see attached screen dump for error.
screen shot 2016-08-29 at 06 14 11
screen shot 2016-08-29 at 06 15 12


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11833.

avatar laoneo
laoneo - comment - 29 Aug 2016

Try to discover the com_fields extensions first. I guess the patch tester doesn't detect new extensions.

avatar veronikapatel
veronikapatel - comment - 29 Aug 2016

--> I have tested successfully.
screen shot 2016-08-29 at 07 03 26


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11833.

avatar veronikapatel veronikapatel - test_item - 29 Aug 2016 - Tested successfully
avatar veronikapatel
veronikapatel - comment - 29 Aug 2016

I have tested this item successfully on 85d228e


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11833.

avatar zero-24
zero-24 - comment - 30 Aug 2016

hmm it looks like that there is a fata error:

....PHP Fatal error:  Call to a member function children() on a non-object in /home/travis/build/joomla/joomla-cms/libraries/joomla/form/fields/text.php on line 187
Fatal error: Call to a member function children() on a non-object in /home/travis/build/joomla/joomla-cms/libraries/joomla/form/fields/text.php on line 187

https://travis-ci.org/joomla/joomla-cms/jobs/155878904

avatar laoneo
laoneo - comment - 30 Aug 2016

Unit tests are failing because of a general problem in the 3.7 branch I guess, according to #11413.

avatar mbabker
mbabker - comment - 30 Aug 2016

The new extensions need to be added to the script.php file.

The new component needs to be added to the updateAssets() method in the script.php file.

Schema for all (loosely) supported databases needs to be added.

avatar brianteeman
brianteeman - comment - 30 Aug 2016

Global Options

  1. On the toolbar for Fields is a button for Options - but this is an option for com_content not fields

  2. In the options tab for a field is a param "Automatic Display" which has a value Use Global but there is nowhere to set it (or is this related to the issue above)

avatar brianteeman
brianteeman - comment - 30 Aug 2016

PHP Notice

Click on New field or open an existing field and you will get

:  Use of undefined constant fullname - assumed 'fullname' in administrator/components/com_fields/helpers/internal.php on line 109
avatar brianteeman
brianteeman - comment - 30 Aug 2016

Tags

Add an existing tag to a field and try to save. You will get the following error

Error
Save failed with the following error:

The error log shows

[30-Aug-2016 20:01:28 Europe/London] PHP Notice:  Trying to get property of non-object in /libraries/cms/ucm/content.php on line 132
[30-Aug-2016 20:01:28 Europe/London] PHP Notice:  Trying to get property of non-object in /libraries/cms/ucm/content.php on line 136
[30-Aug-2016 20:01:28 Europe/London] PHP Notice:  Trying to get property of non-object in /libraries/cms/ucm/content.php on line 136
[30-Aug-2016 20:01:28 Europe/London] PHP Warning:  Invalid argument supplied for foreach() in /libraries/cms/ucm/content.php on line 138
[30-Aug-2016 20:01:28 Europe/London] PHP Notice:  Trying to get property of non-object in /libraries/cms/ucm/content.php on line 159
[30-Aug-2016 20:01:28 Europe/London] PHP Notice:  Trying to get property of non-object in /libraries/cms/ucm/content.php on line 160
[30-Aug-2016 20:01:28 Europe/London] PHP Notice:  Undefined index: core_content_item_id in /libraries/cms/helper/tags.php on line 835
avatar brianteeman
brianteeman - comment - 30 Aug 2016

Tags cont.

the same is true for adding a tag to a category although I cant see the use case for having tags with either fields or fields categories

avatar brianteeman
brianteeman - comment - 30 Aug 2016

Field group filters

They jut dont work - they are only passing the published/unpublished values but not the groups.

See the movie

fields

avatar brianteeman
brianteeman - comment - 30 Aug 2016

Field Search filters

Why isnt there a search filter on the field group - that would seem to be the most obvious and likely thing you want to filter on

avatar brianteeman
brianteeman - comment - 30 Aug 2016

fields group or category

Because this is using com_categories but calling it groups it leads to a few oddities - such as the group description tab being called Category

avatar brianteeman
brianteeman - comment - 30 Aug 2016

Language

Not sure if this is my misunderstanding or not. But I expected a field marked for language FR to show up in content with language ALL

avatar brianteeman
brianteeman - comment - 30 Aug 2016

Versions

com_content versions does not track changes in fields

avatar brianteeman
brianteeman - comment - 30 Aug 2016

Field Groups

Under Content field groups doesnt have a filter before the search box
Under Contacts field groups does have a filter before the search box containing Contact, Mail, Category

I have no idea what those filters are - I couldnt get them to do anything meaningful

avatar brianteeman
brianteeman - comment - 30 Aug 2016

Hathor

OUCH - no need to comment just take a look

avatar laoneo
laoneo - comment - 31 Aug 2016

On the toolbar for Fields is a button for Options - but this is an option for com_content not fields

Fields don't have their own options.

In the options tab for a field is a param "Automatic Display" which has a value Use Global but there is nowhere to set it (or is this related to the issue above)

The global value is in the system plugin (we were discussing it on JAB).

avatar brianteeman
brianteeman - comment - 31 Aug 2016

On the toolbar for Fields is a button for Options - but this is an option for com_content not fields

Fields don't have their own options.

So dont display the options toolbar button - its confusing

In the options tab for a field is a param "Automatic Display" which has a value Use Global but there is nowhere to set it (or is this related to the issue above)

The global value is in the system plugin (we were discussing it on JAB).

See above and then we probably need to have some sort of tooltip to explain the global options are set in the plugin

avatar laoneo
laoneo - comment - 31 Aug 2016

I'v fixed most of the reported issues with the latest commits. Thanks so far for feedback.

  • uft8mb4 added
  • Extensions added to script.php
  • Composer reverted to the upstream code
  • Tables alpha ordered
  • Library code doesn't have a dependency to com_fields anymore
  • Language code of form fields are moved to library
  • PHP Notice should be fixed
  • Tags removed as we have groups now
  • Field group filter is now working
  • Fields should now be shown on the correct language

  • Versions are planed for a later release, see joomla-projects/custom-fields#54.

  • If a component has multiple contexts, then the select box is shown. Only contacts has it at the moment. It supports to define fields for the contact form only.
  • For Hathor, I hope somebody can help out here to adapt it
avatar laoneo
laoneo - comment - 31 Aug 2016

On the toolbar for Fields is a button for Options - but this is an option for com_content not fields

Fields don't have their own options.

So dont display the options toolbar button - its confusing

It is the same behavior as with article categories, I would leave it.

avatar brianteeman
brianteeman - comment - 31 Aug 2016

Recent change has merged groups and categories where it shouldnt?

pdmb

avatar brianteeman
brianteeman - comment - 31 Aug 2016

Tags

You removed them from fields but not from fields groups where it is still broken

avatar brianteeman
brianteeman - comment - 31 Aug 2016

Same issue with the groups/categories here
http://i.tee.mn/ASdq.png

avatar laoneo
laoneo - comment - 31 Aug 2016

@brianteeman either way, we are going to change the language key on the first tab of the category edit view to something different than JCATEGORY. Overriding JCATEGORY in the com_fields language file has the side effect you see here. Any suggestion?

avatar brianteeman
brianteeman - comment - 31 Aug 2016

@laoneo i'm confused

avatar brianteeman
brianteeman - comment - 31 Aug 2016

Archive

What is the purpose of the archive state? If it has no purpose it should be removed

avatar brianteeman
brianteeman - comment - 31 Aug 2016

Archive Cont...

After archiving a field it is not possible to get it back. I can see that I have archived fields in the groups display but nothing in the fields display will make those visible

avatar laoneo
laoneo - comment - 31 Aug 2016

What is the purpose of the archive state? If it has no purpose it should be removed

Same as for all other entities in Joomla like articles, contacts and so one. Beside that, there is no special meaning.

avatar photodude
photodude - comment - 1 Sep 2016

Anyone know what the deal is with the

PHP Fatal error:  Call to a member function children() on a non-object in /home/travis/build/joomla/joomla-cms/libraries/joomla/form/fields/text.php on line 187

that's causing Travis to fail here?

avatar laoneo
laoneo - comment - 1 Sep 2016

@photodude I guess it is a problem with the 3.7 branch, see #11413 for more information.

avatar joomla-cms-bot joomla-cms-bot - change - 5 Sep 2016
Category SQL Administration Components Administration Components SQL Postgresql
avatar wilsonge
wilsonge - comment - 6 Sep 2016

Can you merge in staging to fix conflicts and unit tests please :)

avatar laoneo laoneo - edited - 6 Sep 2016
avatar laoneo
laoneo - comment - 6 Sep 2016

Should the drone build also run trough?

avatar laoneo laoneo - change - 7 Sep 2016
The description was changed
avatar laoneo laoneo - edited - 7 Sep 2016
avatar wilsonge
wilsonge - comment - 7 Sep 2016

I dunno why we suddenly have a drone build. I'm the case. also you still have conflicts here

avatar laoneo
laoneo - comment - 7 Sep 2016

Asking in the automated testing group...well update when there is a plan.

On Sep 7, 2016 13:33, "George Wilson" notifications@github.com wrote:

I dunno why we suddenly have a drone build. I'm the case


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11833 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPUwAHZFLWdQS7H7giEs2oFS6Dgyxh4ks5qnqESgaJpZM4JvRTd
.

avatar zero-24
zero-24 - comment - 7 Sep 2016

@yvesh can you double check the drone build problem?

avatar yvesh
yvesh - comment - 8 Sep 2016

@zero-24 @laoneo It's not an issue with drone. (Travis fails too, but allowed too) JavaScript unit tests are broken for 3.7 branch.. Going to supply a patch in the next days.

avatar laoneo
laoneo - comment - 9 Sep 2016

@yvesh Drone build is fixed with PR #11993.

avatar joomla-cms-bot joomla-cms-bot - change - 20 Sep 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 20 Sep 2016
Category SQL Administration Components Postgresql Unit Tests Repository Administration Components SQL Postgresql
avatar wilsonge
wilsonge - comment - 20 Sep 2016

Just an update on this. I'm currently working on getting routing as stable as possible. As soon as I've fixed the last of the bugs in #11320 then my focus will switch to the fields stuff here. I promise this hasn't been forgotten about :)

avatar zero-24 zero-24 - change - 20 Sep 2016
Milestone Added:
avatar laoneo
laoneo - comment - 20 Sep 2016

No problem, there is still the Microsoft SQL installer script missing and the Hathor layout overrides.

avatar astridx
astridx - comment - 14 Oct 2016

Is it possible to test this PR at the moment?
I applied the patch on Joomla! 3.6.3-rc3.

But if I want to create a field
(http://localhost/joomla-cms/administrator/index.php?option=com_fields&context=com_content.article)
I get the message:

500 View not found [name, type, prefix]: fields, html, fieldsView

And if I want to edit an article I get the message:

Fatal error: Class 'JFormAbstractlist' not found in /var/www/html/joomla-cms/administrator/components/com_categories/models/fields/categoryedit.php on line 19

Am I doing something wrong?

avatar mbabker
mbabker - comment - 14 Oct 2016

1) You have to test against 3.7

2) The branch has conflicts so it probably isn't "cleanly" testable

avatar brianteeman
brianteeman - comment - 14 Oct 2016

The easiest way to test is to download a complete installable version of
joomla from the fields branch here
https://github.com/Digital-Peak/joomla-cms/archive/custom-fields.zip

On 14 October 2016 at 15:16, Michael Babker notifications@github.com
wrote:

1) You have to test against 3.7

2) The branch has conflicts so it probably isn't "cleanly" testable


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11833 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8Wa3AFuWlL0OdptNyIk_okrRGIauks5qz46ogaJpZM4JvRTd
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar laoneo
laoneo - comment - 15 Oct 2016

You need to discover new extensions as the patch tester doesn't install the com_fields component and system plugin automatically.

@all anybody up to help to make the hathor layout overrides and the SQL Azure installer scripts?
@maintainers any plan when this pr got reviewed?

avatar ch2856
ch2856 - comment - 22 Oct 2016

onContentAfterTitle option dose not work.

avatar laoneo
laoneo - comment - 22 Oct 2016

Where did you set that option? On which component (content, user, contact) yiu was testing it?

avatar ch2856
ch2856 - comment - 22 Oct 2016

In field option, com_content.

Fresh installation : https://github.com/Digital-Peak/joomla-cms/tree/custom-fields

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Field display bug in category / shown in unassigned category

I created a Field Group (intended for using it in Articles) and assigned a field to it, which is assigned to a specific category.

image

When i create a new category, the fieldset is shown (should not be shown)
image

When i ignore this field, which is set to required, the category is saved successfully anyway.
image

When i reopen the category, which is not child or something from the category i assigned the field to, i can edit the field.

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Error Message invalid field: is not clear for users

If a required Field is not filled, this is the error Message:
From UX perspective it should be something like "required field: xyz" or even a custom text which can be added to each field. Would be great if the headline of the Fieldtab can be colored red in this case.
image

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Language String Change request

Can this label be changed as it´s not completely clear what is meant?
image
I would suggest "Input class" and "Output class". What do you think @brianteeman ?

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Missing Image label

The image label is not shown anywhere ?
image
image

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Image Field Class Options, Markup and to much /// in path

Image Class is displayed in the first tab, where render Class and Class is displayed in the Option tab. I think it would be better to have all Class settings in one place.

Additionally the markup is quite odd for an image and the path is wrong:

image

image

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Field assignment to category

  • Assigning each Field to a category is very exhausting (UX) would be better to assign the Fieldgroup or at least having a batch process for the fields.

  • I´m missing the assignment if the field or fieldgroup is for an article or a category. currently it´s assigned to both at once.

avatar brianteeman
brianteeman - comment - 28 Oct 2016

Look this pr just needs merging as is and then we can work on all these
small issues easily

avatar dgt41
dgt41 - comment - 28 Oct 2016

If a required Field is not filled, this is the error Message:
From UX perspective it should be something like "required field: xyz" or even a custom text which can be added to each field. Would be great if the headline of the Fieldtab can be colored red in this case.

This is a limitation from joomla's validate.js script and probably can't be fixed in a B/C way in 3.x. In J4 maybe we should add some data-validate-text="Bla bla..." which will be used instead (or under the invalid field: Blabla)

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Security issue with Home Folder for images

I created a image field with home folder, edited the article and uploaded an image.
The Folder "Elisa" was created.

I wanted to check what happens if now another Super User clicks the same field, but then the directory wasn´t empty anymore and the root was shown:
image

i degraded the user to "Registered" and gave Registered Users "Edit" Permission - logged in in Frontend, but still the Editor can access the whole image directory with subfolders.

avatar brianteeman
brianteeman - comment - 28 Oct 2016

Its a home(aka default) not a restricted folder. There is no security issue.

On 28 Oct 2016 9:17 p.m., "coolcat-creations" notifications@github.com
wrote:

Security issue with Home Folder for images

I created a image field with home folder, edited the article and uploaded
an image.
The Folder "Elisa" was created.

I wanted to check what happens if now another Super User clicks the same
field, but then the directory wasn´t empty anymore and the root was shown:
[image: image]
https://cloud.githubusercontent.com/assets/828371/19820837/72658a62-9d5b-11e6-884c-f9dcdc47f8dc.png

i degraded the user to "Registered" and gave Registered Users "Edit"
Permission - logged in in Frontend, but still the Editor can access the
whole image directory with subfolders.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11833 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8VEyJ1Mv-ru5ZctHpJm71QfC1Nvyks5q4lhKgaJpZM4JvRTd
.

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

@brianteeman the home-function was added because i asked how a user can upload an avatar and/or a companylogo to his profile without permission to see the whole image folder. So in the first test a userfolder "Elisa" was created successfully and i had no access to another folder or files. But when i opened the article with another user i saw the whole directory.

Changing back to my user "Elisa" i only see my userfolder i´m allowed to see.

avatar mbabker
mbabker - comment - 28 Oct 2016

There is not a full ACL system set up with the images folder or the media form fields. So I'm honestly not sure how that function works but there definitely isn't anything to limit it this way.

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

URL Scheme

Not sure if it works here as expected. If i enter a URL without HTTP the adress is still accepted. How is the "scheme" option supposed to work?
image

avatar brianteeman
brianteeman - comment - 28 Oct 2016

It wouldn't really make much sense to have it restricted either as the
content will be made public in the front-end

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

Following use case: A system where editors can add articles. With the Custom Fields in the User Profile their profile is shown below each article. They should be allowed to upload their userpic, and maybe more images without having access to the whole image directory. Of course their images are public, but in the imagefolder may be also restricted content...

avatar brianteeman
brianteeman - comment - 28 Oct 2016

Field assignment to category

Assigning each Field to a category is very exhausting (UX) would be better to assign the Fieldgroup or at least having a batch process for the fields.

I´m missing the assignment if the field or fieldgroup is for an article or a category. currently it´s assigned to both at once.

Sorry I was incorrect. Fields are assigned to Field groups and Fields are assigned to content categories. Field groups are not assigned to categories

The logic behind this is as follows

Create a group called Specifications
Create fields called Number of doors, Engine size, Fuel Economy, Manufacturer

You would want that group of fields to appear as a tab called specifications for your content. BUT when you are in the category Motorbikes you would not want the field Number of Doors.

With the current code that is exactly what you get
If it was the groups that were assigned to categories then you would need to create TWO groups. One for Cars and one for Bikes and then create all the fields twice (except for doors)

Neither option will be perfect for all circumstances but now I look at it again it seems the most logical to me

avatar brianteeman
brianteeman - comment - 28 Oct 2016

Following use case: A system where editors can add articles. With the Custom Fields in the User Profile their profile is shown below each article. They should be allowed to upload their userpic, and maybe more images without having access to the whole image directory. Of course their images are public, but in the imagefolder may be also restricted content...

As @mbabker says thats just not possible with the current media manager. Its not related to fields. Even if fields could somehow add an extra layer of ACL it would not exist for any other image field ;)

For this feature (which is a good one) we will have to wait for a new media manager

avatar coolcat-creations
coolcat-creations - comment - 28 Oct 2016

I thought the "Home" Folder feature is a new option designed for this need. At least from the former discussions in the Custom Fields Repo.

avatar brianteeman
brianteeman - comment - 28 Oct 2016

Not sure if it works here as expected. If i enter a URL without HTTP the address is still accepted. How is the "scheme" option supposed to work?

So this isnt actually part of custom fields its part of the existing Joomla fields. The way the rule works is that it checks the permitted schemes. Example if you set the schemes to https://
then it will not accept a url beginning http://

If you do not enter a protocol when you enter a URL eg you just write joomla.org then it will be treated as an internal url and the link will be www.example.com/joomla.org

Could this part be better - yes - it probably should require you to enter the protocol but its NOT a bug in Custom Fields its a bug/issue in the existing core Joomla field https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/rule/url.php

avatar brianteeman
brianteeman - comment - 28 Oct 2016

I thought the "Home" Folder feature is a new option designed for this need. At least from the former discussions in the Custom Fields Repo.

Its designed as a "default" as far as I can tell and thats all it can be with the current media manager

avatar brianteeman
brianteeman - comment - 28 Oct 2016

@rdeutz @wilsonge @zero-24
One problem is that fields is just an interface to help you use the EXISTING fields. So most issues Elise has identified are limitations in the fields libraried.
Because they were rarely used in this way the issues were not observed
That's why I believe we should merge this now so we can see those issues and fix them
They can't be fixed in this pr
And merging this PR will not break staging (although I notice there are some merge conflicts that need resolving - probably because it is a PR against 3.7 not staging)

avatar brianteeman
brianteeman - comment - 28 Oct 2016

Image Class is displayed in the first tab, where render Class and Class is displayed in the Option tab. I think it would be better to have all Class settings in one place.

I see your thinking but I dont agree. Image class is unique and specific to the field typ. The other classes are generic to all fields

avatar coolcat-creations
coolcat-creations - comment - 29 Oct 2016

Thanks @brianteeman for checking this and @mbabker and @dgt41 for clarifying.
So what is open for me is:

  • the field-assignment to the category works for articles but appears in each category
  • Image label doesn´t appear anywhere
  • still the thing with the home-folder - i understand your explanation but then it acts strange. Because the user i created the field with can only upload and see images in a folder which is automatically named by the username and when another user uses the same field he sees everything.
  • Other isssues regarding fields itself i´d add then after merge - seems to be easier to manage them then
avatar laoneo
laoneo - comment - 29 Oct 2016

The home option will be adressen in thenext geneartion of media manager. Till then we can't do more than what we have now.

I agree here with @brianteeman this PR should be merged and then we can add the hathor overrides, SQL azure installer script and other cosmetic stuff on a second stage.

avatar coolcat-creations
coolcat-creations - comment - 29 Oct 2016

@laoneo then maybe it´s better to remove it for now?

avatar rdeutz
rdeutz - comment - 29 Oct 2016

I agree here with @brianteeman this PR should be merged and then we can add the hathor overrides, SQL azure installer script and other cosmetic stuff on a second stage.

@laoneo if you solve the merge conflicts I would merge it and we can work further from there

avatar brianteeman
brianteeman - comment - 29 Oct 2016

the field-assignment to the category works for articles but appears in each category

Either I dont understand you or I can not replicate it - grab some popcorn and watch the movie

screen shot 2016-10-29 at 05 07 47


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11833.

avatar coolcat-creations
coolcat-creations - comment - 29 Oct 2016

@brianteeman
example2

the tab shouldn´t be shown there, and even if, the required is not respected...

avatar brianteeman
brianteeman - comment - 29 Oct 2016

Your video shows the field appearing in the Category - i cannot replicate that

avatar laoneo
laoneo - comment - 29 Oct 2016

@laoneo if you solve the merge conflicts I would merge it and we can work further from there

@rdeutz that's a word! Merged with latest from branch 3.7.x. Go for it!

avatar laoneo
laoneo - comment - 29 Oct 2016

@andrepereiradasilva thanks. Fixed it in the last commit.

avatar rdeutz rdeutz - change - 29 Oct 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-29 13:42:35
Closed_By rdeutz
avatar rdeutz rdeutz - close - 29 Oct 2016
avatar rdeutz rdeutz - merge - 29 Oct 2016
avatar rdeutz rdeutz - reference | 2570285 - 29 Oct 16
avatar rdeutz rdeutz - merge - 29 Oct 2016
avatar rdeutz rdeutz - close - 29 Oct 2016
avatar laoneo laoneo - head_ref_deleted - 29 Oct 2016
avatar laoneo
laoneo - comment - 29 Oct 2016

Thanks @rdeutz!!

avatar rdeutz
rdeutz - comment - 29 Oct 2016

@laoneo a long ride, hope we can sort out what is left

avatar wilsonge wilsonge - reference | 27c090e - 29 Oct 16
avatar ymages
ymages - comment - 30 Oct 2016

Where can I find the parch to install custom-fields on J3.7 ? i find no zip to download nowhere

thanks

avatar rdeutz
rdeutz - comment - 30 Oct 2016

@ymages it will be shipped with the core distribution you don't have to install it.

avatar ymages
ymages - comment - 30 Oct 2016

@rdeutz there is no way to test it before the core distribution ?
I'd like to test custom fields for the core form , if it works I can uninstall beezingforms

thanks

avatar rdeutz
rdeutz - comment - 30 Oct 2016

There are more then one way to test, we have nightly builds (https://developer.joomla.org/nightly-builds.html) and you can clone/download the repository

joomla-joomla-cms- home of the joomla content management system

avatar ymages
ymages - comment - 30 Oct 2016

I've got the version 3.7 already on localhost but there is no custom fields in it

avatar infograf768
infograf768 - comment - 30 Oct 2016

@ymages
Use a clean install of staging

avatar ymages
ymages - comment - 30 Oct 2016

@infograf768 I have installed the very last one just now and there is no custom fields in it

avatar infograf768
infograf768 - comment - 30 Oct 2016

You have to enable them in the Users and Content Manager Options

avatar ymages
ymages - comment - 30 Oct 2016

I can't find anything with the terms Fields or custom fields in any Manager Options
but the com_fields folder is installed

thanks for helping

avatar infograf768
infograf768 - comment - 30 Oct 2016

screen shot 2016-10-30 at 10 59 20

avatar ymages
ymages - comment - 30 Oct 2016

I have only the options URL routing, not the one with Enable Custom Fields, no idea why and how you'v got it because I have the very last version installed 30 minutes ago

avatar alikon alikon - reference | ec5a751 - 31 Oct 16
avatar infograf768
infograf768 - comment - 31 Oct 2016

@laoneo
Time to dig a bit more in the beast
#12659

avatar stevejburge
stevejburge - comment - 31 Oct 2016

I can confirm that fields probably aren't set up quite right in the latest nightly build.

I keep getting this when accessing com_fields ...
"Error

Invalid context!!"

Update: I guess I was missing some key information provided by the menus, such as context=com_content.article

This patch helped some: #12646

avatar alikon alikon - reference | 47cb0d4 - 31 Oct 16
avatar alikon alikon - reference | 4ae5c4a - 31 Oct 16
avatar laoneo
laoneo - comment - 1 Nov 2016

@stevejburge com_fields is not intended to be used stand alone. It needs always a context parameter, which is passed by the individual components. Similar to com_categories.

avatar ymages
ymages - comment - 1 Nov 2016

@laoneo does it work with com_contact too ? it will be great to create a core contact form with extra fields

avatar laoneo
laoneo - comment - 1 Nov 2016

Yes it does. You can create fields for the contact form or for the regular contacts. Additionally I'v added an option to show the user fields in a contact. This fills the gap that you can let users of your web site modify some custom fields of their profile and then show them on the front in a contact details page.

More information can be found in my regular user talk from Joomladay Germany https://joomla.digital-peak.com/blog/206-joomladay-germany-2016. The slides are in English.

avatar ymages
ymages - comment - 1 Nov 2016

@laoneo perfect !
the end of extra form components , I'll use only the core form
can't wait trying it !
thanks

avatar laoneo
laoneo - comment - 1 Nov 2016

You can help testing com_contact stuff as I was mostly alone on that part. If there are issues, please open them with the following tag in the title
[com_fields]

Thanks for helping and testing.

avatar ymages
ymages - comment - 1 Nov 2016

Of course I'd like to help but I cannot find custom fields in last J3.7 version

avatar laoneo
laoneo - comment - 1 Nov 2016

You need to use staging as it was directly merged into it.

avatar ymages
ymages - comment - 1 Nov 2016

Sorry I don't understand your answer (staging ?)
but I've got your post on facebook

avatar ymages
ymages - comment - 1 Nov 2016

thanks

now it works , I have the custom fields

avatar wilsonge
wilsonge - comment - 1 Nov 2016

Guys I'm going to lock this issue. If there are issues with custom fields please create new issues as you find problems :)

avatar wilsonge wilsonge - locked - 1 Nov 16

Add a Comment

Login with GitHub to post a comment