All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
576 views

Issue a Conditional Redirect in Drupal 7

I have a custom payment form that redirects to a 'Thank You' page on success. The page is just a Page type node, so someone can control the content of the page. What I wanted to do was add a little ...
0
votes
1answer
167 views

Matching values between two different fields, each of which have multiple values

I have a content type with an imagefield and a link field. Each of those fields accepts four values; so the user uploads four images and types four URLs in each node. I want to use Views to create a ...
3
votes
3answers
175 views

How to prevent a field with thousands of files from loading on Edit operation?

I have a process running that renders a PDF to PNGs and attaches those PNGs to a file field. There is one PDF's results per node, but there we have a bunch of PDFs with 10,000+ pages. We've found ...
2
votes
1answer
1k views

Views contextual filters for NULL value

How do I use a contextual filter to find all nodes with field_abc that has a null value?
0
votes
1answer
379 views

Problem with Drupal 6 built in “normal” caching - users getting data several days old on front page

I have a site running Drupal 6. I was having performance problems so I turned on Drupal's built in "normal" level of caching performance -- which claims to not have any side effects. Since I enabled ...
0
votes
1answer
135 views

Receive link from row in views-template file

I changed a views-template and wanted to link all elements together. Is there a different way as getting the link via regular expressions?
1
vote
1answer
2k views

How can I check if a node references a Drupal Commerce product?

Is there a short function in Drupal Commerce API that returns TRUE (or something else) if a given node references a product?
2
votes
1answer
154 views

template for a view?

I created a view which is viewable at http://mysite.com/branch-locator. The view is being displayed by my page.tpl.php. How do I override this and use a new template file called branchlocator.tpl....
2
votes
2answers
1k views

Copy view mode custom settings

On /admin/structure/types/manage/article/display I can enable custom display settings for various view modes. But what if I want one custom view mode to be almost identical to another? Is there a way ...
1
vote
1answer
2k views

How to add classes to image fields set to Unlimited and a “rel” attribute to the <a> tag that wraps them

I have an image field set to Unlimited and I have some questions on how to display them: How do I display only the first image while all the rest are hidden (has class="hide")? Add a rel="something" ...
1
vote
1answer
328 views

How can I create an excerpt for each of a node's taxonomy terms?

Rather than create a single node excerpt/ preview used across all Views for a taxonomy term, how can I create individual excerpts for a selection of taxonomy terms used to describe a node? For ...
3
votes
1answer
1k views

Some files are deleted from the files table after CRON execution

I am using hook_form_alter() to add a file upload field to the taxonomy term form. The form itself and the submit are working well. From the submit callback i save the uploaded file using ...
4
votes
1answer
2k views

Avoid admin users editing other admin users

I'm in a Drupal 7 installation, trying to find a way to avoid admin-users to edit other admin-user's account. I've created a role for 'content administrators' and this users tasks involve user ...
3
votes
1answer
671 views

How to use JQM theme and jQueryMobile plugin with Drupal?

