All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
6k views

How should I name the node template files for my theme?

I'm a bit confused about how to name my template files. It's the first time I started to mess with templates in drupal 7 and somehow I don't get it. I want a template file that changes the behavior ...
mantuko's user avatar
  • 83
2 votes
2 answers
529 views

Is it possible to make hook_view() the same as hook_edit()?

My current client does not like the separation between viewing their custom content types and having to travel to a different page to edit. They are pushing for the View page and the Edit page to be ...
Blake Senftner's user avatar
2 votes
1 answer
142 views

Putting a form into a menu

I've started learning Drupal (I'm starting with Drupal 7) and the best way to do that seemed to me to be in creating a custom theme from scratch. I'm trying to create a menu in which the login form ...
Robert D.'s user avatar
4 votes
2 answers
1k views

Features Hook after successfull import

I wrote a feature module that contains content types and test nodes. After importing those nodes, a certain cache has to be rebuild. Both hooks I know (hook_install() and hook_enable()) are called ...
jantimon's user avatar
  • 370
3 votes
2 answers
2k views

Can you do anything about the div soup?

All the sites I have seen that build on drupal looks like it's hit by div soup. There are so many unused divs produced by the content and some templates I have looked on contribute more by adding even ...
grm's user avatar
  • 355
4 votes
5 answers
1k views

path_to_theme() return "modules/system"

I am trying to render the theme logo as a block. When I call path_to_theme() in page.tpl.php, it returns a true path, but when I call it in modulename.module, it returns "modules/system".
Mohammad Ali Akbari's user avatar
0 votes
2 answers
394 views

Can Rules create a node reference that is empty except for a title?

Is it possible to automatically create a reference node or entity with Rules? The idea is to have a node with information and an image Gallery reference. If the image gallery is clicked on the node ...
Adam S's user avatar
  • 5,031
3 votes
1 answer
503 views

How to make complex taxonomy searches

How do I make complex taxonomy searches? Simplifying my drupal database to the following example (number in quotes are the taxonomy numbers assigned by drupal): Nodes = Blogs, Stories, Questions, ...
dreadstar's user avatar
12 votes
8 answers
15k views

How to theme the views exposed form?

I've created a view with a number of exposed filters, but it is pretty ugly looking. I'd like to improve the theming, including wrapping the whole thing in a fieldset as well as grouping some of the ...
HorusKol's user avatar
  • 207
2 votes
2 answers
4k views

Using AJAX in Drupal 7 to change a form action

I would like to update the Drupal save_edit module to add an auto-save feature. This would look similar to the Stack Exchange auto-save (draft saved). So far I've gotten the save portion working (...
user645's user avatar
  • 21
2 votes
2 answers
314 views

Best approach for [back][next] form submitting

I've been doing a [back][next] to [finish] set of forms for user input fields, think of it like a questionnaire for user info where the user can still go back to the previous pages to update their ...
user1125's user avatar
5 votes
3 answers
4k views

Feeds creates duplicate content each time cron runs

I have created a custom feed importer but each time it runs it creates the same content again. How can I make it only create the content once?
Lucy's user avatar
  • 1,502
4 votes
2 answers
5k views

Is there an alternative Drupal 7 module for the Advertisement module?

We are looking to upgrade a site to from Drupal 6 to Drupal 7 that uses the Advertisement module. There is an alternative module to the Advertisement module for D7?
Justin's user avatar
  • 3,703
3 votes
4 answers
3k views

Set the permission to view taxonomy term pages basing on the vocabulary

I'd like to completely disable taxonomy term pages based on the vocabulary. I want to use the taxonomy terms to organize nodes, and even let people use them, but users should not view the normal ...
doublejosh's user avatar
  • 1,441
1 vote
2 answers
574 views

Is it possible to create a menu item and leverage path aliases?

