Reproducing "blog style" and List style" category views

More
13 years 2 months ago #31092 by Rehne

conticreative wrote: Also, any idea about sorting the articles in the table like the default Joomla list style category page does?


Hi,
currently it is not yet implemented (maybe in the future)
but you can use jqeury Plugins
i recommend 'Tablesorter'
it is very easy to use
tablesorter.com/docs/ or other plugins/methods ...
www.lampdev.net/programming/php/json-ajax-jquery.html

but you have to adapt the used FC template (table...)
but that is not very complicated

Note:
following the tablesorter.com/docs use best
Code:
jQuery(document).ready(function($){ jQuery.noConflict(); $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} ); );
This "noconflict" causes that there are no problems with mootools which are integrated into joomla.


Regards

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

More
13 years 2 months ago #31093 by conticreative
Thank you. I was actually looking at using jQuery, but I wasn't sure if there was already something built in I could use.

Much obliged.

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

More
13 years 2 months ago #31094 by ggppdk
by clicking at the table headers? no this is is not there because table columns contain random flexicontent fields,


you can display a drop-down select for ordering in every category page by title, author, newest, hits , reverse the previous , etc


-- 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 review. Thanks!

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

More
13 years 2 months ago #31096 by Rehne
Hi,

ggppdk wrote: by clicking at the table headers? no this is is not there because table columns contain random flexicontent fields,


with the plugin tablesorter, you can make this very easy ... no matter if columns contain random flexicontent fields
because the syntax is simply
Code:
<table id="myTable"> <thead> <tr> <th>Last Name</th> <th>First Name</th> </tr> </thead> <tbody> <tr> <td>Smith</td> <td>John</td> </tr> <tr> ...
Code:
<script language=”javascript” type=”text/javascript”> $(document).ready(function() { $(“#myTable”).tablesorter(); } ); </script>

but of course you can also do it so ;)

ggppdk wrote: you can display a drop-down select for ordering in every category page by title, author, newest, hits , reverse the previous , etc


Regards

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

More
13 years 2 months ago #31097 by ggppdk
Yes, but Javascript ordering cannot work with multiple-page content lists (category/tags/favourites views)

Drop down select ordering will work with multiple pages since it is used inside the DB query that produces the content (item) list
and it supports:

"Use Default Order"
"Added -- Oldest first"
"Added -- Most Recent first"
"Modified - Most Recent first"
"Title -- Alphabetical"
"Title -- Alphabetical Reverse"
"Author -- Alphabetical"
"Author -- Alphabetical Reverse"
"Popularity -- Most hits first"
"Popularity -- Least hits first"
"Content 's ordering attribute"


-- 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 review. Thanks!

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

More
13 years 2 months ago #31099 by Rehne
in this case, you're right ... that (multiple-page content lists) is not possible with tablesorter

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

Moderators: vistamediajoomlacornerggppdk
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
Save