drupal

Change an element's text without affecting sibling tags (jQuery)

I'm trying to modify this bit of HTML with jQuery to delete the duplicate arrow: <div class="breadcrumb"> <a href="/spa/">Home</a> » » <a href="/spa/image/tid">Image galleries</a> </div> I'm not having much luck, however, in that replacing the string using the replace() function seems to strip the HTML tags as well, leaving: <div cl...

Programmatically creating forms - default selected index of a select

Hi, Part of a form I've created in Drupal 6 is: $form['limiter'] = array( '#type' => 'select', '#id' => 'limiter', '#options' => array('10'=>'10','25'=>'25','50'=>'50') ); Which works fine. However how do I define the default selected index so '25' is selected when the page loads? Anything I pass to ...

To use or not to use the user module

We are currently transitioning our website to Drupal 6.x from a non Drupal source. One of the first issues we need to deal with is that of authentication. We have a central database where we keep member information. We will create a module to authenticate against this database however a question of whether or not to create users in the d...

Drupal6: Removing template files

I have been using a custom template file called user-profile.tpl.php for a while. But wanted to explore the CCK Content Profile abilities. I renamed the template file to something arbitrary, but instead of drupal defaulting to using the standard profile view it is complaining that it can't find the user-profile.tpl.php file. So either ...

Drupal: Associating grouping more than one CCK field.

I have an article content type with a node reference CCK field that links to other articles (related articles) . I need to add a text field for each node reference that allows an admin to specify "why it's related". How do I go about this in D6? Articles can be related with other articles so it makes sense to have the "why it's relat...

How to associate node with products in Drupal/Ubercart

I am looking for a way to allow users to add node reference to each product or whole cart @ checkout. I am making web site where users can buy items and then receive them on board flight. Products are fixed, but user needs to tell for which flight he is buying items. Flights are nodes and users has flagged these nodes so there is no prob...

Drupal base URL and root relative paths.

I changed my Drupal base url in settings.php to " h*tp://www.example.com/subfolder " but root relative paths are still pointing to " h*tp://www.example.com " and not to the correct "subfolder". Any idea what I'm doing wrong? I flushed cache re-edited a couple links to make sure but they're still pointing to the root domain and not to th...

Dropdown Menus In Drupal?

Hi, I have my Drupal site here so far: selkirk.treethink.net Each Primary Link at the top has a bunch of other primary links under it (sub links) I need to display these sub links when you hover over the parent primary link in a dropdown menu. Everything is in the primary links but there are parents (what you see at the top of the dem...

drupal: getting nodeautoterm node ids from taxonomy ids

I'm using drupal's NAT module and need to get the nid from the term id. Here's what I tried: foreach ( (array)nat_get_nids($termid) as $natid ) { $NatName = $natid->name; } print $natid; This does not work. Node auto term's get nid function is like this: function nat_get_nids($tids, $get_nodes = FALSE) { static $nid_cache = N...

drupal what if we have designed a content type with existing fields

i have small problem.... i have one content type say cars with various fields, say more than 30 , user can create the content types... now i would like to show only few fields in different phases,is there any possibility to do that. more explantaion:- user may enter the car model and car details in the first page and upload images in sec...

Drupal RSS feed links

I'm creating some feeds of news items and such. These items have URL aliases set for them. Is there a reason why the URL alias do not get used in the RSS feed? I have a multi-language site which uses the path aliases to show correct navigation, and so when I get a 'node' link from the feed, it breaks everything. EDIT I'm creating the ...

drupal 6 can we write a php file in drupal which changes the headers

i have written a small code which creates a word document but i got the following errors require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); global $user; $fp = fopen("test.doc", 'w+'); $str = "<B>This is the text for the word file created through php programming</B><br>test to create a doc file from ph...

Configure Drupal to force login for specific hostname (www. vs manage.) or protocol (HTTP vs HTTPS)

I have a Drupal site that is available at two different hostnames, one of which is only served using SSL. For example, http:// www.example.com is for viewing content and https:// manage.example.com is used by content contributors. I would like to configure Drupal to not show content through the https:// manage.example.com address unles...

Drupal: using a view on a Page/Panel, prevent default listing of content

I have a panel/page that has a view (it's a view page) that some fields and filters that allows user for search for content of a certain content type. The problem is that views by default displays all of the content (even if the user hasn't performed a search yet). So how do I setup the view so that it doesn't display results by default...

Only show a view on a certain content type in Drupal

Hi, i have build an "About the Author" views block in Drupal. This is linked at the user_id of the creater of the current node, which works great. However, i now would like to know how to limit the view to certain content types. I do not want it to show on a story, only on blogs. I tried to do it with Arguments but i haven't had any lu...

drupal edit attachment field of a node

i have a content type named Properties, users can create the content types i have file cck field in the content type(properties) now i want to add the attachments to the or edit the attachments field only in a block or panel for the particular property, not showing all the fields when user try to edit the content type. i have heard th...

Give a user rights to a specific node in Drupal

I'd like the user "student" to be assigned to a content type "Projectgroup". I can do this by adding a user reference to the Projectgroup content type form. Example: Projectgroup = Beta testers Students (user referenced) = Kim, Joel, John. When Kim logs in, she should only be able to post as "Beta testers". How can i make sure when ...

How do you create a dropdown menu to sort calendar events in drupal calendar module?

How do you create a dropdown menu to sort calendar events in drupal calendar module? I know many people are struggling with this same issue. Can anyone help??? Thanks in advance! ...

Integrating Drupal with OpenERP.

Hi, We have a requirement that we need to integrate OpenERP with Drupal. I investigated but could not find any Drupal addon/module which will do the desired job. I also investigated and found that OpenERP is based on client server architecture, where Server exposes XMl-RPC/SOAP based webservices and client uses these services for all ...

drupal 6 passing arguments to panels then to contexts

how to pass arguments to panels then to contexts in drupal, when we add the context node edit in panels 3 it shows a autocomplete field where i have to enter the NID is there is any way where this node ID can get from arguments, so that editing of the content is made more dynamic.... thanks and regards.... ...