All Questions

Filter by
Sorted by
Tagged with
3
votes
4answers
11k views

Embed Google Map

When I generate the map and paste it on the site, it shows me only the "View Larger Map" link. How can I embed Google Map into my Drupal 7 site?
1
vote
2answers
2k views

Redirect node type to a view

I have created a view that lists all the nodes of a certain type. If you go to view the node on it's own page I would like it to forward to my view. I tried doing this using rules but as I display the ...
3
votes
1answer
2k views

How to track popular categories (taxonomy terms)

On a website, we want to be able to produce a list the most popular categories (taxonomy terms). We don't want to rank terms by term page views but rank terms by content page views. When a user views ...
0
votes
1answer
4k views

How to Remove read more link from front page [duplicate]

Possible Duplicate: Remove links 'read more' and 'Add new comment ' on the home I user zen theme and i tried this question answer Remove the 'read more' and 'Add new ...
0
votes
2answers
2k views

Notification email on Content creation - admin approval?

I made a custom content type to replace comments, as the current comment options are not satisfactory for me. Anonymous users can create this content type (comment). I need to send an email to the ...
8
votes
2answers
8k views

Exposed Post date filter on views

When you expose a filter date on views you get something similar to the following: When you expose the post date you get: The former is a lot more useful. Is there a way you can get the post date to ...
2
votes
3answers
465 views

Forbid the publication

I created a new role for the user to write. How do I forbid the publication to a redactor?
2
votes
1answer
101 views

How can we divide the price if the customer select certain attributes?

I am working on a magazine site where the magazine can be subscribed. When users subscribe, we want to allow them to choose between full payment and monthly payment. I have used a "payment_type" ...
1
vote
1answer
319 views

How do I avoid hard coding the links in a custom made navigation bar?

I'm creating a custom navigation bar in drupal. I went ahead about this by creating it as a block and gave it all the neceassary CSS, but something that is not quit clear to me is how can I avoid the ...
3
votes
1answer
1k views

Huge CCK field export/import

I am having troubles exporting and importing a large numbers of CCK fields using Content copy (I need to have a file download/upload option). Is there a SQL (or drush) command that can export and ...
3
votes
1answer
120 views

Show activities on users' posted content

I would like to provide a view, and something like a newsletter, where the users can see what actions (e.g. commented) are done on their posted content. I thought I could do this with Activity, but I ...
3
votes
1answer
289 views

How to make each header in a table clickable and add a chart to it?

I have used the Views module to display an external database (which is working fine), but I want to make each header clickable and add a chart. Is there a module to do this, or is there a way I can ...
3
votes
2answers
6k views

Load custom template from MENU_CALLBACK

Here's my current situation: I have an external authentication platform that loads in Drupal via an iframe. When the user is authenticated, the external application redirects the user to a Drupal ...
5
votes
2answers
3k views

Allow only certain user type to create account

I have to add new role, for users than can create accounts for others. I create new role and add create profile content permission. But when I am anonymous link 'clear new account' still appear and ...
1
vote
2answers
10k views

Private File System and User Access

