I was hoping to use this module to create a list of all nodes (like the current tracker), but with tabs to filter the list by content type. Filtering by taxonomy could be useful if your category structure is designed around it, but content type would be even better (and simpler).

CommentFileSizeAuthor
#4 xtracker.module6.82 KBkbahey
#3 xtracker.module.patch4.02 KBixis.dylan

Comments

kbahey’s picture

Content type is often too artificial and not related to real life things. For example, what is the difference between 'page' and 'story' these days? Basically, nothing, apart from the possibility of setting different publishing options for each. What is a 'book'? It is really a hierarchy module.

Taxonomy on the other hand is user defined, and hence relate to real life objects.

In any case, I am willing to go with this if it does not break other functionality and is an option.

So, submit a patch if you wish.

ixis.dylan’s picture

I'll work on a patch for content type. It would be useful for me, anyway, as listing taxonomies in the tabs doesn't create any kind of usable interface. If I'd put all of my site content into one top-level category I could probably have chosen that taxonomy to populate the tabs and produce the "forum/blog/articles/etc" layout that I was hoping for.

Maybe I should just change the layout of my taxonomies AGAIN. Hoho..

ixis.dylan’s picture

Status: Active » Needs work
StatusFileSize
new4.02 KB

Here's a patch that tabs by content type if you don't choose a taxonomy in the settings page. Consider it a proof of concept rather than a working module, but you can see it in action at http://www.demolicious.org/xtracker

There's a few more changes in here, including some updates I had to make to get the module working with CVS (from about a month ago).

kbahey’s picture

StatusFileSize
new6.82 KB

Dylan

Here is a modified version that merges a fix from another issue with your change.

Can you please test it and see if all works well?

If it is, then I will commit this.

ixis.dylan’s picture

Sure, I'll test it later. It looks like you've merged in the /user fix? I did the same with my version, and it worked okay.

ixis.dylan’s picture

Assigned: Unassigned » ixis.dylan
Status: Needs work » Reviewed & tested by the community

Yeah, looks good here!

kbahey’s picture

Status: Reviewed & tested by the community » Fixed

Commited. Thanks Dylan.

inspiredbylife’s picture

Looks like the patch doesn't work well with 4.6.0... do I have to update to 4.6.3?

This is the error I get:

Fatal error: Call to undefined function: node_get_name() in /home/wwwsur2/public_html/modules/xtracker/xtracker.module on line 207

Help!!!

kbahey’s picture

I checked the latest 4.6 download, and it should work with 4.6.3.

Anonymous’s picture

Status: Fixed » Closed (fixed)