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. Johan Hammarström
  2. F2C article templating
  3. Sunday, 15 February 2015
  4.  Subscribe via email
Form2Content Pro version 6.5.0
Joomla v3.3.6.
---------------------------------
Hi,
Can I use smart IF-tag to detect if the article view is used? I want to set a caption in the intro text to be visible in category listings, but I do not want it to show in the article view...

Any ideas? I want something like this:


{if not Articleview}
{$CAPTION}
{/if}


With kind regards,
- Johan.
Responses (2)
Accepted Answer Pending Moderation
Hi Johan,

No, that's not possible, because the Smarty code is executed only on saving the article.

What you need is something dynamically that executes every time the article is loaded on the site. For this purpose you would need to write a custom Joomla plug-in. Plug-ins are triggered every time an article is show on the site.

best.
Julien
  1. more than a month ago
  2. F2C article templating
  3. # 1
Accepted Answer Pending Moderation
Hi Johan,

Can you not easily accomplish this by hiding the Intro of the Joomla article in the article view itself? (standard Joomla option).
This way your intro (what is shown in category blog layout) can be anything you want.

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 article templating
  3. # 2
  • Page :
  • 1


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