OS Property support center

support : pulling a custom field code

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 11 months ago #15946 by sti
damdt wrote:

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
  • Platinum Member
More
11 years 11 months ago - 11 years 11 months ago #15947 by sti

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);
Last edit: 11 years 11 months ago by sti.

Please Log in or Create an account to join the conversation.

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 11 months ago #15948 by sti
we are totally confused now.

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.

More
11 years 11 months ago #15951 by Mr. Dam
Replied by Mr. Dam on topic Re: support : pulling a custom field code
HelperOspropertyFields::showField(textarea,119);
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
  • Platinum Member
More
11 years 11 months ago - 11 years 11 months ago #15954 by sti
damdt wrote:

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
Last edit: 11 years 11 months ago by sti.

Please Log in or Create an account to join the conversation.

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 11 months ago - 11 years 11 months ago #15955 by sti
HI.

please review your code and functions.
it does not work at all.
Last edit: 11 years 11 months ago by sti.

Please Log in or Create an account to join the conversation.

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 11 months ago - 11 years 11 months ago #15956 by sti
we are lost and not sure whats the whole purpose of dragging this thread for long conversation
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?
Last edit: 11 years 11 months ago by sti.

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #15958 by Mr. Dam
Replied by Mr. Dam on topic Re: support : pulling a custom field code
Hi
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
  • Platinum Member
More
11 years 11 months ago #15959 by sti
Thanks,

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
  • Platinum Member
More
11 years 11 months ago - 11 years 11 months ago #15960 by sti
seriously

DID ANYONE UNDERSTAND
what he is trying to say here?

If you do PLEASE SHARE
Last edit: 11 years 11 months ago by sti.

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan