Hawing problems with displaying fields

More
5 years 10 months ago - 5 years 10 months ago #73622 by laure2
Hello ,
so i hawe a problem if i do this php command
Code:
<?php echo $this->fields["field_name"]->display ; ?>
it displays my text field correctly
but in my inspector view i get
Code:
<div style="display:inline" itemprop="name">Value of the field</div>
and what i need is to get it only "value of the field" without the div if i create a new one it does just that , but if i use my old one (the one that i need cus it has like 500 entries and reentering them could waste time) it gives me with the div
so is it posible to set value of one field to another?
and maby i can fix my old field to display only text?
Last edit: 5 years 10 months ago by laure2.

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

More
5 years 10 months ago #73623 by laure2
Alredy fixed it the problem was with metadata just made it disabled and it works

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

More
5 years 10 months ago #73624 by ggppdk
Hello

to get the raw field values you can use:
Code:
[code]$item->fieldvalues[57]
[/code]where 57 is the ID of the field

See more here:
flexicontent.org/documentation/faq/70-de...stom-field-type.html

and here:
flexicontent.org/documentation/faq/71-fi...of-other-fields.html


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.286 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline