Addional features for Content Links List

Support forum for Content Links List

Addional features for Content Links List

Postby phungnguyen on Mon Jan 14, 2008 9:42 am

First of all, thank you very much for sharing this mod with us. This makes all the lists more attractive and useful im Joomla.
I've used it to list some combination of categories. I also modified it a bit to accept authorID (created_by) as the 4th parameter. The problem with this is that I have over 1000 authors, and it's impossible to copy mod_content_links 1000 times to list all of the authors' articles.

I would like to see if
1. we can pass parameters from a content item, in this case, a single parameter value for the authorID (created_by).

2. Since the resulting list can be very long, is there a way to paginate the list so that it can show page navigation at the bottom of the list if the list is longer than say, 50 lines.

Your response is greatly appreciated.

Phung Nguyen
phungnguyen
 
Posts: 3
Joined: Mon Jan 14, 2008 9:05 am

Re: Addional features for Content Links List

Postby david on Sat Jan 19, 2008 8:05 pm

Hi there,

RE: 1. can we pass parameters from a content item, in this case, a single parameter value for the authorID (created_by).

In the module code, you may be able to get the current content item id with

Code: Select all
$id mosGetParam($_REQUEST'id'0); //or similar  


You could then look up the created_by for that item in the DB.

Then you could pass that created_by author id to the authorID param for the script. That should do it.

regarding pagination, it's a little complex for me to do that with a module, as opposed to a list of content items.
There may be a way, but no plans to add that feature as yet.

hope that helps,

regards,

DT
david
Site Admin
 
Posts: 123
Joined: Sat Dec 15, 2007 12:20 pm
Location: New Zealand

Re: Addional features for Content Links List

Postby phungnguyen on Wed Jan 23, 2008 5:01 pm

Hi David;

Thanks for responding.

I am not sure if this makes sense to you. What I am looking for is to be able to call mod_content_links from an url similar to this:

http://damau.org/index.php?option=com_m ... _articles&authorid=89
where authorid is $id in your example.

Would the example you gave me earlier work in this scenario?

Thanks again

PN
phungnguyen
 
Posts: 3
Joined: Mon Jan 14, 2008 9:05 am

Re: Addional features for Content Links List

Postby david on Wed Jan 23, 2008 11:40 pm

You should be able to get the querystring from the URL using mosGetParam() in mod_contentlinks.php

something like:

Code: Select all
$authorID = mosGetParam($_REQUEST, 'authorid', 0); //or similar


and then pass the $authorID value to your custom function or script.

See here for more information on mosGetParam():

http://help.joomla.org/content/view/516/155/
david
Site Admin
 
Posts: 123
Joined: Sat Dec 15, 2007 12:20 pm
Location: New Zealand

Re: Addional features for Content Links List

Postby phungnguyen on Fri Jan 25, 2008 7:45 pm

David;

I am able to pass parameters via URL now.

Thanks a million.

PN
phungnguyen
 
Posts: 3
Joined: Mon Jan 14, 2008 9:05 am

Re: Addional features for Content Links List | expand linklist

Postby rexkramer on Sat Mar 22, 2008 6:59 pm

phungnguyen wrote:...
2. Since the resulting list can be very long, is there a way to paginate the list so that it can show page navigation at the bottom of the list if the list is longer than say, 50 lines.
...


i recently used the wellknown MosCmenuTree. In the past i did not like the slow default tree display...
The current version has many different list options with serveral CSS files.
It has the option to show an initial amount of links, PLUS an option to EXPAND/COLLAPSE the whole list!
So, there has been some work your direction... maybe you should contact the developer for a possible solution...

Extensions Directory:
http://extensions.joomla.org/component/ ... Itemid,35/
Downloads:
http://joomlacode.org/gf/project/coaddons/frs/

CU

PS: Sorry David, that was my first post, and i have to re-direct a loyal user... but i did a really positive review at extensions.joomla.org for your module ;-)
rexkramer
 
Posts: 16
Joined: Fri Mar 21, 2008 4:51 pm

Re: Addional features for Content Links List

Postby simondevries on Wed Jan 21, 2009 3:26 am

Hi phungnguyen and David,

I would be really interested in the version including "authors" as a parameter. Could this version be used to display a list of articles by a specific author? Or could it be used as a sidebar module displaying a list of other articles an author, whose article is currently displayed, has written?

Would it be possible to use your version of the module. That would be awesome. Thanks, Simon

http://www.pastorbuddy.de
simondevries
 
Posts: 1
Joined: Wed Jan 21, 2009 3:20 am

Re: Addional features for Content Links List

Postby rexkramer on Thu Jan 22, 2009 5:56 am

simondevries wrote:Hi phungnguyen and David,

I would be really interested in the version including "authors" as a parameter. Could this version be used to display a list of articles by a specific author? Or could it be used as a sidebar module displaying a list of other articles an author, whose article is currently displayed, has written?

Would it be possible to use your version of the module. That would be awesome. Thanks, Simon

http://www.pastorbuddy.de


There are some other modules with an "author" option... As far as i remember it, they can be used as a "side-bar" module, which lists additional articles... maybe something for your special task:
- FilteredNews
- DisplayNews BK

CU
rexkramer
 
Posts: 16
Joined: Fri Mar 21, 2008 4:51 pm

Re: Addional features for Content Links List

Postby pitpaulo on Sat Jan 24, 2009 11:52 pm

hey thanks for telling us, i was not sure that we had this author option.... i would like to say this forum is really very informative. all the post have the solutions which anybody using your module will have at there primary stage.
pitpaulo
 
Posts: 1
Joined: Sat Jan 24, 2009 11:23 pm

Re: Addional features for Content Links List

Postby newskycar on Thu Jun 24, 2010 8:16 pm

We study in DBMS that Basically linked list is a data structure that consists of a sequence of data records such that in each record there is a field that contains a reference .A linked list whose nodes contain two fields: an integer value and a link to the next node
Linked lists are among the simplest and most common data structures; they provide an easy implementation for several important abstract data structures, including stacks, queues, hash tables, symbolic expressions, and skip lists. Linked lists by themselves do not allow random access to the data, or any form of efficient indexing. Thus, many basic operations — such as obtaining the last node of the list, or finding a node that contains a given datum, or locating the place where a new node should be inserted — may require scanning most of the list elements.

Linked lists can be implemented in most languages. Languages such as Lisp and Scheme have the data structure built in, along with operations to access the linked list. Procedural languages, such as C, or object-oriented languages, such as C++ and Java, typically rely on mutable references to create linked lists.

Newskycars
New Skycars

http://www.newskycars.com/
newskycar
 
Posts: 1
Joined: Thu Jun 24, 2010 8:00 pm


Return to Content Links List

Who is online

Users browsing this forum: No registered users and 1 guest