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. Rudolf Baláš
  2. Form2Content Lite & Pro
  3. Saturday, 28 July 2018
  4.  Subscribe via email
Hi Patrick,

I need put meta tag inside template for article main:


<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? JFactory::getConfig()->get('language') : $this->item->language; ?>" />


How can I write right?

If I use this:


<meta itemprop="inLanguage" content="{$JOOMLA_LANGUAGE}" />


I see on render this:


<meta itemprop="inLanguage" content="*">


but right is this:


<meta itemprop="inLanguage" content="cs-CZ">



Thanks

Rudolf
Responses (3)
Accepted Answer Pending Moderation
Hi,

the right is (I think :):


<meta itemprop="inLanguage" content="{if $JOOMLA_LANGUAGE === '*'}{php}echo JFactory::getConfig()->get('language');{/php}{else}{$JOOMLA_LANGUAGE}{/if}" />
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 1
Accepted Answer Pending Moderation
The best solution i can give is

<meta itemprop="inLanguage" content="{if $JOOMLA_LANGUAGE === '*'}{php}echo JFactory::getConfig()->get('language');{/php}{else}{$JOOMLA_LANGUAGE}{/if}" />
. I have tried it myself and it is working fine.For more detailed information iCloud Support will help you.
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 2
Accepted Answer Pending Moderation
Thanks for this info Steve! Hope it works for you Rudolf!

I will also check the {$JOOMLA_LANGUAGE} template parameter.

Regards,
Patrick
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. # 3
  • Page :
  • 1


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