Having Drupal Show Headings

I'm brand new to Drupal, and nobody answered this question yesterday so I need to re-post. How do you get headings and subheadings to appear in a Drupal document? If I mark a document up with tags h1 through h6, Drupal strips out these tags when sending the document to a web browser. If XHTML tags h1 through h6 are forbidden, what can I do in a story or blog entry to create headings and subheadings instead?

Is it possible to turn off clean urls for searches?

Hi there,

I am using Mint to analyse my stats, and one of the peppers they have monitors the search terms that people use on the site. I know that Drupal has built in stats for this, however I would like them all in one place.

To track searches, Mint requires the search URL to be in the form of example.com/search.php?q=Mint, where the search.php and q= are configurable. What I want to do is to turn off the clean URL generation for searches only, so that I can provide the right terms to Mint to track the searches.

Does anyone know how I can do this for Drupal 6.x?

Flash node permissions

Flash node provides the following user settings to control what roles are and are not able to do:

Flash node version 5

  • administer flash node - access the flash node configuration pages to set module defaults
  • create flash nodes - create new flash node content
  • edit own flash nodes - edit user's own flash node content
  • hide advanced options - do not show the Advanced flash node settings section on the node editing form (prevents changes to substitution text, flashvars and base parameter)
  • hide basic options - do not show the Basic flash node settings section on the node editing form (prevents changes to the display mode, width and height)
  • hide display options - lets the user access the Basic flash node settings section on the node editing form to adjust the height and width, but prevents changes to the display mode
  • import flash - allows the user to import multiple files - the author of imported files will be the importing user

Flash node version 6

The main change is that edit and delete permissions are refined, in line with other content types. So in addition to the permissions above the following are also defined...

  • delete any flash node - delete flash nodes created by any user

Theming flash node

Flash node uses two theme functions to produce output.

theme_flashnode($flashnode, $teaser = FALSE, $options = array()) is used to process a flash node object and prepare for it rendering to HTML. Within flash node this function does nothing more than check the requested size does not exceed the configured limits, and scales down the content as required. You could adapt this function to, for example, scale the teaser content to a fraction of the native size.

theme_flashnode_markup($flashnode, $options = array()) is the function that takes a formatted flash node object and returns mark up, either by using SWF Tools if it is available, or by falling back to direct embedding. You could over-ride this theme function if you wanted to use customised flash rendering code.

The functions are split in this way to try and make it simple to over-ride just the portion you want to modify. Assuming you generally wouldn't want to mess with the actual production of markup and only manipulate the sizing of flash content you can therefore over-ride theme_flashnode() and simply conclude your custom themer with a call to theme_flashnode_markup() when you're ready.

Note that the introduction of themeable functions to flash node is new so I am open to suggestions for improvement!

Putting flash in a block

The easiest way to do this is to configure an input format that can use the flash node input filter. Then you create a flash node to hold the flash content, and then you can create a block that uses a flash node macro to bring the content across. You can use the macro to resize the content to suit the site layout.

If you don't want the flash content to be viewable as a node in its own right simply set the status of the "parent" or "placeholder" node to unpublished. You can still refer to the node from the macro, but you can't view it.

Javascript substitution text

A new installation of flash node uses direct embedding to output the flash content, using the <object> and <embed> tags. That's fine for basic use but javascript methods have a number of advantages. In particular users who do not have flash and javascript will see some meaningful content in place of the animation, while a search engine such as Google will index the substitution content. To use javascript embedding you must download and install SWF Tools.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x