I am trying to create a menu item that loads a view mode that calls the callback function with the path alias. $items['node/%/%'] = array( 'page callback' => '_node_view_load', 'page arguments'...
Jepedo's user avatar
  • 1,450
1 vote
2 answers
602 views

Show all terms of a vocaboulary

I have this function that I used in a similar situation (Drupal show all terms of different vocabulary) that prints the terms of a node with a corresponding parent (if applicable). In my template.php ...
Matteo's user avatar
  • 11
5 votes
2 answers
2k views

Fatal error undefined function taxonomy_get_tree()

I want to write a module that makes a select search form based on taxonomy terms. (with hierarchical select boxes) This is on drupal 7.0 and status is up to date. The form is made and Ajax is properly ...
JurgenR's user avatar
  • 2,183
2 votes
2 answers
178 views

Configuring Drupal 6.20 to display a different icon in a specific region on a specific group of pages

I've added a block called 'Course Information', configured the block to display on a particular group of pages (courses/full-time/*). This works fine, but I don't know to configure Drupal to display a ...
unpossible's user avatar
2 votes
4 answers
2k views

Is there a tool to covert any template to drupal 7 theme?

Is There any tool to convert any template (wordpress, joomla, static html/css etc) to a drupal theme
jone's user avatar
  • 631
4 votes
4 answers
2k views

Default sort order on the other table columns

I render a table with theme_table() and use tablesorting (sql) for that. It all works fine. Except for the intial/default sort on the other tables. No user sort option defined yet. Example: Name | ...
berkes's user avatar
  • 3,100
1 vote
1 answer
564 views

Pathauto, user profile alias from content profile fields

I created the alias bartender/profili/[content-profile-profile-profile_name-raw]-[content-profile-profile-profile_surname-raw] for users. I want to have '-' between name and surname but it always ...
user1077's user avatar
  • 173
3 votes
1 answer
1k views

Table locking again, am I doing it correct?

I had a problem with table locking, solved in this question: Table 'watchdog' was not locked with LOCK TABLES on custom module I want to share my current code, because I'm still not sure if ...
user1077's user avatar
  • 173
2 votes
2 answers
938 views

New link added in user page but not visible to non admin user in Drupal 7

I added this module in Drupal 7 for adding new tab in my site. This new tab is not visible to non admin user. Only visible to admin. I also tried to set permission in this direction admin> People> ...
silbhadra's user avatar
1 vote
1 answer
862 views

How to use Taxonomy Facets together with Apache Solr Multisite Search ?

This regards http://drupal.org/project/apachesolr_multisitesearch I'm trying to enable Multisite Search Facets (based on Taxonomies) for a few sites. The 'normal' multisite facets such as 'filter by ...
atomicjeep's user avatar
3 votes
1 answer
289 views

What does typical beginning mark in *.tpl.php files mean?

I'm looking into template files for theming purposes, and often at the beginning of the file there is a // $Id$ mark. Could you explain me what it mean, and what the purpose of it is?
xralf's user avatar
  • 879
1 vote
1 answer
282 views

How to display mini panes in specific pages of my site

I need to display mini panels only in selected pages. Where and how should I mention it? For Example: In blog listing pages i need to display the panels in right side. And in it's full view page I ...
Fero's user avatar
  • 1,547
0 votes
2 answers
1k views

How can I set a placeholder variable in page.tpl.php from a page callback?

I have a value in page.tpl.php that I would like to set in page callbacks, independently from the main content. In page.tpl.php: <?php print $placeholder ?> <?php print render($page['...
meriial's user avatar
  • 193
3 votes
4 answers
4k views

Creating a store open hours widget using Field API

I need an open hours widget that outputs something like: Mon 8:00am to 5:00pm Tue 8:00am to 5:00pm Wen 8:00am to 5:00pm Thu 8:00am to 5:00pm Fri 8:00am to 5:00pm Sat 11:00am to 3:pm Sun Closed I ...
Adam S's user avatar
  • 5,031
1 vote
1 answer
1k views

Cron job run, but module updates not checked - how to automate?

I configured a script to run as part of my cron.daily tasks, and tested the script. My status report says that the cron was correctly run by the script, so I'm happy that that will happen. However, ...
HorusKol's user avatar
  • 207
1 vote
2 answers
615 views

Quick filter tabs on top of content listing page

I've downloaded and installed the Content Management Filter, but I think that the interface is a bit ugly still with all the drop downs, and it doesn't actually achieve what I had hoped. Basically, I'...
HorusKol's user avatar
  • 207
2 votes
0 answers
3k views

Custom Layout in panels width

I am working with a fluid 100% theme with Panels 6.x-3.9. I have created a custom layout in Panels; it is based on threecol_25_50_25_stacked (First column is 25%, center is 50%, and last is 25%), and ...
picxelplay's user avatar
2 votes
1 answer
1k views

Printing the correct date value in a view

I have a content type with a Date CCK field that prints the correct date/time specified in nodes (using the correct timezone, format, etc.). I also created a view that uses this date field, but the ...
Joe's user avatar
  • 61
0 votes
1 answer
177 views

I created a new content element: how do I print it out?

I created a new content element for the page content type. How would I print out the content of that text area in page.tpl.php?
Jordash's user avatar
  • 201
1 vote
1 answer
1k views

Why is my cron not running as intended?

crontab -e displays */5 * * * * /persistent/sitename/scripts/cron-curl.sh ~ ~ ~ "/tmp/crontab.XXXX1FOZWa" 1L, 51C Why is it not running every 5 minutes?
Manoj Ranaweera's user avatar
2 votes
2 answers
628 views

Custom module menu item declaration leads to error 404

function eventi_menu() { $items = array(); $items['eventi/book/%/'] = array( 'title' => 'Book', 'page callback' => 'eventi_book', 'access arguments' => array('allow booking'), ...
user1077's user avatar
  • 173
21 votes
5 answers
40k views

Hide a field label

Is there a way to hide the field label when rendering a custom field in Drupal 7? In my node template I have: <?php print render($content['field_image']); ?> Which gives me: <div class="...
Ben's user avatar
  • 313
5 votes
2 answers
2k views

What's the best way to spell-check a complete Drupal site?

I'd like to spell-check a complete site (some 300 pages) and my plan is this: Spell-check complete site to collect all misspellings from all pages Make a spelling dictionary to be shared by all ...
Vladimir Alexiev's user avatar
1 vote
1 answer
427 views

Way to integrate a latex-based wiki into a drupal 6 site

I have a website with users already designed in Drupal 6. We would like to add an area/module that would allow registered users of a certain type/category to be able to collectively edit/contribute to ...
user avatar
2 votes
1 answer
935 views

Comment theming question

In Drupal 7, when theming the comments in my website (comment.tpl.php), I want to print the comment title without a permalink wrapped around as a link. I want the raw title. This should be simple, it ...
Marcos Buarque's user avatar
3 votes
1 answer
1k views

What is the best way to upload a PDF attachment, that can be attached to multiple nodes?

I want multiple nodes to all have a download link on each node to one, shared PDF file. What is the best way to upload the PDF file one time, but add it as an attachment to each of the multiple ...
Mike Munroe's user avatar
2 votes
1 answer
297 views

Change control using CVS

We're looking to manage our install of Drupal 7 with CVS (sadly Git and SVN are out). Do you have any pointer for things to think about when setting up the repositories? Our lay of the land is as ...
KM.'s user avatar
  • 759
3 votes
1 answer
1k views

Taxonomy & Views

How can I take a "Content Type" with a "Taxonomy Term" field... and use views to generate a list of content with that term via URL? I have a content type that has the basics (Title, Body) as well as ...
WernerCD's user avatar
  • 784
1 vote
1 answer
92 views

Ordering archive block

I've upgraded an installation from Drupal 5 to Drupal 6, and now I can't get the archive to be displayed in the right order. I've set the sort criteria of the block to be descending and in the preview ...
ruipacheco's user avatar
2 votes
3 answers
2k views

Table 'watchdog' was not locked with LOCK TABLES on custom module

I am creating module that need to lock table: db_query('LOCK TABLES {eventi_list} READ'); $is_booked = _is_booked($uid, $nid); if (! $is_booked) { $is_booked = _is_booked($uid, $nid, '...
user1077's user avatar
  • 173
3 votes
1 answer
2k views

Dropdown menu expanded on page load

I have a hierarchical dropdown menu created using Drupal Megamenu module. It works good for my needs, but there is a small issue: when the page loads the whole menu tree looks expanded, and covers the ...
Sivaji's user avatar
  • 2,478
6 votes
2 answers
1k views

Getting per-module memory stats?

I'm hosting Drupal on Dreamhost shared hosting where I have a maximum of 90 MB RAM and a lot of enabled modules. Is there a way to see how much memory each module is using?
aendra's user avatar
  • 1,755
5 votes
2 answers
3k views

External site authentication [closed]

I apologize if this has been asked many times before, but I'm wondering if anyone has a link to a good tutorial on implementing a working remote authentication system in Drupal 7. I'm new to Drupal. ...
Toby Allen's user avatar
1 vote
3 answers
3k views

Moving data from a Drupal 6 site to a new Drupal 7 site

This is not an drupal 6 to 7 upgrade question, at least not in the way it's conventionally asked or done. I have an ill pressflow 6.17 site with loads of not necessary modules, configurations, etc, ...
Dipen's user avatar
  • 1,993
3 votes
1 answer
1k views

Adding a CCK field with Rules

I'm trying to use Rules to populate a CCK field - a user reference when they flag a node. It basically works, but if there's already a user reference it overwrites it instead of adding another. That'...
JGrubb's user avatar
  • 377
24 votes
8 answers
17k views

Where do I find the vocabulary ID ($vid)?

In Drupal 6 I would go to the taxonomy section of my /admin and I'd be able to find the $vid (numerical) in the URL. In Drupal 7 (no doubt due to the introduction of terms as entities) the URL is no ...
electblake's user avatar
  • 2,057

15 30 50 per page