- Posts: 448
- Thank you received: 2
support : pulling a custom field code
- sti
- Topic Author
- Offline
- Platinum Member
Yes, you are correct. Notice it is the integer field.
meaning all id?
Id for the content type? i dont see it in database?
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
HelperOspropertyFields::showField($field,$pid);
$field : the custom field object. $field->id is the id of the custom field
$pid is the property id.
back to first post.
meaning we have 4 changes to make?
HelperOspropertyFields::showField($field,$pid);
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
HelperOspropertyFields::showField($field,$pid);
$field : the custom field object.
$field->id is the id of the custom field
$pid is the property id.
$field->id --> doesnt exist on top , where this come from ?
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
- Posts: 12570
- Thank you received: 1627
No,
textarea should be the id of the custom field.
Thanks
Ossolution
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
HelperOspropertyFields::showField(textarea,119);
No,
textarea should be the id of the custom field.
Thanks
Ossolution
ok. well where do i find this ?
isn't the custom field type id is fixed since it has only few types.?
thanks
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
please review your code and functions.
it does not work at all.
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
when it can be answered in a single step.
anyone notice this?
if you all need some hits from google , then this is not the way to achieve it.
my take is now you have just discovered that the field_type has no database and id to retrieve it now?
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
- Posts: 12570
- Thank you received: 1627
As i explained above, you can get the data of the custom fields by using:
HelperOspropertyFieldsPrint::showField($field,$row->id);
The $field is custom field object, in the $field, you have $field->field_type. This is the type of the custom field.
Field type can be : textbox, textarea, checkboxes, radio button v.v.
To process the field types, you can see in the administrator > components > com_osproperty > helpers > extrafields.php
Thanks
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
But please understand we are not developers or coders to understand all this terms and language.
a sample code would be good to understand further.
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
DID ANYONE UNDERSTAND what he is trying to say here?
If you do PLEASE SHARE
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.