PhilippDE Posted January 16, 2018 Posted January 16, 2018 Hi, I created a database and created some fields. Now I created an a new database entry (in my case one article) and I tried to show a field inside it contents. But when I put {$record->customFieldDisplayByKey('template key', 'listing')|raw} in the wysiwyg editor and save it. I will not see the field. I will see that code I entered. What I need to do, to get this code parsed. The same is wit BB Code. It will not parse.
PhilippDE Posted January 16, 2018 Author Posted January 16, 2018 Hi, I only find the "Can post HTML?" setting. I will see that AcceptHTML settings in the field configuration. It is off. Does this property say that I can use the fields inside the contents? I interpreted it that it says if a field can contain html code.
opentype Posted January 17, 2018 Posted January 17, 2018 Guess I misunderstood you. I thought you wanted to output HTML code. But I think I get it now. 8 hours ago, PhilippDE said: {$record->customFieldDisplayByKey('template key', 'listing')|raw} in the wysiwyg editor and save it. You can’t do that. The code is meant to be used inside templates, not the editor. And there also isn’t a way to add field content inside the editor.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.