drupal-6


Viewing articles that are associated with taxonomy term A (AND) term B in Drupal 6


Summary:
I'm currently working on customizing Drupal-6 as a news portal.
In summary, I'm trying to view posts that belong to term 5 AND term 1.
The drupal documentation mentions that this can be achieved through the below taxonomy URL by separating the term ids with a comma (,):
http://drupal-server/taxonomy/term/5,1
(See. Using Vocabularies for Navigation: http://drupal.org/node/22273)
The above is not working as expected and is showing content with "term 5 OR term 1" instead of "term 5 AND term 1".
Any ideas on how to fix this?
Problem Details:
I have defined two vocabularies:
"Content" vocabulary which has the terms:
a. Events
b. News
c. Lectures
"Academy" vocabulary:
a. University A
b. University B
c. University C
Every time an article is posted, it is assigned a term indicating which university does it relate to, and whether it is an Event, News or Lecture.
I'm trying to display the posts that are of type "Lecture" AND "University A".
According to the Drupal documentation, this can be achieved using the URL:
/taxonomy/term/5,1
Assuming "University A" got assigned the term ID 5 and the "Lecture" got assigned term id 1. The documentation mentions that the comma separator (,) works as an AND operator and thus displaying only posts that relate to term 5 'and' term 1.
Unfortunately, this is not working as expected, it is showing me the posts that relate to term 5 OR posts that relate to term 1.
Is this a Drupal bug? Any ideas on how to force an AND? I've even tried replacing the comma with the "+" operator but with no luck (ie. /taxonomy/term/5+1).
Okay, I've got an answer for this:
First of all, this is a bug that already exists in Drupal with the Views Module installed as you can see from this link:
ht tp://drupal.org/node/348360
So, you have to choices to fix this problem:
Either disable the taxonomy_term view that is by default enabled in the views module.
From the administration go to Administer --> Site Building --> Views then scroll down till you find the taxonomy_term view and click on the Disable Link next to it.
Or create a view with arguments. See the following link for information on how to do that:
http://gotdrupal.com/videos/drupal-views-arguments

Related Links

drupal database backup [closed]
Drupal url alias and views and clear urls for taxonomy issues
Drupal 6: How do you print Taxonomy Terms as a CSS Body Class?
Drupal cck checkbox with global setting
How to update Customer Information messages in Drupal :: Ubercart
Hide username and date in Drupal page
How to add custom blocks in drupal?
Imagefield Crop – use existing file [closed]
Mix and match of products in Ubercart
A link for previous page in current page
how to insert multiple values in a single text field using autocomplete function in Drupal
drupal views facebook like button
Pre fill the password field
Why don't the Flag links show up in a view for anyone except the super admin user
How to get support emails to thead properly with Drupal's Support Ticketing System module
hook_user(): inserting extra field into database not just form

Categories

HOME
arduino-uno
debugging
netbeans
sd-card
rsyslog
rsync
jira
cross-browser
blueprintjs
mvvmcross
pivotal-cloud-foundry
azure-media-services
django-imagekit
append
contact
add
synchronization
elasticsearch-hadoop
kibana-4
facebook-php-sdk
adobe-analytics
modelica
commonmark
quickfix
invantive-sql
firefox-webextensions
telerik-reporting
claims-based-identity
microsoft-sync-framework
poltergeist
dbclient
bpel
google-sites-2016
commit
force-layout
ios5
vapor
preconditions
fault
atomicity
snmptrapd
epson
imanage
dynamics-sl
time-and-attendance
httplistener
azure-virtual-network
clang-static-analyzer
pagerank
ipconfig
rhino-servicebus
revolution-r
appfabric-cache
vstest.console.exe
sortedlist
kineticjs
c3
file-copying
applescript-objc
googlemock
article
dml
funcunit
marmalade
rtmfp
stxxl
jsctypes
aqtime
dexterity
tidy
runtime.exec
seed
sqlperformance
spring-validator
trusted
runas
automount
armcc
errai
spyware
f#-powerpack
xmemcached
zend-translate
coda-slider
3gp

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App