SOLVED - Custom field data

More
10 years 3 months ago - 10 years 3 months ago #49230 by thirdhatch
Hi,

We are using flexicontent to manage the meta data for a library of around 12,000 documents. We use an external system to serve up the documents in a protected flash/html5 viewer.

We are finding that many of the processes require us to call the same piece of data that exists in one of the custom fields for a given document because of the plugin triggers and functions that we use to make it all work. Is it possible to call that data from another custom field in the same document? Like a small piece of code I could put in place of the actual data?

For instance if field 1 says aabb345.pdf, can I put something like $field1_data in field 2 so that field 2 uses the same data? This would save us a huge amount of time and retyping of data in to multiple fields.
Last edit: 10 years 3 months ago by thirdhatch.

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

More
10 years 3 months ago #49233 by ggppdk
Replied by ggppdk on topic SOLVED - Custom field data
Hello

inside your custom template file or inside the function that creates the HTML display of a field you can use:

$item->fieldvalues[$field_id]

to access the values of any field, thus you only need to store the information in 1 field

see more in our FAQ artice:
Using the raw value of a field inside a template file or inside a new custom field type


-- 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.

More
10 years 3 months ago #49236 by thirdhatch
Awesome! Thanks for saving me days and days of work!

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

More
10 years 3 months ago #49240 by micker
Replied by micker on topic SOLVED - Custom field data
think to edit your title post to add [solved]
and think to rate flexicontent on JED with 5 stars ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.342 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