I took a look at the code, and at first glance it looked like it would be easy, then I started to hit some questions about how to add the new/updated buttons in.
Most of the internals seem to be there. LinkSQL has a mod_date field, and it's set up to use that where appropriate, and the add_date field for other checks.
It seems we need to add 2 fields to the 'link' record when we take it from the database:
1) new_graphic -- a comparason of add_date to $today
2) updated_graphic -- a comparason of add_date to mod_date if "isNew" is true
These need to be passed to the templates, so should be added to the %globals array.
Next, the part that really confuses me, is how to do this for categories, and traverse the category tree -- since if we have 3 levels of subcategories, and the new link is added at the third level, all 3 levels of category names need to marked. And, if one third level is 'new1' and one is 'new3' the 'new1' takes priority and propagates up, but not laterally.
Much of the logic, and bug pitfalls can be seen in the original 3-level mod, what is confusing to me is how to integrate the code to the categories.
Alex -- where are you in the next release? And what is planned -- I'd hate to start adding or taking this apart if your 'official' release is going to incorporate these and other changes?
Most of the internals seem to be there. LinkSQL has a mod_date field, and it's set up to use that where appropriate, and the add_date field for other checks.
It seems we need to add 2 fields to the 'link' record when we take it from the database:
1) new_graphic -- a comparason of add_date to $today
2) updated_graphic -- a comparason of add_date to mod_date if "isNew" is true
These need to be passed to the templates, so should be added to the %globals array.
Next, the part that really confuses me, is how to do this for categories, and traverse the category tree -- since if we have 3 levels of subcategories, and the new link is added at the third level, all 3 levels of category names need to marked. And, if one third level is 'new1' and one is 'new3' the 'new1' takes priority and propagates up, but not laterally.
Much of the logic, and bug pitfalls can be seen in the original 3-level mod, what is confusing to me is how to integrate the code to the categories.
Alex -- where are you in the next release? And what is planned -- I'd hate to start adding or taking this apart if your 'official' release is going to incorporate these and other changes?