I'm developing a mobile web site with Drupal 7 and i want to use jQuery mobile. I've found many plugins, but just one available with drupal 7 (jQuery Mobile module). I have also a jQuery mobile theme (...
0
votes
1answer
590 views

List of CCK fields under a group field

For a section of our site, we need to show fields, even if they are empty. A helpful suggestion has been to edit content-field.tpl.php and remove the following part. <?php if (!$field_empty) : ?&...
0
votes
3answers
65 views

views on top of other views

I have a content type called News. There are three taxonomy terms for this content type (In the News, Success Stories, Events) I want a page that shows each taxonomy term, with the newest three nodes ...
1
vote
1answer
713 views

Hiding body in teaser display

For CCK fields you can set the display to be hidden for teaser display and shown when in full node display. How can I do the same for a node's body field as it's not listed on the display settings ...
2
votes
0answers
176 views

No Link to OG Group Home in Group Details Block

Hello this is a problem thats always perplexed me. I once got around it by using Custom Breadcrumbs and having a link to the group home page there but since then ive had to remove custom breadcrumbs ...
0
votes
1answer
226 views

How can translations 'inherit' CCK values of the node in the default language

I've got a CCK content type called 'projects' with about 10 fields, including an ImageField that allows for multiple images. There are two languages defined for the site: English (the default), and ...
2
votes
3answers
2k views

make the sidebars and the “content” region the same length as each-other?

I have a website that has regions that are uneven. the sidebar first is a different length than the content, and the content is a different length that sidebar second. it looks something like this: I ...
2
votes
2answers
717 views

View list of teasers wrapped in <li> instead of <div>

How can I view my teasers in <li> instead of in the default <div>? I find that changing the <div> to <li> in node.tpl.php doesn't work since <li> needs to be wrapped in a ...
3
votes
3answers
519 views

Force nodes created by Feeds module to be published even if nodes are unpublished by default

How can I do this? Force nodes created by Feeds module to be published even if regular nodes are unpublished by default.
2
votes
3answers
875 views

The Batch API won't continue running if the browser is closed correct? Can a batch be run with Drush?

Can the batch API continue to run once the browser closes? If not then can I run a batch with Drush? I have an insane amount of data to migrate and I don't really have time to wait for it to import ...
4
votes
1answer
642 views

tpl.php files in subfolders

I am creating a big Drupal theme with lots of node types and lots of custom templates. Each having a very diffent look and feel. This is something I can not get round because the design was signed off ...
0
votes
1answer
2k views

How do I automatically change the background image of body?

How do I automatically change the background image of body, when I click on a menu link? I want to obtain the same effect shown in the Drupal Design Camp Boston 2011 site.
0
votes
2answers
3k views

Building Custom Drupal Form

I am trying to display a custom form with Drupal 7. Here is what I am trying: function mymodule_menu() { $items = array(); $items['pay-online'] = array( 'title' => 'Pay Online', '...
1
vote
1answer
1k views

Show specific gmap in block based on node id

I am trying to show a gmap for a specific location, using the content: mapping coordinates for gmap in a view in drupal 7. The map itself shows fine in content for the page view, but if i clone it to ...
2
votes
1answer
2k views

Use variable from template.php in block

I have a custom table in the Drupal DB, which I need to retrive and use on a few places on the site I'm creating. And I don't like to run soo much PHP in blocks, so I thought that I could get the ...
3
votes
1answer
173 views

How to “filter” out one specific user in a view?

I’ve a question regarding some of my blocks which I’ve made in views (using Drupal 6 and Views 2). One of the users on the site is the sites “manager” and so this user of cause writes a lot of posts, ...
2
votes
1answer
914 views

How do I add a child to an HTML Tag render element?

I need to reproduce this with render elements: <div id="parent"> <div class="child"></div> <div class="child"></div> </div> Can't figure this one out!
3
votes
2answers
397 views

Which drupal hook to implement to react on module installation?

I have module A installed that defines some custom hooks. Module A wants to be notified when another module B is installed, so that it can inspect and see if module B implements its hooks (for ...
0
votes
1answer
50 views

Given a node object how can I detect if it's first term (or term in a chosen vocabulary) contains a taxonomy image?

Using php code and a node object, how can I detect whether or not the node's first term (or term in a chosen vocabulary) has a taxonomy image? Any help appreciated.
6
votes
2answers
4k views

Restrict taxonomy terms when users edit content?

I've implemented my site's structure by creating a taxonomy for "areas" and making a term for each area I want in my site (guest info, newbie, facilities, news, and admin). I've let the main menu show ...
0
votes
2answers
710 views

Linking slideshow thumbnail to slideshow views content

I have a view containing pictures from a content type "Slideshow". When I click the Slideshow title in a view containing the slideshows, it takes me to the slides from that slideshow. However, I want ...
0
votes
0answers
165 views

Search Programmatically

i need to implement my own search method in order to find nodes with some keywords in their title or body and with a specific type but i don't know how to do this. I tried with do_search and ...
0
votes
1answer
178 views

Drag function in Blocks is Gone

In one of my Drupal installations I suddenly noticed I can no longer drag and sort the order of my blocks. The image shows on the left the admin with now drag handles and a screenshot of another admin ...
1
vote
3answers
750 views

Javascript assumed conflict with Drupal

I have a website, where I have been trying to build a form with server side and client side validitations of the input fields. More or less I have been achieving progress. Then I put my code from my ...
6
votes
1answer
214 views

Synchronize two drag-able tables

I have two tables on a page that the row positions need synchronized when a row is drug. One table is the master table and is the only place that the actual dragging can take place. Basically, what ...
3
votes
2answers
456 views

Drupal Views for 2 Title Styles

Mock: Site: http://www.mastersfunds.com.php5-23.dfw1-2.websitetestlink.com/funds-and-performance/equity-fund Brief: The mock has the title with 2 font styles. The first part is in blue text and the ...
1
vote
2answers
3k views

db_fetch_array() fetches only one row from data table, even though I am expecting multiple results

I'm trying to create an array with all the group node' IDs, and from outside group context. I currently have two group nodes defined, and I can see them in my OG table. However I only get back one ...
1
vote
1answer
36 views

Is there anything wrong w giving a node a status other than 0 or 1?

Is there anything wrong w giving a node a status other than 0 or 1? I want to have several different statuses for a content type im working with.
2
votes
4answers
182 views

Perfomance problem when posting

Sometimes when I submit a new post (story node) or update one, it take 10-15 minutes for the page to finish loading. I figured it was some problem with the database so I did a SHOW FULL PROCESSLIST ...
0
votes
2answers
714 views

Hiding submenu items of a page in Drupal 6

Is there a way, in Drupal 6, to automatically hide all submenu pages? For example, suppose I have the following menu structure: Sport football cricket Is there a way I can enforce "football" and "...
4
votes
1answer
423 views

Replace the drop-down in Views with an image map

I am looking for a way to replace one of the exposed filters used in the Views module with an Image Map (e.g. a map of the country). Is there a way for doing this?
1
vote
1answer
2k views

Drush missing the “provision” and “Hostmaster” commands

One of our boxes is missing these Aegir-Drush commands (from drush help): All commands in provision: (provision) backend-parse Parse the output of --backend commands to a human readable form ...
2
votes
0answers
262 views

How to change the search results URL? [duplicate]

Possible Duplicate: How can I change the apache solr search URL in Drupal? Is it possible to change the search result URL from /search/node/searchphrase to /search/searchphrase? I'm using core ...
2
votes
1answer
634 views

Do page arguments in hook_menu get sanitized?

The title pretty much says it all. If a callback is defined in a hook_menu, such as function mymodule_menu () { $items = array(); $items["mymodule/foo/%"] = array( "page callback" =...
2
votes
1answer
395 views

Upgrading to Drupal 7.7 produces a fatal error: What can I do?

I have upgraded my local site to Drupal 7.7 from Drupal 7.4, following the instructions in How to upgrade Drupal 7 to Drupal 7.2. Before I could use update.php, visiting my site got me this message ...
1
vote
0answers
300 views

Group multiple times by day (multi-value date field)

So I have a date field that allows multiple values. In this particular case, I have something like: [0] = Monday, 4pm [1] = Monday, 6pm [2] = Tuesday, 10am [3] = Wednesday, 11am [4] = Wednesday, 3pm ...
2
votes
2answers
3k views

How can I display a user avatar in Drupal 7?

I'd like to know how to display a user avatar in Drupal 7. I want to display the avatar in full size, and as thumbnail.

15 30 50 per page