Unassigned terms don't show up... Can we enable an option to display them?

livingegg - September 3, 2008 - 22:03
Project:Suggested Terms
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi there. This module rocks, thanks for building and maintaining it. It took me a bit of digging around to figure out why most of my terms were not showing up though... it seems that terms which have not yet been assigned to any nodes do not show up. Did you do this on purpose? If so, it would be nice to have it explicitly stated somewhere, because I have seen several issues submitted for this module about terms not showing up that may have been due to this very reason, but its not pointed out on the project page, or anywhere I could find.

Better yet, how difficult would it be to enable an option that allows me to show the terms that havn't been used yet? Maybe a checkbox in the admin settings for the module? Cheers.

#1

RSTaylor - March 8, 2009 - 00:02

I had the same problem. When creating a new site, I define a number of 'suggested' terms for each freetagging vocabulary. I want them to be displayed as suggestions to help the user, while the user of course has the option to create their own terms.

With this module, as it currently exists, my existing suggested terms are _not_ displayed (because no nodes use them yet). So the only thing that the user sees is funny bungee jumping. Not what I had in mind when I created a list of suggested terms.

Attached is my solution (for version 6.x). I've just changed the SQL to LEFT JOIN rather than INNER JOIN. I don't know if that's the right solution or not, but it does make my initial seeding terms show up as links and work as expected.

AttachmentSize
suggestedterms-303697-1.patch 1.47 KB

#2

Crell - March 17, 2009 - 18:29
Version:5.x-1.2» 6.x-1.x-dev

New features are not being accepted against the 5.x branch, only the 6.x branch. Can you confirm this still works against 6.x-dev?

#3

RTH - April 17, 2009 - 01:55

Hi Crell,

I have tested that patch alongside my own (http://drupal.org/node/433974) for adding a scroll bar to long term lists, and it works correctly in Drupal 6.

IMHO, what RSTaylor's patch does is the correct way to do it. One creates the term list based on logical criteria, and one then wants to write articles using it. Unless unused terms show up, the prior work is pointless.

Thanks,
Ron.

#4

RTH - April 17, 2009 - 07:17

I have been doing some more work on this issue and I have what I think should please everyone: a configuration option to let the user select whether to see all terms or only previously assigned terms. As I have been working on my other issue http://drupal.org/node/433974 at the same time, and as the two patches concern the same bits of code, the two patch files (but not the two sets of modifications!) are incompatible, so I include three variants of this patch file: one that applies only this patch (I call it the whichterms patch) to the standard distribution, one that applies this patch to a directory that has already been given my other (scrollbar) patch, and one that applies them both together in a single patch to the standard distribution. All are made against suggestedterms-6.x-1.2.tar.gz. With both patches applied, the module is extremely flexible.

Cheers, Ron

AttachmentSize
suggestedterms-whichterms.patch 4.02 KB
suggestedterms-whichterms-after-scrollbar.patch 4.25 KB
suggestedterms-whichterms-plus-scrollbar.patch 6.11 KB

#5

Crell - May 20, 2009 - 17:18
Status:active» needs review

#6

ebrand - May 20, 2009 - 19:44

Thanks for submitting the patch! Here's an update to whichterms.patch. It was overall very good. I just added some syntax changes to your patch and to the module in general.

AttachmentSize
suggestedterms-allterms.patch 7.17 KB

#7

ebrand - May 20, 2009 - 20:15

Here is a patch that includes both my previous patch and the scroll bar patch

AttachmentSize
suggestedterms-allterms_plusscroll.patch 9.28 KB

#8

ebrand - May 20, 2009 - 22:35

Here's a newly updated patch to go with the recently updated patch.

AttachmentSize
suggestedterms-all_scroll.patch 5.95 KB

#9

Crell - May 21, 2009 - 16:29

Let's keep these issues separate. The all-terms patch can continue here, but the scrollbar patch really needs to stay separate in #433974: Add a scrolling box for longer lists of suggestions

#10

ebrand - May 21, 2009 - 18:23
Assigned to:Anonymous» ebrand

Here is the patch for showing all of the terms.

AttachmentSize
suggestedterms-all.patch 5.5 KB

#11

Crell - May 21, 2009 - 18:46
Assigned to:ebrand» Anonymous
Status:needs review» fixed

Committed a slightly modified version of #10. Thanks all!

#12

System Message - June 4, 2009 - 18:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.