drupal

Two types of products using ubercart..?

Hi, I am working on a website which sells books and journals. My problem is the books will be sold our directly where as in the case of journals case the journals, they can be subscribed for the whole year / per issue or per chapter also. Can i have both of them as products using ubercart in the same site? Thanks & Regards, Satya. ...

Drupal 6: pre-defined variable for amount [count] of custom type items...

Hi friends, I'm a drupal newbie... I researched but couldnot find :/ is there any predefined variable that gives my CCK field value count? for example; I have field_logo_sponsor and I need to display all logo items. Now I have 5 item <?php print $node->field_logo_sponsor[0]['view'] ?> <?php print $node->field_logo_sponsor[1]['view']...

Versions of Drupal content

Hello, I'm working at a company that uses Drupal 6 to host documentation for it's SAAS products. The documentation is organized in various books using Book.module. We have a Production Drupal site with the documentation for the production SAAS product. Secondly, we have a "Preview" site, for the upcoming version of our product - the d...

Making block visible when view-based OG homepage showing

I have a view (with only a default display) that is displayed perfectly as the home page for all organic groups. When a specific group is selected and that view is then displayed, I want a block to appear - but I can't seem to find either the URL or PHP-returning-true to use to turn its visibility on. I've even tried the Context module w...

Drupal, Lightbox: lightvideo adds "content/" at the beginning of Drupal paths..

hi, I'm using lightvideo in lightbox2 to load my own video player. I've just realized that lightbox is adding "content/" at the beginning of the video player path causing a "file not found" error. In the drupal settings the correct path is set, so I'm wondering how to fix this and how to remove the initial "content/" path. Update. In...

Drupal: Programmatically saving imagefield images

Hey there! I'm trying to write a sync function that saves some data to nodes, which works fine, until I try to save the thumbnail image associated with the node. I've managed to download the file and put it in my sites/default/files folder, but what's the best way to tell Drupal, "put this file in that CCK imagefield"? EDIT To clarify...

Drupal 6: assigning custom View to dynamically generated "category filtered" blog listing...

Hi friends, I'm a drupal newbie... love it so far :) I created a view (page) for my blog listing with View Module. I have a specific output like particular place of image, title, etc... Everything is working great with that... Then I created a Category Filtering block (with View Module) for sidebar. it works fine. I click on any cat...

Drupal return number of results in a View

I have a view in Drupal that filters my content. It brings back 7 rows. All I want to return is the number or results returned(7). Is this possible? I tried using the View result counter but it returns a number for each results 1 2 3 4 5 6 7 I just need the 7 part. So in SQL I would do a select count(*) ...

Updating Drupal module

Hello, every time i make significant changes to a Drupal module (i.e. new items in menu hook or changes to theme hook) i must go to admin/build/modules and click save again othewise i cannot access the modifications i made. Do you know if there is a better way to do that? Thanks ! Ciao c. ...

Proper way to over-ride Drupal core and module css styles

I'm a Drupal newbie plus I don't have much experience updating code, styles, and scripts in an open-source project. I've inherited a site running Drupal 5.16. In Drupal, I have created a page that is not published. The main content node has a node-unpublished class which is defined in /modules/node/node.css. This class has styling that ...

How do I set up filters in a Drupal view that apply across two different content types?

I have two different content types being loaded into a view. News, and reviews. Each of the content types has a drop-down box to select what category they fall into. ie. a review could be for a dvd, music, etc. and news could be music, cinema, etc. I want to the view to display some categories of news, and some categories of reviews,...

Drupal - Creating alphabetical pager using views

Hi, Thanks guys. This forum is really helpful. Now I have another question for you. I want to create a alphabetical pager for a view, so that when someone clicks on "A", they will see submissions whose title is starting with alphabet A. I have successfully created alpha pager by following http://tedserbinski.com/tags/drupal/creating-al...

simple tutorial for creating restaurant views with Views and CCK

I wonder if there are simple tutorials out there teaching you how to create a restaurant page with Views and CCK. I cant understand when people just say: use CCK and Views. Maybe there is an easy-to-follow-tutorial somewhere on this topic? thanks ...

popular python open source cms like drupal?

i wonder if there is open source cms coded in python that is as big as drupal (joomla or wordpress)? thanks ...

How to display the rss version of a News Link

I'm trying to write a script that will show the rss version of a single url (title, author, image, source, etc..). This should behave much the way that facebook does when you copy paste a link to share and it generates this information automatically. I'm trying to do this with a php script but would also be open to opensource programs th...

Drupal 6 CCK node form redirect issue

Hi, I am having trouble with a multi-step node form for a CCK content type. I set $form_state['redirect'] to a thank you page path, but it does not get redirected upon successful submission. Here is the code following documentation on the Drupal 5.x to 6.x form API at http://drupal.org/node/144132 function rnf_form_alter(&$form, &$form...

Drupal: how to disable edit tabs on the front-end ?

hi, when I login as user to my drupal website I can see the tabs in the front-end to edit the content. I would like to disable these tabs (end edit the content from the back-end only). How can I do it? If I'm not wrong, I remember there was a back-end setting for it. thanks ...

Drupal: How to get views argument into header/footer/empty view

I found this code snippet: <?php $view = views_get_current_view(); $arg0 = $view->args[0]; ?> but i don't know where to begin inserting this php code snippet. ...

How can I handle parameterized queries in Drupal?

We have a client who is currently using Lotus Notes/Domino as their content management system and web server. For many reasons, we are recommending they sunset their Notes/Domino implementation and transition onto a more modern platform--such as Drupal. The client has several web applications which would be a natural fit for Drupal. How...

Expose DB2 data as XML / Query DB2via XML

I have a client who has a sort of data warehouse stored in DB2. For a variety of reasons, the data must remain on this platform. The client is considering implementing an open-source CMS (Drupal) which runs in MySQL. The client needs to be able to execute a bunch of pre-defined queries against the DB2 database from the remote applicatio...