All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
273 views

How to make the custom module effect on the node and only one content type?

The following code is used to output five images, according to what's number contained in $fen. I want to put the button in nodes of a specific content type (e.g. "company"). Which code should I use ...
2
votes
3answers
338 views

Automatically fill the default vocabulary term associated with a content type when editing a node

What I'm trying to do is to automatically select the default term in the "add content" page based on the user's location in the site. Example: User is currently viewing classifieds listed under "Los ...
1
vote
1answer
816 views

Tiered HTML lists using Views and Taxonomy?

I would like Views to output an HTML unordered list of a certain vocabulary (Taxonomy Term). This is not a problem... the problem is that the list is rendered flat, instead of showing the parent>...
1
vote
1answer
75 views

Is there any implication/consideration for using the boost module on many different websites running on the same VPS?

Is there any implication/consideration for using the boost module on many different websites running on the same VPS?
3
votes
1answer
379 views

Pressflow caching directives

I have a setup with Varnish. Varnish decides when to clear the cache for a page according to the PHP headers. I want to force Varnish to regenerate the cache for each node every time it gets updated ...
5
votes
3answers
2k views

Update a view page content without refreshing the page

Is there a module that updates a view automatically when it is changed, without refreshing the view page? For example, when a new node is added to the view or deleted from the view, or a node is ...
1
vote
3answers
634 views

theming a CCK input form

How do I theme a CCK input form? I tried the approach given in this page, but it is not working even after I clear the cache. Here are the steps. Suppose your content-type is: "account_registration" ...
1
vote
1answer
844 views

Minimalistic page.tpl.php file

Do you know what to write to the page.tpl.php file so that it shows only 5 regions (header, menu, left_sidebar, content, right_sidebar)? Something like the following code, but to work correctly with ...
2
votes
1answer
2k views

Using an F5 server as reverse proxy cache (instead of Varnish)

Does anyone have any experience, positive or negative, with using Drupal behind F5? Did you succeed or fail? In either cases, what functionality did you achieve? How far did you get?
1
vote
1answer
426 views

Is there a module for creating a web directory like Dmoz?

I need to be able to organize different sets of content using the taxonomy. The user can visually click through the different layers of the directory and find what there looking for. I want to have ...
9
votes
2answers
177 views

What are methods for tracking discussions or issues on Drupal.org

On Drupal.org, there are a number of discussions or issues that I subscribe to and wish to track. Do folks use any particular method to receive push updates or alerts when replies are added to threads?...
3
votes
3answers
2k views

Conditional class on <html> element a la boilerplate

This might be a totally mundane question, but I hope not. I want to add conditional classes onto the <html> element of my theme like boilerplate. I'd like to keep things neat and not complicate ...
1
vote
2answers
3k views

Create a primary link for the user edit page

What is the proper way to create a link under "Primary Links" that will take the logged in user to their own user edit page?
4
votes
2answers
1k views

Views RSS post date removal

What is the best way to remove the post date from a views created RSS feed? I have a calendar that I have created a feed for, but it is being sorted by a cck date value, making the post date not ...
20
votes
5answers
9k views

How do I migrate users passwords from Drupal 6 to Drupal 7?

I am trying to migrate users from a Drupal 6 to a Drupal 7 site. My problem is how to change their password from MD5 to the hash one (used by D7). Do you have any idea?
3
votes
2answers
644 views

How to create an unsortable Field with multiple values?

When a CCK field accepts more than one value, the widget will display a sortable table (usually with those cross-shaped handlers); this is the default behavior. I would rather have a non-sortable ...
2
votes
3answers
1k views

What's the best way to include PHP in nodes?

We're converting some sites over to a Drupal 6 multi site and we have a number of existing pages that make heavy use of PHP. What's the easiest way to include these scripts, assuming that they may ...
17
votes
9answers
24k views

How can I create a view of child nodes based on the menu relationship?

Say you have the following pages in a menu tree: Projects Project One Project Two Project Three I'm looking for a way to create a view that will be embedded in the Project (parent) page that will ...
3
votes
2answers
216 views

What are the potential security issues when importing an entity type?

I'm working on a module. If the module is enabled, there would be an overview page showing the field structure of different content types. The visitor could then click a button to get a copy of the ...
2
votes
4answers
11k views

How do I append a unique menu ID to the menu?

I'm using Drupal 7 and I want to append a unique ID to specific menus. My search result gives me the way to change the item of the menu, but I want to change the menu itself. Is there a way to do ...
2
votes
1answer
353 views

Views filter depending on the number of node references

