Profile

Layout

Menu Style

Cpanel

Using JPagination together with Grid.Sort in Frontend

If you don't know, you cannot directly use JPagination together with JHTML::_('grid.sort') in your component at frontend. I found this problem when I develop component to be used in Intranet. I want to let administrators of the component perform their functions in frontend. As you know in backend if they are administartor then I cannot limit their access to only one specific component. However I can do this in frontend and only give theme a registered group member.

The problem occurs if users click on the table header to sort using GRID.SORT and then they click on pagination links e.g. START, PREV, NEXT .... The component will let them to the wrong page. For example, first they go to the page with this url

             index.php?option=com_jtimesheet&task=timesheet.getlist&m=my&Itemid=76

Here, I use controller.task in the url and there are many links with different paramerter m=my, m=all, m=approval etc. When a user goes to this page with above url. and clicks pagination link. It works fine as it creates correct link in this case but when the user clicks on grid to sort the url will reduced to index.php?option=com_jtimesheet&Itemid=76. This is action attribute on the form I used. Ok, there is no problem with grid.sort as I provide hidden input field in the form (task and m in this case). But if user click on pagination link it will go to url

 index.php?option=com_jtimesheet&Itemid=76.

Which is not desired result. The problem occurs only in frontend as JPagination creates link like this <a href="/component/jtimesheet/?Itemid=76"...> and you may have seen the problem it constructs wrong url. But at backend JPagination use onclick of anchore instead like thisย ย  <a href="#" onclick="javascript:........">. And it works in backend as all forms we used (if you familiar with it) are name "adminForm". But we don't have to do so in frontend (as in fromtend we want to use ToolBar and Joomla's JavaScript). You can change this to test if it work by changing pagination.php in your current template folder/html. So whatย are the solution?

Read more: Using JPagination together with Grid.Sort in Frontend

JONGman Documentation

JONGman is a reservation and resource management based on PHPScheduleIt. Thanks to PHPScheduleIt for a great standalone reservation system. Many of its features were imported to Jongman, now you can use such a reservation system on Joomla!

Requirements

Jongman is a native Joomla! 1.5 component, due to its object oriented programming requirements PHP5 is required. However, PHP5.3 is never testing. Jongman 1.x will not work on Joomla! 1.6, Jongman 2.x does, but it requires sometime for public release.

Read more: JONGman Documentation

JONGman

JONGman is a native Joomla! 1.5 extensions based on popular GPL reservation system called PHPScheduleIt. The component brings 80% of PHPScheduleIt features to Joomla! users. The design concept of Jongman schedule is that we can group similar resources to one group of resources e.g. time span, start time and end time of reservation in each day, number of day to show. Then this schedule is mapped to one menu items. Thus with JONGman you can create many menu items one for each schedule.

JONGman is required Joomla! 1.5 and PHP 5.x (Not tested with 5.3)

Read more: JONGman

JONGman FAQs

JONGman Frequently Ask Questions (FAQs)

Q. I configured schedule start reservation time and end reservation time to be 08:00 and 22:00 respectively, but when user logined and found that schedule displayed start reservation time as 01:00 and end reservation time asย 15:00 respectively. What is the problem, is it a bug?

A. This is not a bug, but it is a time zone different configured for web site and user. Please make sure that you set web site time zone correclty in Joomla Global Configuration->Server->Locale Setting. For users, it can be set in user paramter, to access this go to User Manager and click on the user name to edit that user. You will find Time Zone setting in the right side.

You are here: Home

© Copyright 2007-2012, All Rights Reserved by Joomlant.org. The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Joomlant.org is not affiliated with or endorsed by Open Source Matters or the Joomla!® Project.