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. Friday, 03 May 2019
  4.  Subscribe via email
Hi Patrick,

after put form2content article inside form2content article (with regularlabs article anywhere), the url is not generated.

See - https://www.hanf-gesundheit.de/hanf-tee

and link

Tee-Latte für 4 Personen

https://www.hanf-gesundheit.de/%7BplgContentF2cSef%7D703:tee-latte-fuer-4-portionen,48:rezepte%7B/plgContentF2cSef%7D

Where is problem?
References
  1. https://www.hanf-gesundheit.de/hanf-tee
Responses (17)
Accepted Answer Pending Moderation
Hi Rudolf,

I assume you have the F2C SEF system plugin installed and active?

I got it working this week after I believe I changed the order of the plugins. F2C SEF comes first.

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. # 1
Accepted Answer Pending Moderation
Hi Patrick,

I changed the order and put F2C SEF comes first, but nothing changed.

The error I see still:

https://www.hanf-gesundheit.de/%7BplgContentF2cSef%7D703:tee-latte-fuer-4-portionen,48:rezepte%7B/plgContentF2cSef%7D


Rudolf
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 2
Accepted Answer Pending Moderation
Can you show me your template code. It's strange that the URL is before the tags.
There is also an option within AA to render plugins. Can you set that to ON and the html comments to OFF
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
Accepted Answer Pending Moderation
Template for article:



<div class="f2c-article-main">
<div class="pull-left help-block">
{if $IMAGE}
<a class="f2c-article-main-image imagewrap jcepopup" href="/{$IMAGE_PATH_RELATIVE}" title="{$JOOMLA_TITLE_RAW}"><img itemprop="image" src="/{$IMAGE_PATH_RELATIVE}" alt="{$IMAGE_ALT}" title="{$IMAGE_TITLE}" width="{$IMAGE_WIDTH}" height="{$IMAGE_HEIGHT}" /></a>
{/if}
{if $INTROTEXT}
<div class="f2c-article-main-introtext lead">
{$INTROTEXT}
</div>
{/if}
</div>
<div class="pull-left " style="width:98%;">
<meta itemprop="datePublished" content="{$JOOMLA_CREATED}"/>
{if $MAINTEXT}
<div class="f2c-article-main-maintext">
{$MAINTEXT}
</div>
{/if}
{if $AUTHOR}
<div class="pull-right" style="padding:0px 0px 20px 0px;">
<span style="padding:5px 0px 5px 0px;border-top:1px solid #EDEDED;border-bottom:1px solid #EDEDED;">Geschrieben von <strong>{$JOOMLA_AUTHOR}</strong></span></div>
{/if}
</div>
</div>


In article put another article type rezepte (intro):


<!-- Article -->
<article itemscope itemtype="http://schema.org/BlogPosting">
<meta itemprop="inLanguage" content="{if $JOOMLA_LANGUAGE === '*'}{php}echo JFactory::getConfig()->get('language');{/php}{else}{$JOOMLA_LANGUAGE}{/if}" />
<meta itemprop="url" content="{$JOOMLA_ARTICLE_LINK_SEF}" />
<meta itemscope itemprop="mainEntityOfPage" itemtype="http://schema.org/WebPage" itemid="{$JOOMLA_ARTICLE_LINK_SEF}" />
<meta content="{$JOOMLA_MODIFIED}" itemprop="dateModified">
<meta content="{$JOOMLA_CREATED}" itemprop="datePublished">
<span itemprop="author" style="display: none;">
<span itemprop="name">{$JOOMLA_AUTHOR}</span>
<span itemtype="https://schema.org/Organization" itemscope="" itemprop="publisher" style="display: none;">
<span itemtype="https://schema.org/ImageObject" itemscope="" itemprop="logo">
<img itemprop="url" alt="logo" src="/{php} echo JURI::root(); {/php}templates/esw_easypeasy/images/logo.png">
<meta content="auto" itemprop="width">
<meta content="auto" itemprop="height">
</span>
<meta content="{$JOOMLA_AUTHOR}" itemprop="name">
</span>
</span>
<!--e:Validate structured data-->
{if $IMAGE || $INTROTEXT}
<div class="f2c-recepty-intro" itemprop="articleBody">
{if $IMAGE}
<a class="f2c-recepty-intro-imagewrap" href="/{$JOOMLA_ARTICLE_LINK_SEF}" title="{$JOOMLA_TITLE_RAW}">
<img itemprop="image" class="f2c-case-intro-field-image" src="/{$IMAGE_THUMB_URL_RELATIVE}" alt="{$IMAGE_ALT}" title="{$IMAGE_TITLE}" width="{$IMAGE_WIDTH_THUMB}" height="{$IMAGE_HEIGHT_THUMB}" />
</a>
{/if}
{if $INTROTEXT}
<div class="f2c-recepty-intro-field-introtext">
<h3 class="f2c-recepty-title" itemprop="headline"><a href="/{$JOOMLA_ARTICLE_LINK_SEF}" title="{$JOOMLA_TITLE_RAW}">{$JOOMLA_TITLE_RAW}</a></h3>
{$INTROTEXT}
</div>
{/if}
</div>
{/if}
</article>
<!-- //Article -->
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 4
Accepted Answer Pending Moderation
There is also an option within AA to render plugins. Can you set that to ON and the html comments to OFF


