0

I'm coding my own joomla component based on Joomla 2.5.13 and I'm struggling with the "Adding sortable columns" tutorial. Extending the MVC-model with the provided code-snippets from this tutorial does not lead to the expected result, the columns cannot be sorted.

I guess, the problem is related to Step 2 (Adapting the View) of the guideline. (Shouldn't this piece of code located in the default.php of the view?) Amending the existing code of the view with the mentioned code snippet causes an error, the page will not be rendered.

Furthermore, the JavaScript snippet in Step 3 (Adapting the Template) seems not compatible with joomla 2.5.13. I copied the script between the header tags of my template, but there is no action observably. Could someone confirm, that this tutorial is valid for Joomla 2.5.13? Perhaps someone knows a working tutorial for this challange?

Kind Regards

tereško
  • 58,060
  • 25
  • 98
  • 150
  • This should definitely work in Joomla 2.5.13. I use a very similar setup in all my components. I usually skip step 2 and replace `sortColumn; ?>` with `get('list.direction'); ?>` in my `JHTML` calls. It should work fine that way though. You should likely paste some of your adapted code to see if we can spot any issue. – David Fritsch Aug 08 '13 at 17:44
  • Hi David, it is working now. I've made a typicall beginners mistake (The hidden fields filter-order and filter-order-Dir were outside the form-tag). Studying a existing component helped me through. Thx. – user2665206 Aug 09 '13 at 15:06
  • Always hard the first time! – David Fritsch Aug 09 '13 at 16:15

0 Answers0