I am using Drupals boost module to cache my very dyanmic website.
I also am using a views block to load in banner images from a content type and the view is set to randomly load an image.
However, because boost module is caching the pages as html, what ever random images is loaded when the page is cached is what I am stuck with.
Is ...
What is the difference between $form['#submit'] and $form['#after_build']?
...
Hi All,
I hope im not being daft here, but ive recently installd display suites (6.x-1.3) and ive been watching a few tutorials and on some of those tutorials they have the following, which I dont have.
STyles ( I assume this is because I have not yet defined any styles in my theme ?)
Region to Block ? ( is this perhaps a seperate mod...
I've created a form that has the following structure
function myfunction(){
$form['myform']['row1']['field1'] = array(
//type, title, etc.
);
$form['myform']['row1']['field2'] = array(
//type, title, etc.
);
$form['myform']['row1']['field3'] = array(
//type, title, etc.
);
...
I am trying to implement location-based range search using Drupal location and Gmap modules. Ideally I would like to have a form where the user can type in either zip/postal code or specific name - e.g. London + specify a range within which he would like to search. Currently I have a working searching functionality that returns map marke...
I am using Drupal 6.17 and want to get rid of "HOME" in the breadcrumb output...
eg:
$breadcrumb= PRODUCTS // SOFTWARE // FEATURES
instead of
HOME // PRODUCTS // SOFTWARE // FEATURES
...
Hi, I would like to ask those who are experienced with building a website with Drupal. I got a job like this, but I'm more interested in programming. I got also another job offer and cannot decide!!
How often do I get to programming/changing code in Drupal, when building a site in it? Isn't it just about clicking around and downloading ...
I have a table inside a form. I'm trying to display a 'select' form element in one of the table columns, but it doesn't display; it keeps getting rendered outside of the table. However, if I change the form element to 'checkboxes' or 'radios', it displays without problem.
I'm rendering like this: $output .= theme('table', $header, $rows...
Hi,
I have the following javascript to embed a flash in my page.tpl.php
<script type="text/javascript">
<!--
var flashvars = {
xmlUrl: "xml/banner.xml" //Use to change XML filename or location
...
Hi! I'm working with Drupal 6 to create a feed collecting site. I import the original feeds via the feeds module and copy their tags. But I also want to assign a category (terms from second taxonomy) according to the author name to be able to divide the content in a unified way.
I want to use the rules module (rules-6.x-1.2) to assign t...
I'm trying to track how often a Poll content type is answered as a block in Drupal when it's embedded on a number of pages as a block. For example, if 5 users answer the poll on page A, and six users answer on page B, I need to know those breakdowns, but not their specific answers.
I'd planned to simply look in Google Analytics for the ...
I am trying to create a Your Story functionality where the users can submit their stories in form of a comment. I've made a standard page with comments functionality, however instead of 'add new comment' label, I would like to have 'submit your story'. How can I alter this label only on that particular site and keep it as it is on other ...
I have two views loaded on the front page. Both contain exposed filters which when modified, display different content (done using the Better Exposed Filters module).
When modifying one view the URL will be http:example.com/?cid[]=1 and the changes will take effect.
When modifying the other view the URL will be http:example.com/?type[]...
Hi all,
I am working on a large site which has around 600 taxonomy terms in one of its taxonomy vocabularies, each with the description field populated.
It's important that the search mechanism searches these term descriptions as well as the nodes themselves.
Drupal does not appear to be doing this by default - is there any way I can ...
I have 2 drupal databases, 1 current database and a backup. I'm now in the situation where I need to restore the backup. I'm looking for a way to import the new users in the current database into the backup.
How should I go about doing this?
...
I have a form with a submit button and a handler that stores data in the database. Problem is when the form is submitted, all data is cleared from the input fields. Is there a way to still show them after submit? What changes do I need to make to my form_submit function?
function mymodule_form_submit($form, &$form_state) {
//how to ret...
I am trying to attach multiple pictures to the node programmatically in drupal 7 but have no idea how. i am not even sure its possible. Here is my code for attaching one picture to the node and it works. Please if someone can help me how to attach multiple pictures more than one to the image field
$node->field_image['und'][0]['fid'] = $...
Hello gents.
I'm working on a drupal site where I allow users to login while at the same time posting a content. I've successfully added email & password fields to the original form, but I'm stuck as to how I should actually log in the user. (My plan is to do it in the validation step, before the content is created, to make the logged i...
I saw that there's a module called Floating block that should do what I'm searching for: but it duplicates the floating block, making it totally unusable.
Can you please tell me some other ways to accomplish that?
...
Why hello there Stackoverflow,
I have a nutcracker for ya, is there an "good" way to create 100% custom forms or rather just textboxes and have the values sent to an url like so: http://site/drupal/formreciever-content-type , post-sending the values of X textboxes with jQuery for example? Without having to do so much backend work, right...