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

how to add a sum field in a view?
How can Block direct access to drupal 6 site
how to clear varnish cache for a drupal view?
Drupal 6- 404 is not showing for menu item URL pattern implemented using hook_menu
hook the function in module in drupal
Conditional Field is not working with content_multigroup, cck , drupal
In drupal Primary Link is like empty
Programmatically creating nodes with audiofield in Drupal 6
Drupal: How do I pass profile tokens to user profile page?
CKeditor stopped working after drush up (6.22 -> 6.25)
Change markup field tekst during validation
FCK Editor's FileBrowser doesn't work anymore [closed]
Detecting whether a user has created his node profile
Creating and using services in drupal6
Setting a page variable in a function
Captcha image doesnot change dynamically in drupal 6,if admin is not logged in

Categories

HOME
hive
wso2
netsuite
keras
openstack
mediawiki
deezer
q
amortized-analysis
rubygems
dxl
baqend
acquia
opengl-es-2.0
esper
gitpitch
elasticsearch-hadoop
vifm
u-sql
php-7.1
quickfix
systemc
graphlab
firefox-webextensions
karma-jasmine
emulator
predix
opencover
jndi
blazemeter
h2db
cas
linkerd
maxmind
fluentvalidation
compatibility
jspm
google-cloud-nl
srcset
preg-match
semantic-versioning
google-qpx-express-api
repo
mozilla
android-nestedscrollview
http-referer
atl
fusionpbx
jmonkeyengine
x11-forwarding
neuroscience
streamsets
avro4s
quadratic-programming
elmah
glew
modelmapper
galleria
smartcontracts
azure-application-gateway
filepicker
apache-fop
jedis
mplayer
pg-dump
font-size
pdfclown
sonarlint-vs
time-and-attendance
medium.com
merge-conflict-resolution
markojs
hill-climbing
dlna
photobucket
maven-tomcat-plugin
execute
cartesian-product
android-listview
php-ci
event-bubbling
mmc
id3v2
google-reader
android-radiobutton
typeof
htmlcleaner
mechanize-ruby
braille
html5-notifications
oam
quartz-graphics
flash-builder4.5
cassini-dev
delphi-6
specification-pattern
gil
quickdialog
first-responder
bubble-chart
spring-portlet-mvc
hgsubversion
imac
mirah
castle-monorail
compiler-specific
microsoft-virtualization
avatar
data-acquisition

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App