drupal-views

How to display image into each recent post in drupal front page

I am very new to drupal. As I have seen many of drupal free theme can show image in the recent post on the first page of drupal (i.e. --http://yfrog.com/13drupalj) I tried searching some ways to do but seem my keyword search was mismatched so I would be greatly appreciated if anyone can help !!! Many Thanks ! ...

Drupal View Output

First let me start by saying that Im trying to find the best practices in themeing views and it has been torture, its seems theres a million ways to do anything in Drupal and none better than the other... but heres the issue. Im developing a site. Each "area" of the site will have its own content type. Each content type will have its ow...

Adding items on top of others with ajax, in view (or block)

Hello fellow drupalers, I have a question about ajax loaded views. Lets say i have 15 items, and i have the pager to show 5. Now i want to have a button that says show "more". when the button is pressed i want the view to load an additional 5 items in the view. So if i have lets say animals. cat,dog,panda,snake,worm,zebra,lion if the pa...

Drupal Views Content Profile User as an argument

I have a normal Drupal User. I have used the content_profile module to create a profile content type. This content type contains a node reference to another content type company. The company node then references a type of node called Task. I want to create a view that list all the tasks for a given user id. So I imagine I would create a...

Globally filter the whole site by tag

Hello! I am looking for an easy way to allow visitors of our Drupal 6-based website to filter all displayed obejcts globally by a tag from a given taxonomy ("featured topics"). This way a user could eg. select the tag "marketing" from a drop-down-list, which is located somewhere near the navigation, and the system would filter all pages...

Programmatically handling a view in Drupal

I'm using custom module to handle this view. I did many try nothing works and also sorting too. Only arguments code works charm. Guide me to right way / help me with solutions. and here is the exported view link http://pastebin.com/YzzzLEbW function custom_module(){ views_include("view"); $view = new view(); ...

Drupal views + CCK. Not sure how to get the view to display the way I'd like.

I'm using a custom theme. I have a custom content type with two fields. title thumbnail (created using imagecache). Note, in the example below, URL 1 and Title 1 are the two fields for the first row in the result set. I would like it to output something like so: <span> <img src="URL1" /> <span>Title 1</span> </span> <span> <...

Drupal Views Automatic Filter

I was just wondering if there was a super quick way to automatically add a filtering system into Drupal views. I.e. I just need to add in the top of my view search by name (text box) and search by category (drop down box) Or do I just manually create this form then use the filter agruments within the edit view screen? ...

Add Duration field to sort criteria programatically?

Can someone please tell me how to add duration(CCK field) to sort criteria of views programmatically because it is not listed there by default? ...

Weird problem with hook_view drupal

I'm having a weird problem with hook_view. The problem is, hook_view isn't invoked unless hook_load returns invalid value such as empty variable. I don't know what causes this to happen and I'm at my wit's end. I'm very much appreciate your help. For what is worth, I have image attach module installed. Drupal 6.x UPDATE function mymo...

drupal view theming order by taxonomy term

I have a view who gets all the nodes from a certain type and shows them on a page. Every node is categorized by a taxonomy term. I created a custom .tpl file to theme the view using row style. But what i really would like to do is order all the nodes under a category. example: **category 1** node 1 node 7 node 15 **category 2** node...

Drupal Views Relationships and Arguments

I have a Person content type. It has a node reference field of a company which is also a content type. I then have a content type called Project. A project has a node reference to a company content type. I want to list all the projects related to a person id (nid) If I abstract this away from views and Drupal and each content type had i...

Drupal url alias and views and clear urls for taxonomy issues

Hi, I am using views module. I have created blocks using views and a url using page display. This is for taxonomy. So my views url looks like this "news/science" So if someone click on the link he should be taken to www.example.com/news/science. However i am taken to a unstyled page with broken links. But when i try to use the url www.e...

How to display multiple content types in categories with Drupal 6 and Views 2

I just started learning Drupal and I'm having a heck of a time displaying multiple content types on one page, but grouping them by content type. To be specific, I want to display "Current Programs", "Old Programs" (which are the same content type, Program, but have a Boolean "current" field thanks to the CCK plugin), and "Tools" (conten...

Drupal 6.15 clean urls donot work for all.

HI all, I had posted a query here. http://stackoverflow.com/questions/3719456/drupal-url-alias-and-views-and-clear-urls-for-taxonomy-issues But i think i need to be more specific. The issue is that after upgrading drupal from version 5.1 to version 6.15 and enabling clean urls, most of the urls work however some URLS such as admin logi...

Setting a drupal view to a random page number

Hey! I have views 2 installed and I have created a view that is displayed in the front page. The view displays some page links ( 1 | 2 | 3 | 4 | ... etc). I want to know if it's possible to make the view start at a random page instead of always starting at page 1. Note: I don't want to randomize the display I really just want to rando...

Drupal: Create menu item for a view

Hi, I am creating a small reservation system. you can create nodes of a type that can be reservated, like a projector. I have a calendar view with normal displays. I addes an argument for the node reference, but I have problems defining the page callback. Can someone help me out? Now I want to create menu items for the different nodes ...

Drupal Views: How can I log searches ?

Hi ! Is there a module that allows me to log all the searches made on a view ? Thanks ! ...

How do I hide Drupal nodes that shouldn't be directly accessed from users and search engines

I have seen many somewhat similar questions, but nothing quite what I'm looking for. So at the risk of being told this is a duplicate... here it goes. I've found that there are times I have a node that simply contains content that will be displayed somewhere else, but shouldn't be viewed directly. That is, no one should ever go to node/...

Drupal: CCK/Views problem

Hi, The problem is the next: I have a recipe with images, and I have a video with node reference to the recipe (so I can hav a one to many). (see here) When there is a video, it should not show an image, when there is no video, it should show the image. I created a block for displaysuite, and attached the video to it.(see here), in 2...