I would like to programatically (using php) fill out an existing drupal form to create a content type that is included in a contributed module.
Details: The module is SimpleFeed and the content type is Feed. I would like to call the module's functions to accomplish this. The method I am interested in is hook_insert which appears to requ...
I'm using Drupal 5 and have a multitude of views that I want to alter the output of. Using the views wizard, I can create a different template for each instance, but I'm wanting to do the same changes across all my views and having 30 files in the themes directory seams like a hell of a lot of maintenance and code. Does anyone know if ...
The drupal api has drupal_get_path($type, $name) which will give the path of any particular theme or module. What if I want the path of the current theme?
...
I need to create a internal website and can't figure out if we should be writing our own, or using an existing framework.
Most of the website will essentially be a front end to a database. We need to have a number of people enter data into forms. We then want to be able to show different views of all this data -- including running sma...
I have the occasion to produce Drupal web sites using development, staging, and production environments. Keeping the code in sync between the sites is a simple task using subversion. What is not so simple is propagating changes to the database data (not just the schema) between installations.
The reason for this will be familiar to an...
This website http://nationalstrategies.standards.dcsf.gov.uk/ appears to be using Drupal, and I like the menu system on the front page, but can't work out how it's been done.
Has anyone any ideas about which Drupal modules might reproduce this look and functionality?
...
I would like to have the choice in a variable_load function (as used to load variables from menu arguments) to circumvent the remainder of the page rendering process and give the user a "page not found."
I could use a drupal_goto() but I would prefer not to redirect the user and change the url in their browser.
Is this possible?
...
I've used the Views Theming Wizard to output a template and it gave me the following chunk of code to go in template.php.
I'd prefer to just maintain the one template, so all my functions will be calling the same one, and rather than writing numerous versions of the same function, I'm wondering if there's a way to string function names ...
Background: Customer X has a CCK-based Content Type (vendorxxentry) and is using Views2 to generate a listing of all the vendorxxentry nodes in a simple table.
One of the fields in vendorxxentry is called "vendorxxattitude", which appears as one of the following enumerated possible values:
happy
sleepy
dopey
grumpy
Customer X has f...
I'm implementing a social networking site. I hope to use drupal or elgg and am trying out both. I'm stuck on customizing the registration to include a neighborhood in addition to city and state.
I want to have drop-down menus customize the local information based on the more global information. So, once you choose the state, the city...
Hi
I would like to execute the jQuery $(document).ready() in a drupal site. While i know that i can just stick it in the index page , this is really messy and a hack.
What i want to know is where is the correct location to put this, it would also need to be theme specific as i dont want all themes to use it.
Thanks in advance for the ...
Hi,
I want to accomplish the following scenario in Drupal:
You have 2 content-types. Lets say, an application-form for a lisence, and a content-type for persons.
Then when you go to add a lisence in the "node/add" submission form in Drupal, i would like to add a relative number of persons that would be related to this lisence, and onl...
I've had to move my page title into my node to accommodate a client need, but I'm unable to now get a title to display on a page view of my views list. The argument I have to display title on edit, admin and track pages is:
<?php if ($title && ((arg(2) == 'track') || (arg(2) == 'edit') ||
(arg(0) == 'admin'))): ?>
<h1 class="titl...
Setup is following:
Drupal project, one svn repo with trunk/qa/production-ready branches, vhosts for every branch, post-commit hook that copies files from repository to docroots.
Problem is following: Drupal website often relies not only on source code but on DB data too (node types, their settings, etc.).
I'm looking for solution to ...
I am finishing up a Drupal site and I have attached a word document on one of my page nodes. I want anonymous people to be able to download it, but they don't even see the document. I do as a logged in user.
Any Ideas?
...
Drupal Aggregator core module is a useful one but suffers many problems. There are many talking about improving it in Drupal 7.
Right now I'm using Aggregator module which comes with Drupal 6. I'm building an aggregation site, and there is one BIG problem. Sometimes feeds contain HTML tags attributes (e.g. style, dir, title), but Aggreg...
I have previously used DTO in Flex which is mapped to a PHP DTO file. I used PHP through remoteobject (AMFPHP) to retrieve info from a MySQL database which is converted into the DTO type and then passed back to Flex to populate Datagrid.
The data used to populate the Datagrid is an ArrayCollection of DataVO, as follows.
Public Function...
I have some code that creates a new node in Drupal, but I want to write some data to a Location field. How do I go about this? Is it possible to use the $node object?
...
I thought I would find decent questions and answers for this, but none really caught my eye...
I am a C++ developer and I own a few domains. I'd like to start off with simple web sites for each with a minimum of time and fuss and minimum learning. I have too many projects going and don't have the time to learn how to build websites.
...
Hi,
I've created a view with a set filters exposed (to show filtering options in the page). And one of those filters is a select field with all the taxonomy terms of a vocabulary.
That's ok, it's showing now. But I want to only show the taxonomy terms that have at least one node associated to it. To avoid empty results if selects an em...