drupal-views

How does one make a Custom user profile on a per role basis ?

How would you get about assigning a custom profile to a particular role in Drupal 6? For example if the user belongs to a role "TEAM1" and we want them to have a different profile than the rest of the users, how would you get about doing that? The profile must have basic information they can edit however it should also have some fixed fi...

remove a logic operator(unlocked) of a exposed filter

I have a view where I am exposing a filter which is the Price of a product. I want the user to be able to choose the price(filter based on price), So I exposed the filter, then unlocked the operator and all of them are unlocked(operators). Is there a way where I can unlock only a few operators such as "Is less than", "In Between", "Is Gr...

Users are able to access old profile along with new one?

I have used Content Profile Module to make a content type of profile. I have then gone to my User management menu -> Permissions menu and given access to the "testuser" role to be able to create the new content type profile. Now when the user with the role logs on and clicks on "My profile" that has a path of sitename/user/username, he/s...

Using Image module to create an Image Gallery and view them using lightbox

The new version of the Image module has some components, one of them being image_gallery.module which creates some views and taxonomy for you to use. Now I want that when the user clicks on an image uploaded into a gallery, it is displayed using lightbox. This was easily done when creating a content-type and setting the view to lightbo...

How can I use cck fields on a Location type View?

Hi ! I have a view of type LOCATION. My problem is that when I try to add a cck field the type "content" is not available on the type dropdown. I also tried to add a relationship but the content is not there also. Any ideas ? ...

What is the best way to add a content/view to a node

I am developing a module to display video. I have created a view so-called navigation for the user to select a video from a list. Now I want o add this navigation to every node with type = 'video'. I don't know whether I should create a template for it ( then I have to put the template file in theme folder which is not so good ) or use ...

Views broken when username contains special characters

Hi, I've created a couple views showing e.g. the latest news and events. However, when the username contains "special characters" (but still common in Finland), for example 'ä' or 'ö', the view shows the empty text instead of the real data. For example my events view has two fields (node title and time of the event) and three filters (...

View to list all nodes

In my drupal installation I have created two type of nodes. Free access (non - registered users) Only member access (registered users) I used a content access module to set permissions. Now I have created a list of these nodes using views, the problem is that when free user sees that list, they are not shown the list of nodes access...

show node title to unregistered users

I'm using content access module to restrict certain nodes and node types for un-registered users. But I would like to create a view where unregistered users can also see titles of those restricted nodes. How can I do this ? ...

Drupal view nodes created by username specified in url

I am trying to use views to make pages that will show posts by users according to their username in the url. Basically, the following url should display all posts by someuser: http://drupalsite/posts/someuser I have been trying for a few hours now but I can't find a solution. Can anybody point me in the right direction? ...

Drupal strategy related question

Hi, i've a Drupal theory/strategy related question. First i want to say that i'm very new to the drupalling world, so this question can be quiet stupid. I'm trying to develop/make a part of a site that has the following structure: (level one) virtual_exhibitions: shows an overview of exhibition categories. (level two) themes, places, p...

How can I work out this view?

List -> l_user I have a List node that has a user-reference field (l_user). Story -> s-user I then have Story nodes that also have a user-reference field (s_user). There is no direct connection between List and Story. I want to add a view to List that lists all the stories that reference the same user that list references. Basically ...

Can't work a view, how to bypass it and code it in php instead

I'm new to drupal, and having a tough time getting a view to work (see this question). Since I can't figure out how to do this with Views, and since getting this done in code is usually a piece of code, is there a way I could bypass the Views UI interface entirely and set the view with normal MySQL code? ...

Is it OK to use regular HTML forms as part of .inc files in a Drupal 6.x custom module ?

I inherited a project that seems to have a ton of custom modules. A lot of the modules have includes folders with include files that have regular HTML forms. I know that Drupal preaches using FAPI. My question is that in your experience are there any pitfalls with this approach or is this acceptable use? Thank you ...

Do Views Attachments require changing the Drupal templates

I've created a drupal views Attachment display that lists a bunch of nodes. How would I add this to a content type? I've seen examples that require changing the template files, but can views Attachments be used without making changes to the theming layer? ...

Views title is blank

Hi, I'm using the Drupal views module to create an overview of nodes. In the view i created i configured the Title. But now when the page is rendered the title isn't shown. It is shown in the breadcrumb etc. But not in the grid template, also if i use another template it still doesn't show. Any idea what this can be? I tried looking for ...

Getting a view's ID from its name

I'm trying to get the id of a view by supplying its name. Right now I have to insert the view into a node, then inspect it with dsm to see its ID, which I then hardcode where I need it. That's not a good workflow. If at least I could get the view's ID without inserting it somewhere first and inspecting it with dsm, that would be better. ...

Views Bulk Operations & Draggable Views

I am in a situation where I need my end user to be able to organise a list of nodes using drag and drop. To do this I would normally be able to use Draggable Views. I also need the user to be able to bulk update the nodes returned. Normally I would use Views Bulk Operation. Is there anyway I can use both modules together? Would I need to...

Individual User 'top 5' lists

Hello, I am aiming to produce a individual top 5 list for each user of my drupal site. now trying to work this one out has become quite difficult and hence why i am here. what im looking for is a top 5 list which allows the user to select nodes to be ranked by the user. so at anytime the user can edit the list and re-order the list. ...

How to setup drupal for content relationship?

Using Drupal 6.x I have created two content types: Person and Event. Event has a custom field called Attendees (of type: Node Reference; unlimited number of values to person). When viewing a specific person how does one show all their events? I have created a view (Personal Events) and added a block display. I enabled the block to sh...