- Posts: 448
- Thank you received: 2
support : pulling a custom field code
- sti
- Topic Author
- Offline
- Platinum Member
we want to include some custom fields as well.
please let us know how to pull the custom fields into the template.
Thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
- Posts: 12570
- Thank you received: 1627
HelperOspropertyFields::showField($field,$pid);
$field : the custom field object. $field->id is the id of the custom field
$pid is the property id.
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
but , how do we use this ?
as in below?
<? php echo HelperOspropertyFields::showField($field,$pid); ?>
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
- Posts: 12570
- Thank you received: 1627
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
where is the custom field object in the database?
is it the sample is textarea, select ,etc?
thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
- Posts: 12570
- Thank you received: 1627
When you create new custom fields in the backend, you can select the custom field types. After creating the custom fields, they will be shown in the frontend with the type you already selected.
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
As you can see, the custom fields can be textbox, textarea, radio buttons, checkboxes v.v.
When you create new custom fields in the backend, you can select the custom field types. After creating the custom fields, they will be shown in the frontend with the type you already selected.
Thanks
Ossolution
Hi. yes, this basic and we understand, however the question was not this..
thanks
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
id
group_id
field_type
field_name
field_label
field_description
ordering
required
show_description
options
so,
$field : the custom field object.
is this field_type?
thanks
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
sample is
<?php HelperOspropertyFields::showField(textarea,119);
it doesnt load the template.
thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
- Posts: 12570
- Thank you received: 1627
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.