Search
Other Articles Anywhere questions
Forum

Foreach has no output if custom fields is type sql

Chris Mortensen's Avatar Chris Mortensen
In an article I'm using a snippet that displays two custom fields.

First field "spil-hjaelp" is type sql and is displayed as a foreach in the snippet. The field works fine in the article backend, where I can define variables with no problem. But I can't get it to display as a foreach in the snippet - there is no output.

Second field "spil-hjaelp-id" is a type text and works fine.

I can make foreach work elsewhere in a snippet that is displayed in an article, so I suspect it could be the sql type?
{article}
<h3 class="orange">Hjælpetekster for dette spil</h3>
<ul>
{foreach data="spil-hjaelp"}
  <li>[row]</li>
{/foreach}
  {if spil-hjaelp-id}<li>[spil-hjaelp-id]</li>{/if}
</ul>
{/article}

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
The SQL field type is not an array type field in itself. So the foreach will not work on it.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription