I encountered a very strange phenomene - sometimes a readmore tag <hr id="system-readmore" /> is added, when there shouldn't be one.
In a custom main template, the entire html/smarty code is surrounded by:
{if $CAN_PUBLISH}
<div>
...
</div>
{/if}
{$CAN_PUBLISH} is a check box field. The author can check the field and then the main template part will be shown.
First thought was there was a mistake in the main template code, so I removed all the code, and no readmore tag showed up. Then I added part by part the code for showing the fields content. Still no readmore tag.
Almost added all of the code, and then the readmore tag showed again.
And now for the strange phenomene - when I removed the code backward again, the readmore tag still showed up. Even with the main template code
{if $CAN_PUBLISH}
<div>
</div>
{/if}
BTW - To test the effect I refreshed a F2C article each time by changing something in the backend F2C article form and saving, and checked the effect in the Joomla article editor.
Joomla! 3.9.18
Form2Content Pro version 6.17.4
Form2Content Forum
Questions and answers for Form2Content, a Joomla CCK.
- Hans de Jong
- F2C article templating
- Thursday, 28 May 2020
- Subscribe via email
- Page :
- 1
There are no replies made for this post yet.
However, you are not allowed to reply to this post.
However, you are not allowed to reply to this post.