Question about links

I want to create a link that takes the person on my site to a specific page in a Public medical data base/search engine. Instead of taking the person to the public medical data base home page I want the link to take the person to the specific page in the search engine. I hope this makes sense. Does anybody know how to do this?

Thanks

Kelly

Javascript: arrays in Drupal.settings in Drupal 7

Hi -

I am confused about some of the changes to handling of Javascript settings in Drupal 7, and I haven't been able to find any answers to my questions online.

I see that things have changed so that sub-properties of Drupal.behaviors must have "attach" methods, and can also provide an optional "detach" method. I also understand that "settings" are passed to the attach methods in order to expand Javascript settings in order to keep up with changes during AJAX calls.

In my case, though, I just need to keep track of some settings that are defined as the page is built and will not need to change later. In Drupal 6, Drupal.settings would look something like this:

Drupal.settings.mymodule.key = value

But now it looks like this:

Drupal.settings.mymodule.key = array(value)

And after an AJAX call, even if I don't change the settings, I wind up with this:

Drupal.settings.mymodule.key = array(value, value)

And so on... In other words, each time there is an AJAX call, the items in Drupal.settings are re-added, and I wind up with constantly-expanding arrays rather than single/atomic pieces of data. This isn't only messing up what my module does, but is also confusing another Drupal module I'm relying on that is encountering arrays within Drupal.settings where it expects integers and strings.

Video Gallery - Drupal 7

Hello -

I am trying to find an elegant video gallery for Drupal 7. I have searched but slim pickings.

Is there a 'light-box-esque' video gallery which works in Drupal 7?

thanks for your assistance

[my search tag: genkidog]

[Solved] Styled images are not being generated

Hi all,

I have a problem with my D7 site which is preventing me from displaying thumbnails in a View. I have searched (both here and on Google) about this issue but could not find anything along the same lines as this. Before I dive into the explanation, here is some info about my setup:

Web server: lighttpd/1.4.26 on CentOS 5.5
PHP version: 5.2.13 (extensions enabled)
GD version: 2.0.34 (with PNG support)

According to Reports > Status Report, no problems are detected. Clean URLs are enabled as well.

Now for the details - I'm trying to create a little portfolio section on my site. To accomodate this, I made a new content type called Project, to which I added a number of fields: a few text fields for project URL, technologies used, etc, and an Image field to hold up to 5 screenshots.

That image field is configured like so:

Allowed file extensions: png, gif, jpg, jpeg
File directory: portfolio/screenshots
Preview image style: no preview

Max/min resolution and max upload size are left blank.

will the JW-Player ever work with Drupal?

I know there are many video playback solutions out there, but for some reason the most widely used player (correct me if I'm wrong) doesn't really seem to blend into Drupal as much as it does with other CMS.

When I was on D6 I was waiting for the JW Player Module to get updated so that I'm able to use JW Player 5+... Never happened.
You had to stick with JWPlayer4 or choose another player.

MENU_CONTEXT_INLINE

Hi guys! (Tom style)

i wanna code an overlay like when u press "edit" contextual link in a node.

I did:

$items['node/%/information'] = array(
  'title' => 'Information',
  'type' => MENU_LOCAL_ACTION,
  'context' =>  MENU_CONTEXT_INLINE,
  'page callback' => 'information',
  'access callback' => TRUE,
 )

function information() {
 // something
}

Obviously this redirect me in another page.. which is the way to do like the node edit link?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x