Is there a way to protect Drupal files from being accessible by the file path (putting http://www.domain.com/files/image.jpg) in the browser URL from users poking around?
1
vote
2answers
291 views

Manual Ubercart Views Taxonomy Order (D6)

Client wants the parent taxonomy view page to be ordered in a manual arrangement just based on his belief of which products are most popular (this isn't a field in the database; nor do we have this ...
0
votes
1answer
286 views

Views Row style Node heading between different dates

I need a view that display full nodes. So I have set my row style to Node. SO I have. Node 1 Node 2 Node 3 What I want is 11/05/2010 Node 1 10/05/2010 Node 2 Node 3 I want to place a heading ...
2
votes
1answer
3k views

Embedded images not shown in Google Chrome

I just realized that my embedded images, from an external source, aren't shown up in Google Chrome, but they are working fine in Safari and Firefox. I cannot even click the link I generated with the ...
0
votes
2answers
151 views

CCK Nodereference individual imagefields

Is there a way to use a nodereference field on each individual image in a node? The images are CCK imagefields.
1
vote
1answer
234 views

Anonymous user edited data as draft/revision in drupal 6

I have a problem(may be only for me). My requirement is anonymous user or registered user if they like to make a modification in a node they should be permitted but the modifications made by them ...
0
votes
2answers
3k views

Tax rate on shipping price

Drupal commerce shipping module. I want to set a tax rate on a shipping price so that the shipping price with its tax component is integrated in the subtotal of the line items. Guess it has to be done ...
37
votes
3answers
44k views

how to send variable from .php file to .js file?

I hope someone is able to help me. The problem is the following one: 1)I have module in which a assign the variable in order to send to the template file php.tpl <?php ... $testvar="Hello from ...
5
votes
3answers
8k views

How to hide/remove a specific menu heading tittle

I have created a menu using Superfish containing the following items: "Menu 1," "Menu 2," "Menu 3," and "Contact." When I click on each menu, the heading title is displayed. I want to hide the ...
2
votes
0answers
156 views

Metadata per item in a nodequeue

An item in a nodequeue is a reference to a nid. In some cases you want to add some metadata to this queue item, for example an alternative title or description that is better suited in a specific ...
8
votes
1answer
13k views

filter with taxonomy-term-alias instead of term-ID?

I've my view filtered by taxonomy term ID. http://aelasoca.cat/web/ (in the main menu I've links to taxonomy ID's 3 to 8). How can I filter with the taxonomy term alias instead of it's ID ?? (not ...
4
votes
3answers
6k views

Nodes with comments in View

I want to create a view that returns all nodes of type X. Beneath each node I want to return the comments for that node as well. Node 1 Comment 1 Comment 2 Comment 3 Node 2 Comment 1 Node 3 ...
0
votes
1answer
756 views

Using tokens under exposed views filter

I have created a view with an exposed filter. In my display I have an Using tokens section that I do not want to display: Using the theme developer this is the closest I can get to it: So it seems ...
8
votes
3answers
7k views

How to hide the View tab in user page?

In the user page (www.example.com/user), there are [View | Edit] tabs. Is it possible to hide the View tab and leave Edit tab there?
1
vote
1answer
754 views

Copying Drupal to a webhosting service

What is the correct procedure to copy (transfer) a whole Drupal web with database to a web-hosting service? What are the problems that could occur? I'd like to change only the website name from ...
1
vote
1answer
2k views

Do not cache custom block

I have a custom block created in code. I do not want to cache the block. I know I need to use BLOCK_NO_CACHE but I am not sure where to use it. function mymod_block($op = 'list', $delta = 0) { // ...
4
votes
2answers
4k views

Which library is better for image processing, GD2 or ImageMagick?

Is ImageMagick is supported by Drupal 7? If the answer is positive, which is better for image processing, between GD2 and ImageMagick? Are any other alternatives for Drupal 7?
3
votes
1answer
292 views

Set location country based on coordinates

Is there a way to have Location pick the appropriate country based on the latitude/longitude entered when the node is saved?
2
votes
1answer
645 views

Displaying node fields in a view

I have a content type called Snippet. Snippet will have one image field and unlimited text fields. I want to output fields in Views as: image field (image.png) text field (Text1) text field (Text2) ...
3
votes
1answer
7k views

Best way for including javascript/jQuery OnLoad in EVERY page on my site

Currently, in my theme.info file I am including 2 scripts: scripts[] = js/backstretch.js scripts[] = js/scripts.js Backstretch is a jQuery plugin that allows for an expanding background image to ...
2
votes
1answer
740 views

Programatically upload/link images and attatch to Ubercart's product node?

One of the things my Ubercart module needs to be able to do is programatically upload or link (this being preferred as it means I don't have to mirror it) an image and attach to Ubercart's product ...
0
votes
1answer
1k views

Invalid argument supplied for foreach() error in a custom view

I wanted to display a table vertically and I found some code to do so, but I'm getting the following error: warning: Invalid argument supplied for foreach() in site/modules/views/theme/views-view-...
3
votes
1answer
2k views

First AJAX request is working very well, next takes too much time

I'm working on ajaxing my site, for a long time now. I found a method that's working for me, but only the first AJAX request is working the right way; the next request takes at least twice the time. ...
2
votes
1answer
3k views

How do I display a “Thank You” message after submitting a Webform 3.x form?

I recently upgraded a Drupal 5 site to Drupal 6. This upgrade also entailed upgrading the Webform module from version 2 to version 3. I have a very simple webform setup that asks for a name and ...
2
votes
1answer
761 views

Storing additional data with a node reference

What is the best way to store additional data in a Drupal 6 site pertaining to CCK node reference fields? Suppose that a content type has a repeating node reference. I would like to be able to ...
9
votes
4answers
9k views

Add JavaScript into a specific content type

I would like to know what is the best way to add a JavaScript file into a specific page basing on the content type. For example, I want to add this: <script type='text/javascript' src='http://maps....
3
votes
1answer
299 views

Duplicate nodes returned from a module's SQL query

I'm in a spot of bother customizing the calendar block module for my needs. I've written a custom module that queries my database for published nodes that possess a specific taxonomy term. This works ...
6
votes
2answers
4k views

Should the plain text filter convert line breaks into p and div elements?

I have a plain text field in a content type. When I hit return between paragraphs the line breaks are there and show inside of firebug when I inspect the code. However, the body on the view page doesn'...
4
votes
2answers
220 views

Are there cases where a third-party module would need to use its own file similar to xmlrp.php, cron.php, or authenticate.php?

Drupal 7 comes with some files (authorize.php, cron.php, update.php, xmlrpc.php) that bootstrap Drupal, and execute specific tasks. Are there any cases where a module would need a similar file to ...
1
vote
2answers
506 views

Using a PHP class defined in the module file inside the implementation of hook_install()

If the implementation of hook_install() of my module needs to use a class defined in the module file, should the code first load the module file with drupal_load()? I would think that when the hook ...
2
votes
1answer
469 views

What are the benefits of Views 3?

I am exploring a reason to upgrade from Views 2x to 3x. What major benefits Views 3x provides? Are there any major API changes?
2
votes
1answer
987 views

Check HTTP Status

Is there a way to see what the HTTP status code is for a given page in Drupal? For example, if I land on an access denied or page not found, can I see that in a status code and use it? I am using ...
15
votes
1answer
2k views

View commerce product image and price fields

In Drupal 7 commerce I ran into a problem. I want to display the latest 3 items placed in the show_product content type, with attributes from the store. There are several entities in the store, ...
7
votes
8answers
12k views

Disable read more link

I tried to remove "read more" link from the "basic page" content type. In Structure -> Content types -> Basic page -> manage display I checked "full content" and unchecked everything else and ...
1
vote
0answers
157 views

CCK field in Workflow tab

I would like to add a user reference field to the Workflow tab. Currently we have a user reference CCK field but it is only editable in the Node edit form. Really it would make much more sense to be ...
2
votes
1answer
624 views

Updating a field value in database via submit handler doesn't update the user profile in UI

I've created the field "Attending" that is attached to the user profile. I have created a form with one checkbox element; when submitted, I've confirmed that the attending_fielddatabase is being ...

15 30 50 per page