List posts of a user for a particular flexinode content type or particular taxonomy term?

noid - September 23, 2005 - 23:15

I'm trying to figure out how to list all the entries/posts of a particular user for a certain content type (specifically flexinode content types) such as the blog content type does -- that is, mysite.com/blog/100 lists all the blog entries for user 100.

Toward this end,

1) I want to know if you can list all the posts of a particular user for a particular flexinode content type.
2)You can list all the posts of a particular user for a particular taxonomy term.

Thanks in advance! :)

bump :)

noid - September 24, 2005 - 07:56

bump :)

hoping somebody out there

noid - September 24, 2005 - 15:52

hoping somebody out there has an answer. :)

Well, I asked more or less

venkat-rk - September 24, 2005 - 16:18

Well, I asked more or less the same question ages ago, but there was no response. For some reason, questions related to certain aspects of flexinode use always elicit fewer answers(:-

Flexinode by it's very

sepeck - September 24, 2005 - 18:41

Flexinode by it's very nature tends towards non-common uses. Therefore less people would know the answer.

Note: I do not know either.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

I found the user related content module

noid - September 25, 2005 - 02:19

I found the user related content module a few days ago, and perhaps that could be an alternative solution. However it still has a few minor issues. Posted them at http://drupal.org/node/32087 to alert the developer. Also, the developer, ejort, may offer ways to tackle this problem since the module produces a similar output.

Well, this is out-of-the-box

venkat-rk - September 25, 2005 - 09:31

Well, this is out-of-the-box thinking, certainly. It never struck me to try this module as a possible solution. Thanks for the pointer.

You're welcome.

noid - September 25, 2005 - 12:23

You're welcome. Hope ejork sees our posts soon. Actually emailed him already. Although I think we can already use the module if we wanted to. :)

User_related isn't the answer

sethcohn - September 25, 2005 - 13:38

It's meant to allow people to make connections, not list authors of items.

User_related allows you to add 1-5 or more people to any given node as 'connected to it' (you define the relationship), and others can sign up or drop off.

Not really the right direction. See my other post for a much better answer.

unfortunately for this question that's right

ejort - December 14, 2005 - 22:24

user_related_content won't really work too well to solve this problem unfortunately, sethcohn summed it up pretty well. Well, it is possible, but that would involved writing a module to use it's api (so users don't have to type names in themselves when they author a post, the module could do that automatically), but that wouldn't be the 'correct' solution to this problem

I'm not familiar with anything that will do this 'out of the box' though, sorry. It's possible to do it with a php block however, using code which would be almost identical to book.module's block code, altering it to look for your content type instead of 'book'.

Thanks for replying, ejort.

noid - December 15, 2005 - 03:39

Thanks for replying, ejort. Actually, already created the flexilist module for this problem. See my post below -- http://drupal.org/node/32059#comment-63021. :)

You want to use 'node-type' or trip_search

sethcohn - September 25, 2005 - 13:46

For filtering most things by node type... use node_type

You just add "&type=story,blog" (for instance) to your urls.
Works all over, including feeds, lists, searchs and more.

For instance:
yourdrupal.org/tracker/6&type=flexinode-1

Would give you a tracker listing of all flexinode-1 posts by user #6

For filtering by a variety of mixed ways into a list, SQL_search formerly trip_search will do it, and if you want to provide pre-selected searches, you can use urls like:

yourdrupal.org/trip_search?keys=uid:6+types:flexinode-1+tids:23

Would give you similar results as the tracker, but limited to only those with taxonomy #23

P.S. path aliases would make that nice and clean.

Thanks!

noid - September 25, 2005 - 16:56

Wow. Thanks, Seth. Tried node type filter before and found it buggy in 4.6 -- doesn't display the blocks.

On the other hand trip search is very powerful. Why didn't I see it before? For now, trip search would definitely do. Although would still like a one click solution for my users -- guess have to learn to code some time. :)

Re user related content, I think it is still an option, albeit a bit unwieldy, but I think it can work, e.g., you don't let users have access to relationships -- thus in posting content for example, you as administrator might create a relationship called "users who posted this content" and the poster enters his username only. Of course, you have to rely on the user to enter his username. And then, he cannot add other entries (posted by others) to this list since he doesn't have access to relationships. One of the good things about this module is that it lists the user's entries in the teaser format. (Please correct me if there are any mistakes in my example; tried it myself though). :)

But for now, trip search would definitely do. :)

The flaw

sethcohn - September 25, 2005 - 18:22

"Of course, you have to rely on the user to enter his username"

And not some else's info. Bleh. This is like using a screwdriver for a hammer. It's the wrong tool for the job. We already know the author, and you want to ask the author to manually add his/her name again, just so you can list who the author is? Double bleh.

Looking for same sort of thing.

stevryn - October 7, 2005 - 17:21

I want to use the flexinode tabular view, but modify it to have a dropdown that would limit results by particular user.

I tried to paste the code from flexinode here but drupal wouldnt let me.

I think having that option would be good for any node types tabular view. Now all we need is someone who knows how to do it...to help us out!

Has anyone gotten anywhere with this?

stevryn - October 14, 2005 - 18:59

I tried the "userposts" module in cvs rep, but got nowhere.

Check this out

stevryn - October 17, 2005 - 17:15

http://drupal.org/node/23230

I changed "blog" to my flexinode (ie. flexinode-11). This might give you a start.

The solution -- Flexilist module :)

noid - October 23, 2005 - 18:30

Hi guys,

Decided to take matters into my own hands. :) Presenting my first module, Flexilist -- download at http://drupal.org/node/34993 -- feedback and mentorship greatly appreciated. :)

Hope this helps! :)

 
 

Drupal is a registered trademark of Dries Buytaert.