Refactoring administrator/mod_latest

4 views
Skip to first unread message

jonnathan

unread,
Jan 3, 2010, 6:27:51 PM1/3/10
to Joomla! CMS Development
While I was working on the mod_latest refactoring I found some
problems
1 - There's no way to filter by "not added or modified by me" or
"added or modified by me";
2 - There' no way to filter by the access level. Even com_content at
the backend show all articles even if the user isn't authorised to
view the article;
3 - The Com_modules don't load the language file from the correct
place, it load from administrator/modules/mod_latest/languages (The
language files of the core modules should be in administrator/
languages);

doubt:
1 - Should I use the ContentModelArticles from the backend or from de
frontend?
2 - Should I put a link to edit the user who created the article? like
is in joomla 1.5.

Suggestions:
1 - Add a 'count' field to the params to let the user choose how many
items must be displayed
2 - Add a 'Categories' field to the params, and another to set if sub-
categories must be displayed to.

Andrew Eddie

unread,
Jan 3, 2010, 11:06:55 PM1/3/10
to joomla-...@googlegroups.com
Hi Jonathan

2010/1/4 jonnathan <jon...@hotmail.com>:


> While I was working on the mod_latest refactoring I found some
> problems
> 1 - There's no way to filter by "not added or modified by me" or
> "added or modified by me";

That would be appropriate to add.

> 2 - There' no way to filter by the access level. Even com_content at
> the backend show all articles even if the user isn't authorised to
> view the article;

I don't think that is necessary in the module.

> 3 - The Com_modules don't load the language file from the correct
> place, it load from administrator/modules/mod_latest/languages (The
> language files of the core modules should be in administrator/
> languages);

The module loader should do that automatically. I think some language
files have been shifted around to the wrong place in the trunk.

>
> doubt:
> 1 - Should I use the ContentModelArticles from the backend or from de
> frontend?

Use the frontend model.

> 2 - Should I put a link to edit the user who created the article? like
> is in joomla 1.5.

Not sure on that one, I'll have to take a look.

> Suggestions:
> 1 - Add a 'count' field to the params to let the user choose how many
> items must be displayed

Yes, that would be appropriate.

> 2 - Add a 'Categories' field to the params, and another to set if sub-
> categories must be displayed to.

Certainly a multi-select categories option would be good. Leave the
sub-categories option for now until we sort out the articles model.

Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer

>
> --
>
> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> To post to this group, send an email to joomla-...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>
>
>

Andrew Eddie

unread,
Jan 3, 2010, 11:20:44 PM1/3/10
to joomla-...@googlegroups.com
2010/1/4 Andrew Eddie <mamb...@gmail.com>:

>> doubt:
>> 1 - Should I use the ContentModelArticles from the backend or from de
>> frontend?
>
> Use the frontend model.

I'm sorry, that's the backend module. You should use the backend model.

Anthony McLin

unread,
Jan 4, 2010, 12:02:42 PM1/4/10
to joomla-...@googlegroups.com
A couple of months ago I put together a patch that combines the functionality of mod_latest and mod_newsflash

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=18542

It was discussed a bit here, but never got any feedback after creating the patch.

Is it too late to get this in?

-Anthony
--
Anthony McLin
Senior Web Developer
amc...@kaadesigngroup.com
T 310.821.1400  F 310.821.1440

KAA Design Group, Inc.
4201 Redwood Avenue, Los Angeles, CA 90066
Architecture | Landscape | Brand Experience | Interiors
www.kaadesigngroup.com

Andrew Eddie

unread,
Jan 5, 2010, 12:34:51 AM1/5/10
to joomla-...@googlegroups.com
Hi Anthony.

No, not too late. Was there a language file to go with it was well?
Also additions to the installation SQL would be helpful
(jos_extensions table mainly).

Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer

2010/1/5 Anthony McLin <amc...@kaadesigngroup.com>:

Anthony McLin

unread,
Jan 6, 2010, 9:39:05 PM1/6/10
to joomla-...@googlegroups.com
I'll take a look at those extra files this weekend and see what I can get together.
Reply all
Reply to author
Forward
0 new messages