Page 1 of 1

File and Category Ordering

Posted: 27 Jul 2012, 15:50
by art4life44
Hello,
I was wondering if there is a way to set the ordering specific to a category? For example I have one category that needs to be ordered Alphabetically, but another I need to order by Date. Can this be done? Perhaps it could be a parameter in shortcode somehow? LIke this? Thank you!

{phocadownload view=category|id=35|target=b|order=ascending}

Re: File and Category Ordering

Posted: 26 Sep 2012, 12:20
by bcraigie
Did you ever get a solution to this? I'm looking for the same thing.

Thanks.

Re: File and Category Ordering

Posted: 29 Sep 2012, 15:38
by Jan
Hi, there is no such option, so this needs to be customized - set some new parameter for category - ordering - and take it from this place.

Jan

[Solved] Re: File and Category Ordering

Posted: 25 Jan 2013, 11:37
by darryl
Hi, I would also like to do this. I am an experienced web developer (PHP, HTML, SQL, CSS etc), but I am new to Joomla. So could you please provide some more details of how (and where) to set some new parameter for category - ordering.

Re: File and Category Ordering

Posted: 25 Jan 2013, 21:46
by davidfowkes
Hi, I would very much like to have this feature too . Am I right in thinking that it was available on older versions of phoca downloads? I think it was available in the component parameters in the menu item. Any suggestions about how I might customize the component to achieve this would be gratefully received.

Re: File and Category Ordering

Posted: 27 Jan 2013, 18:20
by Jan
Hi, you can add some new parameter to menu link and do more menu links with different parameters, see:
https://www.phoca.cz/documents/16-joomla ... a-25-17-16
Jan

Re: File and Category Ordering

Posted: 23 Nov 2016, 00:39
by gltwb
Hello,

I just managed to insert ordering for categories within the menu link with your article.

But if I add the code for File Ordering it is ignored. Could you help me pls?

BR

Re: File and Category Ordering

Posted: 28 Nov 2016, 22:40
by Jan
Hi,

- check if you have added right parameter (there are more parameters for ordering)
- check if you are located in the menu link, you have customized (disable SEF and check the Itemid, this is the id for the menu link)

Jan

Re: File and Category Ordering

Posted: 10 Dec 2016, 20:30
by gltwb
Hello,

thanks for your suggestion.

It should be correct - I added Category & File Ordering.

I checked the databaes where the menues are stored - in the params field is shown

Code: Select all

{"category_ordering":"4","file_ordering":"4","show_pagination":"1","show_pagination_limit":"1","menu-anchor_title":"","menu-anchor_css":"","menu_image":"","menu_text":1,"menu_show":1,"page_title":"","show_page_heading":"","page_heading":"","pageclass_sfx":"","menu-meta_description":"","menu-meta_keywords":"","robots":"","secure":0}
unfortunately phoca download is ignoring it.

We also tried to put those parameters directly into phocadownload_category params databasefield - no luck.

also we checked as you mentioned the Link without SEF - no luck as well.

I checked the component params - its written similarly - but there the changes are really working - unfortunately for all downloads.

Code: Select all

{"filename_or_name":"filenametitle","display_downloads":"0","display_description":"3","display_main_cat_desc":"0","display_detail":"0","display_new":"0","display_hot":"0","display_most_download":"1","display_file_view":"0","display_date_type":"0","download_external_link":"_self","download_metadesc":"","download_metakey":"","category_ordering":"2","file_ordering":"2","default_pagination":"200","pagination":"5,10,15,20,50","display_num_doc_secs":"0","display_num_doc_secs_header":"1","display_up_icon":"1","display_mirror_links":"0","display_report_link":"0","report_link_guestbook_id":"","tags_links":"0","display_tags_links":"0","license_box_height":"300","display_category_comments":"0","display_file_comments":"0","fb_comment_app_id":"","fb_comment_width":"550","fb_comment_lang":"en_US","fb_comment_count":"","display_rating_file":"0","file_icon_size":"16","file_icon_size_md":"16","file_icon_mime":"1","display_specific_layout":"0","display_play":"1","player_width":"328","player_height":"200","player_mp3_height":"30","play_popup_window":"0","html5_play":"0","display_preview":"0","preview_width":"640","preview_height":"480","preview_popup_window":"0","youtube_height_cv":"240","youtube_width_cv":"320","youtube_height_dv":"360","youtube_width_dv":"480","ignore_file_types_check":"2","allowed_file_types_download":...
I am not sure what we are doing wrong - any ideas?

BR

Re: File and Category Ordering

Posted: 15 Dec 2016, 22:13
by Jan
Hi, do you use the component or plugin.

If the component, do you use template override (e.g. your template override the output of download). In such case it depends on the template files to get the parameters :idea:

Jan