Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

filter is not shown 23 Oct 2014 15:35 #12715

  • albert
  • albert's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 70
  • Thank you received: 2
I did a component by using 3.X, and then after few time i want to add another filter
on the view.html.php i add this code

$modelEstat_id = CkJModel::getInstance('estat', 'CsicprojectsModel');
$filters->jdomOptions = array(
'list' => $modelEstat_id->getItems()
);

if i do a print_r($filters);
i obtain code, so i am getting the values
then i add in the default.xml of the view:

<fields name="request">

<fieldset name="request" addfieldpath="/administrator/components/com_component/models/fields">

....

<field name="filter_estat_id"
type="modal_estatitem"
label="CSICPROJECTS_JSEARCH_FILTER_ESTAT"
required="false"
default=""
description="CSICPROJECTS_JSEARCH_SELECT_ESTAT_ITEM"/>
</fieldset>

then in the default.php
i do
<div class="pull-left">
<?php echo $this->filters->input;?>
</div>

but i get nothing
it is empty

do you know where i should look about ?

thanks in advance

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

  • Page:
  • 1
Time to create page: 0.065 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started