Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. moreno
  2. F2C field types
  3. Thursday, September 14 2017, 07:41 AM
  4.  Subscribe via email
Hi,
I use the Database lookup (multi-select) field to generate a list of articles to show in one page.
I wanted to know if it's possible to generate this list within custom tags.
Example:
{$ARTICLES_CSV} generate "article 1, article 2, article 2"
what do I need?
<div class = "classarticle"> article 1</ div>
<div class = "classarticle"> article 2</ div>
<div class = "classarticle"> article 3</ div>

Thank you,
Moreno
Accepted Answer
F2C webmaster Accepted Answer Pending Moderation
Hi Moreno,

Yes it is. Please use the Array options for this.
{$< YOUR_FIELDNAME > _VALUES} will output an array of value and key.

And some template code example:
http://documentation.form2content.com/f2c-tips-and-tricks/f2c-smarty-code-snippets/45-multi-select-list-array-output-isarray-inarray

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C field types
  3. # Permalink
Responses (1)


There are replies in this post but you are not allowed to view the replies from this post.