• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Doesn't work displaying for pagination select value = "all"

Doesn't work code in:
/components/com_fabrik/helpers/pagination.php
PHP:
        public function getLimitBox()
        {
                // Initialize variables
                $limits = array();
                $vals = array();
                $vals[] = 1;
                $vals[] = 2;
                for ($i = 5; $i <= 30; $i += 5)
                {
                        $vals[] = $i;
                }
                $vals[] = 50;
                $vals[] = 100;
                $vals[] = 200;
                $vals[] = 500;
                if (!in_array($this->startLimit, $vals))
                {
                        $vals[] = $this->startLimit;
                }

                asort($vals);
                foreach ($vals as $v)
                {
                        $limits[] = JHTML::_('select.option', $v);
                }

                if ($this->showAllOption == true)
            
                {
                        $limits[] = JHTML::_('select.option', '-1', JText::_('COM_FABRIK_ALL'));
/* add dankam no result                        $selected = '-1'; */
        }

                $selected = $this->_viewall ? '-1' : $this->limit;

                $js = '';
                $attribs = 'class="inputbox input-mini" size="1" onchange="' . $js . '"';
                $html = JHTML::_('select.genericlist', $limits, 'limit' . $this->id, $attribs, 'value', 'text', $selected);
        return $html;
}
        /**
         * Method to create an active pagination link to the item



Is not set $selected when JText::_('COM_FABRIK_ALL) = all (PL = wszystkie)
when choose: 5,10,15,20,25,30,50 is OK ---- after selection is displayed the same what i have selected 5,10,15,20,25,30,50


when selection is "all/wszystkie", than is displayed -after selection- first value that exist in dropdown for selection -- it was "5", but i have test this and add $vals[] = 1 and now is displayed "1" after selection "all/wszystkie".

Is possible to modify this code to get displayed value "all/wszystkie" after selection "all/wszystkie" ?
 

Attachments

  • Zaznaczenie_167.png
    Zaznaczenie_167.png
    10.5 KB · Views: 529
yes, this is an issue, but it's Fabrik3.0...

The fix is in GitHub (joomla25 branch)
As always: backup before
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top