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. Jeremie
  2. Form2Content Lite & Pro
  3. Friday, 07 October 2016
  4.  Subscribe via email

I include the publish date in articles of my news category, using Form2Content templating.

However, my client asks me to be able to hide the publish date in some articles : typically, when a news announces an event, there could be confusion between the publish date and the event date.

So my idea is to use the article options (publish date : default / hide / show) to be able to hide the publish date on a specific article.
However I consulted the list of available variables for templating, but found none related to the article options.

Is there something like a {$JOOMLA_PUBLISH_SHOW} variable I could use to conditionally show the publish date ?

Joomla version : 3.6.2
F2C Pro version : 6.14.0
Responses (2)
Accepted Answer Pending Moderation
Hi Jeremy,

It is not possible to use Joomla article parameters as Smarty variables .... interesting thought though.

Basically you need to add a relationship between a variable and showing the date yourself. It could be a simple checkbox with either show are hide the date in the article. If checked, display date..... and add the corresponding smarty code in F2C template.

Hope this helps!

Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 1
Accepted Answer Pending Moderation
Wow, what a quick answer ! ;-)

Thank you for your suggestion, that would do the trick indeed. Problem solved !

And let me know if in the future you include such parameters to use article options in templating.

  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 2
  • Page :
  • 1

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