drupal

Modifying content type INPUT page?

Lets say I create a content type, called "product". Now, if I wish to change the way product nodes are displayed, i would edit "node-product.tpl.php". Easy enough. But what if I want to edit the INPUT page? I.e. The page where you CREATE the node? Is there any easy way to do this? ...

Exposed Filter for an Image Cache preset?

Is it somehow possible to expose an Image Cache preset using an exposed Views filter so that the user can have the option of selecting a preset? Exact requirement as under: With Image Cache module in conjunction with Image Cache Actions its possible to specify the background of Images, change their color etc . I wish to create a form ...

Adding forced preview to node and change submit button value in Drupal?

This question is two-fold: Is there any way to force a user to first preview a SPECIFIC node before submitting it? i.e. Not all nodes using /admin/content/node-settings ... but only ONE specific node. Is there any way to change the labels to instead of saying "submit" and "preview", rather say "Process" and "Review"? ...

mod_rewrite redirect all urls except /wiki

I'm new to mod_rewrite and have just been going by trial and error so far, I'd like to redirect all URL requests to /drupal-6.13/ and hide the /drupal-6.13/, but if the URL is www.site.com/wiki not to rewrite anything. I'm also using the pathauto mod in drupal to create /content/title links for story content. I think it's the last sectio...

Changing the Node Creation Title in Drupal?

Let's say I have a node called "product". When I create such a node, it will always display: "Create product" as the title of the node. How do I change this title WHEN CREATING THE NODE? ...

D6: a homepage with only blocks?

the homepage of the design im currently converting in to a drupal site has 6 equally sized blocks of content (im not using the drupal term "blocks" here), showing a tagcloud, a list of the last 5 published titles, a delicious tagcloud, a "what is this site about" area etc. my question is: is it possible / acceptable / standard practise ...

Drupal administration theme doesn't apply to Blocks pages (admin/build/block)

A site I'm creating for a customer in D6 has various images overlaying parts of the main content area. It looks very pretty and they have to be there for the general effect. The problem is, if you use this theme in the administration pages, the images get in the way of everything. My solution was to create a custom admin theme, based ...

PHP XML-Export as file download

hi there! i have written a script that prints a XML file to the screen but I want it to open a download dialog so that i could save it as a file. how could i do that? thnx! the script: <?php print '<?xml version="1.0" encoding="UTF-8" ?>'; print "\n <data>"; ... print "\n </data>"; ?> ...

Drupal: a block with only some external javascript

Id like to add a block to my homepage that contains some javascript, more specifically the code provided by del.icio.us to output a tagroll. its actually just a link to an external file <script type="text/javascript" src="http://feeds.delicious.com/v2/js/tags/dude123?title=del.icio.us-cloud&amp;count=7&amp;sort=freq&amp;flow=cloud&amp;...

Using Node Data after Node is Created

I'm creating a custom PayPal "Pay Now" button based on the results of the creation of a CCK node. Basically, someone is creating their own "registration" for an event and then are redirected to a "pay now" page which is of the "PHP" input type. When I do a "print_r($_POST)", the variable is empty. How can I use the data just stored in t...

How can I set the user selected value of an exposed location Views filter for the entire Drupal 6 website?

Hi, I am currently working on a website which lists the businesses as per either their location or the category to which it belongs. Check: http://frugalmillionaire.net/ Existing Functionality implemented (Views, CCK and Taxonomy): On clicking the Primary Menu Links the Business Category are passed as an argument to the View. Hence th...

Changing drupal view filter from greater than to less than

I have a drupal view I've created for events, each event has a date field I'd like to create a way either in the view itself or via the API to have an option for users to select all events, past events or future events. I've created a basic filter event_date > now which works, however I can't seem to change this to event_date < now via t...

drupal: adding simple links to a block

im using Views to output a block, containing latest post titles - simple and working. id now like to add some text links that should be different than the "more" link you can add through the Views UI. they are basically just p-tags with a-tags inside, pointing to a url of my choice. right now i just inserted the markup in Basic Informa...

Drupal development: performance

as the single user / developer on a drupal website im experience serious performance problems. several issues occur: usually i develop drupal on our company dev server but now im at a client's office. the IT guys installed a VM with WAMP on the server they usually use for .net development. on the first day of dev (installing drupal, re...

drupal menu item not active

Hi when my primary menu is like item menu1/submenu1.2, de li gets the class active, so i can style it, for example in a different color. however, if i go to page menu1/submenu1.2/153 then the active class is missing. Or anything like menu1/submenu1.2/* is the active class missing. How can I solve this? ...

Can't access index.php in Drupal even after .htaccess modification.

I can't access my index.php file within a subdirectory of my Drupal installation. I can access other subdirectories index files and I can also access the subdirectory and see its contents when I remove the index.php file. I've made changes to my .htaccess file a while back which should allow any index.html, index.php, or index.htm file t...

Adding more information onto the $user object in drupal?

How would I go about loading my own data onto the $user object upon login of a user? ...

Preserving data integrity in Drupal:

I've happened to develop a module in Drupal and due to some seeming View limitations had to use custom SQL. This ran me into some problems with node revisions and I came to conclusion that in Drupal it's best to use its native methods for working with any data. Otherwise, data integrity problems may arise. And even with desire to optim...

preg_replace() str_replace() apostrophe nightmare! - Drupal menu image replace

Can anyone help me decode why this doesnt work? $cssid = preg_replace("/'/", "", $cssid); Trying to strip the single quote marks from some html... Thanks! H EDIT This is the full function - it's designed to rebuild the Drupal menu using images, and it applies CSS classes to each item, allowing you to select the image you want. Str...

Drupal - How can I change the default image node settings?

Hiya, I'm using Drupal 6, Image and NodeAsBlock, and I'm trying to link my nodes into pages. That all works, but each time I link an image I get by default: Title Thumbnail image size No hooks to help me style it in css Is there a way I can get around this? I really want to just upload an image, click the "create block" textbox and...