By bcc on
I'm looking for a way to display a specific content type in a specific taxonomy term, but cant figure out how.
I've read the views tutorials, but cant get php code to work on my page. Is there a simple piece of HTML I can use that will simply query the DB and spit out everything that is a certain content type?
please help!
:)
Comments
=-=
HTML can't query the DB ever.
you need a custom DB querry written or use the views.module to build your view.
Get the advanced help.module, if you've not already installed it. There is a great deal of documentation there and google will uncover many video casts with regards to views tutorials.
I've enabled php filter and enabled it on the content type...
I've enabled php filter and enabled it on the content type... but PHP snippets for embedding views still doesnt work. It just shows up on the page as text
=-=
please further explain what you are trying to do?
views don't need to be added to a content type, you can create a page display directly in views.
example...
Thanks for your help VM :)
Basically I want to put some links/buttons on a node that will fetch content types from TID's...
So that onclick it would render a page with content_type(policy) + taxonomy_term(1,4,28,316)
I think I understand how to create a view and embed it, but it simply isnt rendering for me when I use this code in the node body:
ps. that code above is an example, I havent used the actual viewname in this instance
Just following along this is
Just following along this is something I have not done but if I understand correctly I am interested. Are you trying to create a custom query/view per node?
I guess that is a good way of
I guess that is a good way of describing it :)
node/1 = display content type 'page' ~ TID#1
node/2 = display content type 'page' ~ TID#2
node/3 = display content type 'page' ~ TID#3
node/4 = display content type 'image' ~ TID#1
node/5 = display content type 'image' ~ TID#2
node/6 = display content type 'image' ~ TID#3
etc etc
I just want a way for displaying all nodes in a TID which are the same content type
Wait all you want to do is
Wait all you want to do is display say every node from the content type page with a tid of 1?
tommy I think we're getting
tommy I think we're getting off track now. I've already explained what I need and I dont want to confuse VMU with clarifications for something you are looking for.
as mentioned, I want to be able to query and fetch particular content types from certain taxonomy terms. THAT'S ALL :)