Questions tagged [7]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
5
votes
2answers
9k views

Date value to different date format

I have a date field. In my template I want to display the date in two different ways. I know in display I can set the format used for a date. To print the date in my template I am doing. <?php ...
2
votes
1answer
763 views

Send mail to users including receiver's username

I have searched settings of Contact (in Drupal core), Simple news and Mass contact modules but haven't found a way to include receiver's username in the mail body. Any suggestions how to do this?
2
votes
5answers
4k views

Overlay and jQuery don't work, what should I do?

I have installed Drupal 7 on a local computer on stack called Denwer (similar to WAMP) and Windows 7; I see that all pages load without Overlay module (it is on, on modules page). I guess that jQuery ...
6
votes
6answers
4k views

Hide a view if less than N results

I wonder if it's possible to hide a view (as block view) if it has less than X results.
1
vote
1answer
1k views

How to add a node field to a database table in a custom module

When I am writing my own custom module, and designing a database table, if I want to use the field nid to refer to a node, because I want my module to adding something to each node, how should I ...
4
votes
2answers
1k views

Join or create group on registration

When people register for my site I want them to either join an existing group or create a new one if it doesn't exist. They can only be a member of one group, and there's only one group type used on ...
1
vote
2answers
246 views

Is there a way to exclude the addthis module's output in the $content variable?

The $content variable in my node.tpl.php file outputs some CCK field content, the content body, five star content, and the add this content. I don't want it to show add this content. Is there a way to ...
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
340 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
818 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
382 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
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 ...
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 ...
17
votes
9answers
25k 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'...
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
858 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 ...
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 ...
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
786 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
113 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
298 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 ...
2
votes
1answer
995 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
3answers
172 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 ...
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
826 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
990 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 ...
4
votes
1answer
529 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?
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 =...
4
votes
1answer
2k views

How do I truncate strings?

For example, I need to truncate the following text. Drupal is free, flexible, robust and constantly being improved by hundreds of thousands of passionate people from all over the world. Join us! I ...
1
vote
1answer
279 views

How do I overwrite the variables in my theme?

function rate_preprocess_test(&$variables) { extract($variables); $buttons = array(); foreach ($links as $link) { $button = theme('rate', $link['text'], $link['href']); $button .= $...
6
votes
1answer
3k views

Send email with attachment

I want to send an attachment with drupal_mail() using hook_mail_alter(). Do you have any ideas about which parameter should I use? Does the variable $param help, in some way?
2
votes
3answers
2k views

Adding geo location content to node

I'm looking for a maintained module that allows to add a geo location to a node of a custom content type. I am looking for something that has integration with Google Map API so that it's possible to ...
4
votes
1answer
2k views

Change field options after form has been filled with data

When creating my form, I wasn't enough aware of the configuration for the default core description field. I don't want a summary field, but I did not pay much attention at that when setting my form ...
1
vote
2answers
6k views

How to create a menu with background images for list items?

How would you make a menu that have a different background image for each <li> element in the menu?
1
vote
3answers
2k views

Multiple image styles

Is there a way to take multiple style image for one image field? I want to use a 150×150, 180×180, and a 300×300 style at the same time.
1
vote
1answer
253 views

Permissions defined by fields

I have some content that has state field. I would like to permit users with the same state to delete this content. Can I implement this in Drupal? Can I implement it with PHP code?
10
votes
3answers
14k views

How do you remove the “user login” block?

I know this is a simple question, but I've searched for way too long. I just want to remove the user login box so that all accesses to the site, apart administrator access, will be anonymous. We don'...

1
519 520
521
522 523
529