hi,
I've implemented a Drupal website.
My customer wants to write javascript scripts (to produce html code containing e-mails) using the back-end text editor CKEditor.
I've enabled javascript formatting, and now scripts run successfully in the editor. However, as result of the email script I see the unprocessed html content in my page...
hi,
I cannot change the css theme of my Drupal View. This is a screenshots of the settings:
http://dl.dropbox.com/u/72686/viewTheme.png
I've tried all buttons, I cannot save the new theme (BlueMarine) in the preferences. It is stuck on Zen (which is my front-end theme).
thanks
...
I'm displaying cars on a page created with a view and displays. I want to be able to create a form on the home page to allow people to select the 'make', which will then update the 'models' list based on the 'make' the user selects, 'year' to and from, and 'amount' to and from. What the user selects will of course alter the list of use...
Im trying to get drupal_get_form('ccknode_node_form') to work, but nothing prints.
I've tried for example drupal_get_form('user_register'), and that works.
Im sure its very simple problem, but i really need som help with this.
Thanks
/Anders
...
Hi everyone,
How would I go around overriding a theme function with a .tpl file? I know how to override a .tpl file with a theme function but not the other way round. I can't seem to find anywhere that tells me so, so maybe it's not possible or not good practice.
For example if there was a theme function defined in a module called supe...
I'd like to add a date field to a drupal taxonomy term, alongside the default "title" and "description"
Is there some technique/php/module that lets me do this?
Is it possible to do with CCK??
I need to be able to display the new field in the same view presenting the content nodes referencing the term.
At the moment, I've added a date...
Hey all,
I'd like to do the following:
If a user gets to a url or types it in, and it is along the lines of any the following:
/path/path/path
/path
/path/path/
I would like htaccess to forward them to that url + /index.htm before triggering a 404. Also, I would like to ignore this rule for certain paths. Here is what I was trying ...
Is there a better way to find all form elements in a Drupal form than doing a print_r($form)? This dumps excessive amount of information and it is no obvious what to look for.
...
I have a link within a block. At the moment it goes to a list of newsletter nodes:
<p><a href="<?php global $base_url; print $base_url;?>/news-events/newsletter">Read our latest newsletter</a></p>
What I would prefer is to have it go to the latest node of the content type 'newsletter', is this possible?
...
I got dpm($form) working. Nice! This is much better way to view data. I am still trying to figure out where stuff is coming from eg: location longitude & latitude. The word 'longitude' is referenced in 20 different places. I thought this was a likely place to isolate text box for this input field. dpm($form['#field_info']['field_store_l...
I'm trying to set up Drupal 6 multisite in a shared hosting environment. The main site's location looks like http://www.mysite.com/foo/bar/ and my goal is to create another site using the same database at http://www.mysite.com/foo/bar/drupal2.
I've created a new folder in the sites directory called www.mysite.com.foo.bar.drupal2 and ad...
Hi there,
What's the difference between using the two options below to output link HTML?
theme('links', $primary_links, array('class' => 'links primary-links'))
theme_links($primary_links, $attributes = array('class' => 'links primary-links'))
Many thanks
...
How can I add same callback to 2 different menus?
function my_callback_menu(){
$items = array();
$items['my_callback'] = array(
'title' => t('My title'),
'menu_name' => 'menu-my-menu',
'page callback' => 'my_callback',
'access arguments' => array('access content'), ...
I have a drupal page (content type page) that should accept GET values using clean urls.
I put the following code in the page body using the php code input format.
<?php
$uid = $_GET['uid'];
$user = user_load($uid);
print $user->name;
?>
Now the following link http://www.example.com/mypath/?uid=5 results in user 5's name being ...
I know that in order to programmatically add my own taxonomy to a node I need to use the taxonomy_save_vocabulary function and pass it an array defining my vocabulary. But I need to know where does this code usually go in the module. I'm assuming the install file?
Thanks!
D
...
I am building a custom module that will allow my users to do a simple query against an MS SQL database. I've built the form using hook_form() and have gotten validation to work.
I'm planning on retrieving the data from hook_form_submit(), but once I've done that, how do I append it below the form? It does not appear that I have access t...
I'm writing a custom module and I'd like to use $form_state of the current form in another non-form api function -> custom_facet_view_build().
any help is appreciated :)
<?php
/**
* Implementation of hook_perm().
*/
function custom_facet_perm() {
return array(
'access foo content',
'access baz content',
);
}
/**
* Imp...
is it possible to declare more than 1 block in a module?
I tried to create a extra module in a block by changing the name to mymodulename_first_block and mymodulename_second_block but then i can't see them in th list.
...
Hi,
Is there an easy-ish way to modify the webform-form-tpl.php template to show disclaimer text above the submit button in a Drupal webform? I can add text below the button, but do not know how to split up the button from the other elements to add text between them, ie:
[form-elements]
[disclaimer text]
[submit button]
Cheers!
...
I have a drupal view, which displays a content type filtered by a url argmuent (e.g. category). Now i'd like to add a link in top of my view, which allows my users to add a new node. In the add form the argument field should be prepopulated with the value from the filter.
I think to archive this, i have to install the prepopulate modul...