Thursday 14 April 2005 9:34:04 pm
Hello... Heres the Idea: Developing a news site for a client I came up with the need of a new sort method in ezpublish (not implemented in current versions) I would like to sort my items in the Admin site with a priority
parameter. Instead of having the default value (0) as the default value, once I create an item (class object) I would like to have (by default) a number equal to the year+date+minute+second set as the default priority number. This method will allow in my News web site to have articles ordered by the number generated (equal to the curent date) witch of course will represent information about the moment it was published The coded number will look something like this: 2005, 25th, january at 9am will be: 200501250900 Being: 25012005 the date 09 the hour (24 hour system) 00 the seconds Why all that mess? Having this kind of settings I will be able to modify an articles number (date or time parameters within the new coded number) so It will get assigned to a new priority order and remain as the top article for a period of time, taking for example an article made the 20th of January if I change the date to the 30th of February I will be active as the most recent article for 10 days since published so the article will not get old and "drop down from the list", as days go by other articles get inserted but as their number will be less that the one modified they will be sorted bellow the one modified. I am trying to figure out a more "human or understandable" method that does not use the simple number as the priority thus it could be more confuse to arrange articles in the site and cannot be able to set an article as the TOP one for a period of time. I think using a method like this one will help keep tracking of priority+time on articles (publish date) and be able to keep files sorted (active) by it's published date. <b>Paul Forsyth pointed out the following:</b> The priority database column only has space for an integer with a length of 11 characters. My priority string has twelve characters so I will have to change the string! <b>Can someone point out Where to change the value of priority in the ez code (ver 3.5.1), Which templates or other files do I have to change</b>
Thanks,
jorge estevez rams -*************
Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com
|