I have a content type A that has a node reference to a content type B. How can I create a view that show A nodes, and either filter by or sort by the number of references to the content type B? (Let'...
13
votes
2answers
8k views

Create a new revision automatically on edit

When a node is edited I want to always create a new revision. I do not want people to be able to turn this off. How can I do this?
1
vote
1answer
218 views

Panels, Diff and nodes

Does the Diff module work with nodes that are displayed using the Panels template? I go to /revisions and I get a "Page not found".
2
votes
1answer
857 views

How to output all taxonomy field values on a node in views?

How can I display all field values that are on the taxonomy terms that are applied to a given node? So say I have the following Vocab defined: Vocab name:Fruit Description:Fruit Categories w/ codes ...
3
votes
2answers
11k views

Using Rules to Schedule Publishing/Unpublishing of Content

I have a Triggered Rule that is fired on "Content is going to be saved". What it should do is look at the content type, and if that passes, delete any scheduled task based on that node ID, and ...
2
votes
1answer
1k views

How to add a category in the FAQ_ask module

I am using the FAQ Ask the Expert Module on my drupal 6. I am not very familiar with the drupal interface and have trouble setting up modules. I would like my ask a question for to have categories in ...
1
vote
1answer
863 views

Keep the URL alias for a node when using href

I am using Drupal 6 and I have set aliases for my nodes under Administer > Site building > URL aliases. This works properly; for example, I have alias = about/faq, node = node/33, and when I click on ...
3
votes
3answers
1k views

Drupal is slow only in IE

We have had a lot of feedback about our Drupal site running very slow on a different network. Most of the users on this network use IE (IE6 and IE8), which is causing a huge slowdown compared with ...
2
votes
2answers
2k views

Node reference autocomplete views issue

Firstly, apologies if I use some incorrect terminology - I'm still very much a Drupal newbie! I'm creating a band website using Drupal 6 with CCK, Views, Date, Calendar, Link, Location and GMap. It ...
3
votes
1answer
4k views

hook_theme_registry_alter() and theme()

How can hook_theme_registry_alter() associate, for example, theme_mymodule_image_output() with the 'image' theme ID?
3
votes
2answers
7k views

How do I add <div> tags to the output of a view list?

The output of a view I am using contains the following code. <li class="views-row views-row-1 views-row-odd views-row-first"> <div class="views-field-field-cimg-fid"> <span ...
1
vote
2answers
779 views

Save and preview differences in hook_form_alter()

I've created a module which uses hook_form_alter(). When a form is loaded (node/add) I hide a field, and the hook works fine. The problem appears when I do a preview of the form. When the form appears ...
4
votes
4answers
2k views

Disable Rule which is causing a redirect loop

I have created a rule for logged in members that if they go to the home page it redirects them to a different page. The home page needs to be different for anonymous and authenticated users. One ...
1
vote
1answer
112 views

Is there a function or a way to invoke the comment object?

I want to use the $comment object in page.tpl.php. Is there a function or a way to use it?
1
vote
1answer
297 views

Translation issue

I have problem with the i18n translation module; despite I translate a text menu link in the administration string translation section, it doesn't translate on the front end when I navigate the site ...
10
votes
5answers
7k views

How do I create relative menu links?

I am busy working on a site on my localhost that needs to link to some content that is separate from Drupal. I have the current menu paths set up like this: http://mylocalsite/...
2
votes
1answer
994 views

Invoking the rate module in views template file doesn't work

I have installed both the Views and Rate modules. In the views-view-fields.tpl.php file, I put the following code. $node = node_load($row->nid); echo $node->content['rate_poll']['#value']; ...
2
votes
4answers
4k views

Is there a function that can output an image?

[field_img] => Array( [0] => Array( [fid] => 200 [list] => 1 [data] => Array( [alt] => [title] => ) [uid] => 1 [filename] => cpon.jpg ...
2
votes
3answers
171 views

Choosing between stable and development snapshot releases for a new high trafficked site

After some research, I am planning to start the migration of a high trafficked site from Pressflow 6 to Drupal 7, as the current implementation (Pressflow 6 + 200 modules) is making it crawl. I've ...
1
vote
1answer
592 views

Which pages affect text area CSS?

I have a text area with CKEditor. The default font in this text area and my theme is 20 pixels and I cannot change its size with CSS, but if I change theme and use Garland, the font change to the ...
2
votes
1answer
224 views

Allow an author of a comment to see their comment listed in the comment section of a node with a notice that the comment is in moderation?

I seem to be getting a lot of duplicate comments on my site and I think it has to do with the fact that users do not see their comment right after submitting it. I have it set so that an admin must ...
3
votes
3answers
5k views

Is there an accordion-style menu module?

I have been searching high and low for a module that integrates an accordion-style menu system in D7, similar to http://drupal.org/project/accordion_menu. Anybody know of one?
2
votes
2answers
3k views

Adding jQuery Tabs via template.php

How do you add jQuery tabs in a "template.php" file? I'm trying to add it with drupal_add_library('system', 'jQuery.tabs') or drupal_add_js('/misc/ui/jquery.ui.tabs.min.js'), but I'm not having any ...
4
votes
2answers
823 views

Anonymous user form submission

I have a situation where after doing the basic registration the user is redirected to a page where he needs to fill a small form. I aim at implementing the hook_user_insert() and hook_menu() to do ...
2
votes
2answers
989 views

How to restrict users to view their own custom content type?

I am developing a custom module called 'serviceentry' which also exposes a custom content type called 'serviceentry'. I also exposes the custom permissions as : function serviceentry_permission() { ...
8
votes
4answers
22k views

Using a custom view for a taxonomy term page

Using Drupal 7 and Views 7.x-3.0-beta3, what is the best way to have a taxonomy page use a custom view? For example, in Path Auto I have a rule that points the URL alias countries/england towards ...
8
votes
8answers
4k views

Rewrite CCK field output without using templates

The Views module has the nice option to rewrite the output of a field. This allows to adapt the output of CCK fields using Tokens without having to create a template for that view. Is there a module ...
4
votes
1answer
520 views

The most searched keyword of the default search?

Is there a way, or a module, to get the most searched keyword of the site's default search?
1
vote
1answer
412 views

Accessing imagecache path inside template

I'm using the ImageField module together with Imagecache to display a picture for one of my content types. To display the content body I'm using Contemplate, I'm accessing the path to the image in ...
6
votes
2answers
8k views

Formatting numbers in D7

I have a serialized object in a field. I now need to output a float-value. Since the site has 2 languages (german/english) I now need to format the float-number based on the current language. $value =...

15 30 50 per page