Jump to content

Show database fields in database contents


PhilippDE

Recommended Posts

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.

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...