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
3
votes
1answer
619 views

When paging through a block, another block on the page disappears

I am using Drupal 7 with Organic Groups and Views. Currently within my team node I have 2 blocks appearing with the proper filters in place. The first block is configured to only appear only on pages ...
3
votes
2answers
5k views

View PDF as “node”/content

I'm working on updating our current intranet to Drupal. What I need to be able to do is take a PDF and load it in an iframe/node via Adobe Reader (or similar). I can get something similar using (I ...
4
votes
1answer
2k views

File upload field in CCK field settings

Is there a difference in Drupal 7 to add a file-upload field on a "normal" form (i.e. a separate page for a modules' configuration) as opposed to the small settings area for a CCK field (the one that ...
4
votes
2answers
4k views

File field label

I have created a custom content type that has a file field. When I upload a file the node displays the complete file name, test_file.pdf. I would rather display its file name as clickable link. I ...
2
votes
1answer
1k views

Show empty fields

I've created a custom node (node--CONTENT_TYPE.tpl.php) where I print the fields my way. For example, <div class="test"> <?PHP echo $content['field_tipsol']['#title'].":".$content['...
18
votes
2answers
29k views

Do you have an example of hook_menu() access callback?

I have downloaded the examples project, but in the menu_example module all the access callback are set to true.. hard to understand how it works. In my example, my meno entry should be visible on ...
3
votes
5answers
5k views

Avoid access to profiles (user/%user/view)

I want to avoid access to user/%user/view, so only admins can see profiles. At first I tried with changing the permission user_view_access without any luck. I tried to use the hook hook_menu_alter: ...
2
votes
1answer
5k views

Drupal as a simple file manager

I'm wondering how easily it would be to achieve the following. I want to create a Drupal site where users have a small "file area" to upload files. I would like to be able to take those files and ...
8
votes
3answers
2k views

Drush Scripting? Or Batch API?

We have an Ubercart website that handles large volumes of orders daily, processes them and runs other tasks like billing, delivery routing, and future order creation. Some of these tasks are heavy ...
4
votes
2answers
231 views

Is there a module that creates a jquery-like bar that displays system messages at the top of the page?

Is there a module that creates a jquery-like bar that displays system messages at the top of the page. (exactly like the large, red bar on this site (stack exchange)?
1
vote
1answer
161 views

What's the best way to implement a system to allow the end-user to download and buy documents?

I need some advise on how to build a system to allow users to download and purchase pdf files. A purchase option is a one time only thing and no order history of login is required. The end user just ...
0
votes
2answers
1k views

Add a file-download widget on a form

I have a file field called "contracts" between my user fields. What I want is that in the user-profile form this field would come up as a file-download widget. Does anyone have an idea how to show a ...
2
votes
2answers
436 views

Code for page access

I would like to use PHP code in nodes of a specific content type. I can check the user's permission with the global $user if the user can access the node. Is there any module to set view for created ...
5
votes
1answer
2k views

How does one create terms on hook_install if hook_taxonomy_default_vocabularies is used in the same module?

I'm attempting to create taxonomy terms in a module that provides the vocabulary needed to create these terms. The issue I'm having is the vocabulary is not available upon install. My module ...
4
votes
2answers
593 views

How to get search to display an error when no search terms are entered

Right now if I don't enter a search query in the drupal search module, it returns results for 'search'. I would like it to display an error prompting the user to enter a search query instead. Is there ...
5
votes
4answers
4k views

How do I get the vote result in Vote API?

I have installed the rate module, and found out that the votes associated to a node are stored in the votingapi_vote table. Is there a function to use to get the sum of all the votes for a node?
8
votes
4answers
4k views

How can you sort taxonomy terms based on number of times used, in a view?

I'm creating a view that lists the top 10 most popular taxonomy terms (tags). Currently I have the view returning all the terms and I can limit the view to 10 but I can't work out how to order the ...
3
votes
2answers
401 views

Location module should lookup address before saving

This question is related to Adding geo location content to node. I'm trying to get a location saved to a node. The Location module supports this, but I don't like the workflow of this module. It ...
8
votes
4answers
6k views

jQuery UI theming

I want to use in my module custom jQuery UI theme from the themeroller. What is the best way to do it?
4
votes
2answers
17k views

Example for $form_state[‘rebuild’]

May anyone give me an example of rebuilding the form using $form_state['rebuild'] after user's input?
4
votes
1answer
2k views

“Add link” in my account menu

The user account page (http://example.com/user) consists of some default tabs like "View," "Edit," etc. I want to add my menu link over there. The content to be returned should depend on the user ...
3
votes
1answer
3k views

Change blog comments display order

I have a Drupal 7 site with blog and comments enabled for certain user groups and the users complain that in longer discussions like this one the order of comments is totally chaotic, they just can't ...
5
votes
4answers
12k views

Image field is not showing up in view/block

I am currently using Drupal 7, and I am trying to get my images to be displayed in a view on the main page. So far I have created: Created a content type containing a title, body and image field ...
1
vote
2answers
1k views

How do I get the rate vote number?

How do I get the rate vote number, e.g. the number after "funny," "angry," or "mad"? I looked for the values in the database, but I didn't find a column that stores it.thank you.
34
votes
5answers
17k views

Bulk field update?

I added a new (text) field to a Drupal 7 content type that already has many nodes. How can I fill the field with a default value for all these nodes?
8
votes
2answers
13k views

How do I create an AJAX filter for a view?

I have created a page using Views and it works fine. I want to add an AJAX filter to this page to allow visitors to filter the contents based on PubDate or by Taxonomy/Vocabulary for this content type....
3
votes
1answer
873 views

How do I use CCK fields with the form API?

Does anyone know how to use OpenLayers CCK fields with the form API? I want to get a coordinate and some other data from users in my custom form.
5
votes
5answers
1k views

Is it possible to add CSS to theme without a subtheme?

I am using a contributed theme and I would like to add a bit of CSS. The theme uses a lot of stuff that isn't inherited by sub-themes (settings, colors, etc), and I don't want to create a sub-theme ...
5
votes
2answers
2k views

Autocomplete term widget (tagging)

I was using the "autocomplete term widget (tagging)" as widget type for a term reference field. I found out that the when I set the maximum number of allowed values to more than one (i.e multiple ...
3
votes
1answer
1k views

Override forum topics list

The forum topics list has this in the table header: Topic, Replies, Created, Last Reply. I just want to remove the Created heading. Template file forum-topic-list.tpl.php prints the table header with ...
5
votes
1answer
498 views

Comet implementation

Does anyone know how to implement comet in Drupal? I saw a rudimentary PHP implementation on Stack Overflow. Is there any module which does this?
1
vote
2answers
111 views

Same CCK field in one content type

I have a content type named "school;" this content type has the "teacher" CCK field, but the number of teachers is not same for any school. I need a thing like "add new teacher" button, which can be ...
17
votes
7answers
6k views

Change the input format for 3000+ nodes

I have a lot of nodes that need to get their input format changed - I could do that by hand, but then I won't be done before Christmas 2014. Where is Drupal storing that information? How can I ...
2
votes
2answers
3k views

How can I activate a horizontal tab?

Drupal 7 has the field group module which contains a horizontal_tab.js file. Inside this file i found this written // If the current URL has a fragment and one of the tabs contains an // element ...
2
votes
1answer
163 views

How to alter each article's comment setting by PHPMyAdmin

After I updated my site, I found out that all the node comments are set to "disabled." I then went to the specific content type setting page, and changed the default comment setting to read/write, ...
4
votes
3answers
3k views

Is it safe to purge the /files/styles directory?

I use Image Styles to automatically generate thumbnails (for teasers and views). I have a lot of images, so I end up with a lot of cached thumbnails in the /files/styles directory. Is it safe to ...
2
votes
1answer
611 views

Something I can't understand in Acquia Marina theme

I have downloaded the Acquia Marina theme yesterday. I cannot understand well the following code; there is a lot of code like the following, in page.tpl.php. <?php print theme('grid_block', $...
0
votes
1answer
152 views

How do I use the field API?

Someone told me that most of the time I will probably want to use the field API (CCK module in D6), rather than adding custom tables or modifying nodes by myself. How do I use the field API? Could ...
7
votes
4answers
4k views

Is there a easier way to disable and enable module for module development?

I'm finding that every small change I make to the hooks I have to disable and re-enable a module. Is there a easy way to do this than having to go through to the module menu, uncheck the module, click ...
1
vote
1answer
2k views

Problem configuring the Calendar module

I'm having trouble with Drupal 7 and the calendar (version 7.x-1.0-alpha3) module. The default view is working. It is showing the nodes based on the time they were updated. I added a date field ...
3
votes
1answer
2k views

Organizing uploaded files in folders created by date

This could be very trivial, but I haven't been able to find a good solution. I have an image field associated with a content type called article, and I wish to organize the files uploaded during ...
46
votes
3answers
19k views

How to migrate from test environment to production environment?

The migration is from the local environment to the production environment. The production environment has run some time and created a lot of articles. In order to add new things to my site, I added ...
0
votes
3answers
2k views

How can I point to an internal anchor using core menu?

We have a navigation menu created using Drupal's built-in menu system. One of our menu items has the path set to "node/100770#digital-anchor," but when the menu is rendered, it strips off everything ...
1
vote
2answers
2k views

Can't Remove Image from CCK File Field when editing node (Throbber just spins)

I was able to upload an image, but the thumbnail didn't appear until I hit save on the form. When I try to remove the image, it just sits there spinning the throbber; if I click on "Save" in the form,...
14
votes
6answers
13k views

How do I use URL aliases in menus?

I am kicking the tires on Drupal 7 by spinning up a test site. I chose the Danland theme and created various pages with URL Aliases for each, but when I create the Menu link for each, I can only ...
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 ...

1
518 519
520
521 522
529