SSL Labs ScoreSecurityHeaders.io ScoreHSTS Preloaded

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

Subform issues

More
2 weeks 20 hours ago #4349 by Tomoe
Subform issues was created by Tomoe
Hi,
I just bought Subforms, but I've got issues with it.

First one is that I created a very simple subset. Seems to work great, but it doesn't load anything on fronted when "Load Template" is set to "Yes".
<dd class="field-entry encadre"><span class="field-value"><div><div></div><div></div></div></span>
</dd>
When it's set no "No", fields are shown, but with a table layout.
<dd class="field-entry encadre"><span class="field-value"><table class="table">
<tbody><tr>
<th>Titre</th>
<th>Contenu</th>
</tr>
<tr>
<td>
Test
</td>
</tr>
<tr>
<td>
<p>Test</p>
</td>
</tr>
</tbody></table></span>
</dd>
Here is the code of the .php file, inspired by the menu_restaurant example :
<?php
$json = (array)json_decode($value);
echo '<div>';
foreach($json as $item) {
	echo '<div>';
	foreach(array('title','content') as $fieldname) {
		if(strlen(trim($item->$fieldname))) {
			echo '<span class="encadreitem '.$fieldname.'">'.$item->$fieldname.'</span>';
		}
	}	echo '</div>';
}
echo '</div>';

Second one is that I wanted to check with menu_restaurant, but event if I fill it with content, there's nothing on the frontend :
<dl class="fields-container">
<dd class="field-entry encadre"><span class="field-value"><div><div></div><div></div></div></span>
</dd>
<dd class="field-entry encadre"><span class="field-value"><table class="table">
...</table></span>
</dd></dl>
So I tried to create a new subfield, much more simple, but nothing displays.

Where do I miss something ?
Best regards

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum