Support for joomla custom fields #247

Closed
opened 2018-03-19 16:46:02 +00:00 by marcodings · 5 comments
marcodings commented 2018-03-19 16:46:02 +00:00 (Migrated from github.com)

Feature request

Add support for joomla custom fields, for jcb components as documented
https://docs.joomla.org/J3.x:Adding_custom_fields/Implement_into_your_component

### Feature request Add support for joomla custom fields, for jcb components as documented https://docs.joomla.org/J3.x:Adding_custom_fields/Implement_into_your_component

@marcodings This is a great idea, and I think we can most certainly do this.

Would you be so kind to take the JCB demo component (just compile it) and then hand code this feature into it. That way you will save me the time of doing that, and I can really just focus on adding it to the compiler in the right places.

Thanks!

@marcodings This is a great idea, and I think we can most certainly do this. Would you be so kind to take the JCB demo component (just compile it) and then hand code this feature into it. That way you will save me the time of doing that, and I can really just focus on adding it to the compiler in the right places. Thanks!
ro-ot commented 2018-03-24 16:04:29 +00:00 (Migrated from github.com)

Looking forward 🎉 to this, can be very useful 👍

Looking forward :tada: to this, can be very useful :+1:
marcodings commented 2018-04-05 09:36:06 +00:00 (Migrated from github.com)

I'll attend to it asap ;) But don;t hold you breath as i have a number of sessions to prepare for multiple upcomming joomla conferences

I'll attend to it asap ;) But don;t hold you breath as i have a number of sessions to prepare for multiple upcomming joomla conferences

I am about to add this feature, and it seems very straightforward. we will have to help the newbies to be able to get the stored values on the front-end. The documentation says:

JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models', 'FieldsModel');
$fieldModel = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' => true));
$fieldModel->setValue($fieldId, 'com_example.item', $item->id, ‘demo value’);

This is the way to get the values, I was wondering if any of you have done more automation in this regard?

I am about to add this feature, and it seems very straightforward. we will have to help the newbies to be able to get the stored values on the front-end. The documentation says: ``` JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models', 'FieldsModel'); $fieldModel = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' => true)); $fieldModel->setValue($fieldId, 'com_example.item', $item->id, ‘demo value’); ``` This is the way to get the values, I was wondering if any of you have done more automation in this regard?

I found the easy way to get the fields to display on the front-end is via the events being triggered. So I also added not event options to dynamic gets that are getItem type. This can server a beginning of this new feature. Please test and let me know.

I found the easy way to get the fields to display on the front-end is via the events being triggered. So I also added not event options to dynamic gets that are **getItem** type. This can server a beginning of this new feature. Please test and let me know.
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#247
No description provided.