roog Wrote:I suggest you save your articles using a year-month-day pattern, as this will probably solve your sorting issues.
Yes, with date set as year-month-day-[id], everything works fine.
Oleg: just change date("j-m-Y") to date("Y-m-j")
roog: are you going to expand this plugin further ?
It works like a charm, but it still needs:
- translation possibility (not messing with core)
you could grab GS translation file, as it contains most of translated words/sentences.
- pagination should contain number of pages like <-older 1 | 2 | 3 |4 -> newer
- preview option (like pages)
- tags is a hard thing, as it needs to work with some kind of a search function.
I think that moving date creation to be shown along with news title, or at the end of the container is a better idea (I'm just about to change it).
News body could contain date of edit, but this feature should be switchable.
hmmm...supposing I want to have 2 instances of news, is it enough to duplicate the plugin and change its name ? If not, think about creating multiple instances, so this plugin could work also as a blog.
edit: I'm thinking about implementing translation variables from GS language file, but I haven't had much practice in plugin development.
But preview option at article listing page shouldn't be much of a hassle.
Addons: blue business theme, Online Visitors, Notepad