Order on the default template

More
12 years 8 months ago #18261 by igcorreia
The default template is very powerfull for listing, the only thing missing is the ORDER feature is my opinion.

It would be great to allow the user to order by any kind of field.

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

More
12 years 8 months ago #18265 by ggppdk
You mean at item or category manager Listings, to order by template column?

This was not implemented because the template column is not a column of the item or category by text inside item's or category, so we cannot easily do it at the Database Query.

Of course it is possible to reorder output after Database query is executed,
by PHP manipulation commands, but this could be a problem with pagination which is done at the DATABASE Level, and would yield unexpected results.

But it can be useful, we will examine.

What will be very useful is to massively copy item parameters to many items from a single item, exactly like for categories. This will be implemented sooner or later.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 8 months ago #18270 by igcorreia
In the template FlexiTable View in the front end.

Flexi content in the backend gives us so many features, it woulb be great to have some like does, like clicking in the title and ordering by title.

I understand what you mean, but this could be something different than the others CCks, if a create a RealEstate website and a create the Custom field Location, the user would llike to filter by Location, but not filter and order.

See what i mean??

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

More
12 years 8 months ago #18272 by ggppdk
I see, i will add this in the TODO.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 8 months ago #18281 by igcorreia
Cool. Thanks

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

More
12 years 7 months ago #19200 by igcorreia
hahaha Imanage to find a way to do it :D

1 - Open CATEGORY in your template and add to line 20
Code:
<?php $doc =& JFactory::getDocument(); $doc->addScript( JURI::root( true ).'http://www.kryogenix.org/code/browser/sorttable/sorttable.js' ); ?>
That will loud the script when the template is loaded.

2 - Now open CATEGORY_ITEMS and find:
Code:
<table id="flexitable" class="flexitable"
change it to
Code:
<table id="flexitable" class="flexitable sortable"

That all, now press how you want to sort it by pressing the LABELS.

this is not perfect because it does now order between pages. But it is better than nothing.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.305 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline