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

Fields - subform render into article

More
2 years 1 month ago #2246 by michael
You can use "AND" and "OR" in com_finder

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

More
2 years 1 month ago #2247 by michael
Using com_finder requires a modification to the template though - hold on

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

More
2 years 1 month ago #2249 by michael
Modify the output template to add this if statement after the $doc instance is grabbed:


$doc = JFactory::getDocument();
if($doc->type != 'html') {
echo $json;
return;
}

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

More
2 years 1 month ago #2250 by GetToNet
I'm not sure what I'm getting with this, but I'll try. That's my lack of knowledge, sorry..

At this point I'm struggling to create output template for subform field type="list"

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

More
2 years 1 month ago #2251 by michael
list type is easy. The value output, is the value of the <option> element you create - otherwise it behaves like any other value.

<field type="list" name="listitem" label="List Item">
<option value="itemvalue1">Item Value 1</option>
<option value="itemvalue2">Item Value 2</option>
</field>

the thing you have access to in the output template is the option value selected. So, in my video example for the automatic table - I created those options with the exact output I wanted to see - so the values for Party were "Republican", "Democrat" and "Independent" - when the table was created it output those exact values.

Something that might help, while I'm writing these things, in the output template I often echo the $json variable so I can see the data structure. Seeing the structure makes it easier to write code to access the values.

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