AlexWebsites Posted October 19, 2018 Share Posted October 19, 2018 I'd like to create a block where I can display the image that is uploaded into a custom profile field. Currently I have this content in the database within field_30 so I need to be able to pull that image path to display. Basically I have a custom profile field where members can upload a logo. I'd like to create a block to show all the logos horizontally. Is it something like {$record->field_30} which doesn't work and then in the database the file path is after the /uploads/.....so not sure if there is a good way to pull and build the url to show within an img src tag. Link to comment Share on other sites More sharing options...
opentype Posted October 19, 2018 Share Posted October 19, 2018 Assuming $record->field_30 exists and has a single image saved, you can show an image like this: <img src="{file='$record->field_30' extension='cms_Records'}"> Link to comment Share on other sites More sharing options...
AlexWebsites Posted October 20, 2018 Author Share Posted October 20, 2018 Thanks for the reply @opentype I think I made a mistake from where I'm trying to pull data into a CMS block. I'm trying to grab data from my field_30 in the table core_pfields_content which holds all the core custom profile field data I believe. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.