I don'tuderstand :(

Where? Can You send me link or screen?

thanks

Rudolf
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 5
Accepted Answer Pending Moderation
Interesting:

1. In meta tag the article url is ok
2. In link as href the article url is wrong
Attachments (2)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 6
Accepted Answer Pending Moderation
Open the articles anywhere plugin and check options in I believe the last tab
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. # 7
Accepted Answer Pending Moderation
there is a / before ... maybe remove that?
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. # 8
Accepted Answer Pending Moderation
the slash "/" I don't put, is create after copy from my template to the forum :)

I my code is only in attachment
Attachments (1)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 9
Accepted Answer Pending Moderation
hmm, nothing help me, Im tryied everything :(
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 10
Accepted Answer Pending Moderation
Apparently the second time the syntax isn't rendered. I have never seen this yet so the trick is to test and figure out what might cause this.

Can you check the the article html in the Joomla Article Manager? Anything different between the two links?
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. # 11
Accepted Answer Pending Moderation
PS, sometimes it helps to just delete the part and retype it. Some hidden or unseen html identity can %&^* it up.

Ohh and clean cache between refresh!!!
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. # 12
Accepted Answer Pending Moderation
I change template parameters from

{$JOOMLA_ARTICLE_LINK_SEF}

to

{$JOOMLA_ARTICLE_LINK}

and now I see right URL on the blog:

https://www.hanf-gesundheit.de/rezepte -> https://www.hanf-gesundheit.de/rezepte/703-tee-latte-fuer-4-portionen

but this is not right solution, because on the article detail, where I put another article intro in JCE editor with plg Articles Anywhere, I see wrong URL of the same article:

https://www.hanf-gesundheit.de/hanf-tee -> https://www.hanf-gesundheit.de/hanf-tee/48-rezepte/703-tee-latte-fuer-4-portionen

Maybe any is wrong with my setup?

I tryied change order plugin
I tryied change replaced {} with []
I tryied delete template and write again
Attachments (1)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 13
Accepted Answer Pending Moderation
And I dont undrestund why I see in wrong URL:

https://www.hanf-gesundheit.de/%7BplgContentF2cSef%7D222:cbd-hanftee,48:rezepte%7B/plgContentF2cSef%7D

plg Content, because F2CSEF plg is not content, isn't it?
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 14
Accepted Answer Pending Moderation
Hi Rudolf, apologies for the late reply. I had forgotten and was very busy. Have you managed to clear up the issue? I use the plugin and link syntax a lot and haven't (yet) managed to reproduce.

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. # 15
Accepted Answer Pending Moderation
Hi Patrick,

I couldn't solve this problem 100% yet.

But I used a small trick - I replaced the SEF URL in only some places with just a URL:

$ JOOMLA_ARTICLE_LINK_SEF -> $ JOOMLA_ARTICLE_LINK

It's not right, but it works.

Old code:


<!-- Article -->
<article itemscope itemtype="http://schema.org/BlogPosting">
<meta itemprop="inLanguage" content="{if $JOOMLA_LANGUAGE === '*'}{php}echo JFactory::getConfig()->get('language');{/php}{else}{$JOOMLA_LANGUAGE}{/if}" />
<meta itemprop="url" content="{$JOOMLA_ARTICLE_LINK_SEF}" />
<meta itemscope itemprop="mainEntityOfPage" itemtype="http://schema.org/WebPage" itemid="{$JOOMLA_ARTICLE_LINK_SEF}" />
<meta content="{$JOOMLA_MODIFIED}" itemprop="dateModified">
<meta content="{$JOOMLA_CREATED}" itemprop="datePublished">
<span itemprop="author" style="display: none;">
<span itemprop="name">{$JOOMLA_AUTHOR}</span>
<span itemtype="https://schema.org/Organization" itemscope="" itemprop="publisher" style="display: none;">
<span itemtype="https://schema.org/ImageObject" itemscope="" itemprop="logo">
<img itemprop="url" alt="logo" src="/{php} echo JURI::root(); {/php}templates/esw_easypeasy/images/logo.png">
<meta content="auto" itemprop="width">
<meta content="auto" itemprop="height">
</span>
<meta content="{$JOOMLA_AUTHOR}" itemprop="name">
</span>
</span>
<!--e:Validate structured data-->
{if $IMAGE || $INTROTEXT}
<div class="f2c-recepty-intro" itemprop="articleBody">
{if $IMAGE}
<a class="f2c-recepty-intro-imagewrap" href="/{$JOOMLA_ARTICLE_LINK_SEF}" title="{$JOOMLA_TITLE_RAW}">
<img itemprop="image" class="f2c-case-intro-field-image" src="/{$IMAGE_THUMB_URL_RELATIVE}" alt="{$IMAGE_ALT}" title="{$IMAGE_TITLE}" width="{$IMAGE_WIDTH_THUMB}" height="{$IMAGE_HEIGHT_THUMB}" />
</a>
{/if}
{if $INTROTEXT}
<div class="f2c-recepty-intro-field-introtext">
<h3 class="f2c-recepty-title" itemprop="headline"><a href="/{$JOOMLA_ARTICLE_LINK_SEF}" title="{$JOOMLA_TITLE_RAW}">{$JOOMLA_TITLE_RAW}</a></h3>
{$INTROTEXT}
</div>
{/if}
</div>
{/if}
</article>
<!-- //Article -->


New Code:



<!-- Article -->
<article itemscope itemtype="http://schema.org/BlogPosting">
<meta itemprop="inLanguage" content="{if $JOOMLA_LANGUAGE === '*'}{php}echo JFactory::getConfig()->get('language');{/php}{else}{$JOOMLA_LANGUAGE}{/if}" />
<meta itemprop="url" content="{$JOOMLA_ARTICLE_LINK_SEF}" />
<meta itemscope itemprop="mainEntityOfPage" itemtype="http://schema.org/WebPage" itemid="{$JOOMLA_ARTICLE_LINK_SEF}" />
<meta content="{$JOOMLA_MODIFIED}" itemprop="dateModified">
<meta content="{$JOOMLA_CREATED}" itemprop="datePublished">
<span itemprop="author" style="display: none;">
<span itemprop="name">{$JOOMLA_AUTHOR}</span>
<span itemtype="https://schema.org/Organization" itemscope="" itemprop="publisher" style="display: none;">
<span itemtype="https://schema.org/ImageObject" itemscope="" itemprop="logo">
<img itemprop="url" alt="logo" src="/{php} echo JURI::root(); {/php}templates/esw_easypeasy/images/logo.png">
<meta content="auto" itemprop="width">
<meta content="auto" itemprop="height">
</span>
<meta content="{$JOOMLA_AUTHOR}" itemprop="name">
</span>
</span>
<!--e:Validate structured data-->
{if $IMAGE || $INTROTEXT}
<div class="f2c-recepty-intro" itemprop="articleBody">
{if $IMAGE}
<a class="f2c-recepty-intro-imagewrap" href="/{$JOOMLA_ARTICLE_LINK}" title="{$JOOMLA_TITLE_RAW}">
<img itemprop="image" class="f2c-case-intro-field-image" src="/{$IMAGE_THUMB_URL_RELATIVE}" alt="{$IMAGE_ALT}" title="{$IMAGE_TITLE}" width="{$IMAGE_WIDTH_THUMB}" height="{$IMAGE_HEIGHT_THUMB}" />
</a>
{/if}
{if $INTROTEXT}
<div class="f2c-recepty-intro-field-introtext">
<h3 class="f2c-recepty-title" itemprop="headline"><a href="/{$JOOMLA_ARTICLE_LINK}" title="{$JOOMLA_TITLE_RAW}">{$JOOMLA_TITLE_RAW}</a></h3>
{$INTROTEXT}
</div>
{/if}
</div>
{/if}
</article>
<!-- //Article -->
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 16
Accepted Answer Pending Moderation
Hi Rudolf,

Thanks for letting me know. I will continue looking into this and try reproduce. We are also working on refactoring for J4 so maybe this will popup again.

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. # 17
  • Page :
  • 1


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