Home arrow Forum

Remository Forum

 


bammerman

Karma: 0  
File version to file date - 2009/03/18 20:38 Is there a way to change the File version text to say File Date in both front end and back end, and then sort by it? Right now I have the sort limited to File Title | Downloads | Submit Date (I would like to use the file version as a file date display field and just have it show up on the web as file date instead of version.
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:File version to file date - 2009/03/20 16:30 It is not a hugely difficult programming task to add an extra sort order, but it would require some PHP skill.

You can change any text by adding your own custom overrides at the start of the language file, e.g. ../language/english.php.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
bammerman

Karma: 0  
Re:File version to file date - 2009/03/24 15:31 I made the change in the language file, thank you. Where is the .php file that controls the Order by?
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:File version to file date - 2009/03/24 22:10 The real work is done in ../p-classes/remositoryFile.php, in the getFilesSQL method. The ordering stuff is near the start of the method. You can control the default sort order by setting a value in com_remository_constants.php. That may be all there is to it, but you might need to chase things around a bit.

Not sure if I've said this before, but it's useful to use either a full IDE or a good editor such as Notepad++ that will allow you to search across the whole project.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.

Save FM Radio

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 6 guest online