I am having an issue with call Drupal node.save using MooTool's JSONP. Here is an example.
Here is my request:
callback Request.JSONP.request_map.request_1
method node.save
sessid 123123123123123
node {"type":"blog","title":"New Title","body":"This is the blog body"}
Here is my result
HTTP/1.0 500 Internal Server Error
I got this wo...
I have a data table which is populated with data unrelated to drupal content (from a third party system). The data relates to photos which must be approved / flagged as inappropriate.
So I'm writing a Drupal admin module which should moderate this content. So far, I have built a table using theme('table',...) which shows 1 photo per row...
I have a Druapl site with pages indexed by a google mini search appliance.
The earlier in the week I noticed that a bunch of links were marked as indexed, but excluded because there was a 'print this page' link back to the same page and had a rel="nofollow". I took the nofollow out and let the GSA reindex the site 2 days ago.
Now, the...
I have a basic Drupal 6 site on a shared hosting environment. The site has been running fine for about a month.
I uploaded a new release of the webform Drupal module and when I go to update.php to complete the page I get errors. The update.php preview page doesn't not show any updates needed for webforms, but if I proceed I get the erro...
I've asked this question previously here, and thought it was fixed, however, it is only fixed in firefox. In Safari the login box is now very wide, jutting out over the page contents. Here is what it looks like in Safari, and here is what it looks like in Firefox.
I originally went about fixing it by creating a drupal module which chan...
I have two content types, book and chapter. Each chapter node contains a node reference of the book to which it belongs. I have created a view which displays the title of each chapter for a given book. Within the view, the title field has been configured to link to its node.
All works well. I am now interested in updating the view t...
I have a form 'pub_form' which has function $form['#theme'] = 'publication_order';
so in module file, i defined function theme_publication_order($element), but the function
was not called.
i have search the google, looks like i have to use hook_theme() to make theme_publication_order() to work.
how can i override hook_theme() to mak...
This is the code in index.php,with only <?php,but no ?>,this is my first time to see code like this,any reason?
<?php
// $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which th...
I recently moved a files/images folder on my site (a Drupal installation) from /sites/default/files/ to /sites/example.com/files/, but there are now a lot of 301 errors from external hotlinking sources, and I'd like to redirect inbound links from the old 'default' path to the new 'example . com' path, but only for this one domain...
Bas...
I don't want to use it to construct the whole site,
instead I want to use it just to manage part of the posts on the site.
Is drupal fit for this kind of job?
EDIT
If the answer is yes,can you provide some guidance here?
I just want to use it to edit/manage the posts,but show it with my own code.
...
I see there are several nice Accordion (UI) modules, but none seems to be able to display accordion for subsections of a single node/article.
E.g. article on my site has sections "Start", "Middle", "End" and I'd like to be able to see these sections wrapped each under other on a single node page.
Like
/node/x
Start (text available upon...
I'd like a select box to appear on a form that I'm building, and I know that I can use
theme('select', $element); to generate a properly formatted select list. When I check http://api.drupal.org/api/function/theme_select/6, I can see more information about my variable, $element:
$element An associative array containing the properti...
I am attempting a fresh install of Drupal 6.14 on a Ubuntu 9.10 machine using XAMPP for Linux. I use XAMPP fine with Wordpress and some different frameworks. I am having problems after I download and extract Drupal to my /htdocs/. The following pic shows the errors I get.
...
Are all requests handled in index.php?
...
Is there any way to show local tasks to user if they doesn't have necessary permissions? Right now it seems like Drupal just excludes them from page code. I want to show them, but with different CSS class.
Version of Drupal is 5.20
...
Is there a drupal function or convention for including JavaScript onto a page or form?
My current solution is to hard code the script tag as part of the output of my form's theming function, but it seems like there should be a better way, since JavaScript should generally be the last thing loaded on the page.
...
It's what I see in page.tpl.php of Drupal,but I don't understand.
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
...
I know that stackoverflow.com uses the module pathauto. I would like to use pathauto in drupal to create pathauto uris. But I don't know how to do this.
Example: domain.com/node/1 after using pathauto then domain.com/article/1/title-node
Now I want to go to domain.com/article/1/??? then still it shows node 1 instead of show page not fo...
Hi everybody,
I'm learning Drupal and whould like to ask you about some good material for a beginner on this subject. Any book, website or article is welcome.
I whould like to hear to any good advice for someone like me, which is just starting to know Drupal and CMSs in general.
Currently, I'm using as my basic source the official web...
I am trying to send a POST request to Drupal's Services module & JSON_Server module, however I am getting
{ "#error": true, "#data": "Invalid method " }
Since PhoneGap runs html files from locally on the phone, should i need to worry about JSONP. The issue I have with that is that I must POST data, and JSONP only allows for GET. Any i...