Please note that Form2Content is no longer being developed. All files from the latest version can be found on Github.

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Thomas Braun
  2. F2C field types
  3. Saturday, 31 October 2015
  4.  Subscribe via email
Joomla 3.4.5
Form2Content Pro 6.12.0

Hi there,

I'm sorry but I didn't found how I can get and display the single elements of the display list. The documentation is a liltle bit short at that point.
I would like to outpout them in a list which looks this way:

<ul class="unstyled">
<li><span class="icon-circle-arrow-right">{$SI_DISPLAY_LIST_ELEMENT1}</span></li>
<li><span class="icon-circle-arrow-right">{$SI_DISPLAY_LIST_ELEMENT2}</span></li>
<li><span class="icon-circle-arrow-right">{$SI_DISPLAY_LIST_ELEMENT3}</span></li>
<li><span class="icon-circle-arrow-right">{$SI_DISPLAY_LIST_ELEMENT4}</span></li>
<li><span class="icon-circle-arrow-right">{$SI_DISPLAY_LIST_ELEMENT5}</span></li>
<li><span class="icon-circle-arrow-right">{$SI_DISPLAY_LIST_ELEMENT6}</span></li>
</ul>


Hope anyone can help me.

Regards,
Thomas
Accepted Answer
Accepted Answer Pending Moderation
Hi Thomas,

You are correct about the documentation, sorry.

There are several ways to display the output.

1) In the field parameters of the display list you can set output to ordered or unordered ... simple but limited
2) You can create a CSV list using {$< fieldname >_CSV}

3) YOUR SOLUTION: The values also come in an array (See the Form2Content cheat sheet)

{$< fieldname >_VALUES}

To handle array output have a look at some examples here:
http://documentation.form2content.com/f2c-tips-and-tricks/f2c-smarty-code-snippets/45-multi-select-list-array-output-isarray-inarray

Hope this helps!

Regards
Patrick
References
  1. http://documentation.form2content.com/images/stories/Form2Content_template_parameters.pdf
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 (3)
Accepted Answer Pending Moderation
The code was not shown here, so please have a look at the image.
http://www.spezial-immo.de/images/temp/dl-list-example.jpg
  1. more than a month ago
  2. F2C field types
  3. # 1
Accepted Answer Pending Moderation
Great, thank you very much!
  1. more than a month ago
  2. F2C field types
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.