Named Anchors

Events happening in the community are now at Drupal community events on www.drupal.org.
blanesworld's picture

Hi,

Just curious. Has anyone had success with the Named Anchors in Drupal 6? I'm building a site that requires a side menu to link to views further down the page.

Please respond if you have had any experiences with this.

Thanks,

D

Comments

I'm also looking for help on this.

ratinakage's picture

Did you ever figure it out?

drupal named anchor page, and an Acquia-Drupal question....

yin's picture

Hi:

I'm new to drupal, but in the course of my research I bookmarked a drupal page about named anchors...
Hope this helps...
http://drupal.org/node/106821

Maybe you may know about this...?...I just downloaded acquia-drupal and find that the files and directory layout is not the same and I can't find things like .htaccess, the sites folder, the themes folder... Do you have experience with acquia?

yin

Named Anchors

ed kroket's picture

hi yin,

i tried the options in the page you linked. but it does not work for me.

Problem Solved

blanesworld's picture

Sorry for the late reply on this topic.

I solved the problem by adding the following code to the middle of the body on a page. <a name="jump"></a> This is the label that I called to for the jump link.

From my front page I used the following code to to link to the jump "<a href="/mypage/#jump">Jump to jump>></a>

Step 1: Locate where you want the jump.
Step 2: Add the jump label to the appropriate section of the page: <a name="jump"></a>
Step 3: Add the link from any page or the same page. <a href="/mypage/#jump">Jump to jump>></a>
Step 4: Test the jump and make adjustments if needed.

I hope this helps.

Using Drupal 6.

D

Browser compability issue

drupalnesia's picture

Doesn't work on IE8 and FF 3.6.3. But works fine on Chrome 5.0.375.70.
I am using Drupal 6.17.

@intlcool: what is your testing browser?

Inserting anchors in Drupal

1websitedesigner's picture

Hi,

There's an end-user guide for inserting anchors on:

http://www.1websitedesigner.com/drupal-anchor-links

It assumes you have a WYSIWYG editor (FCK, Tiny MCE, etc.) installed, which makes lots of tasks easier.

Hope this helps,

Martin

Are you talking about using

christefano's picture

Are you talking about using named anchors when using the core menu system? Drupal core won't accept paths with "#" symbols but I believe the Menu Editor module does.

I don't know what I was

christefano's picture

I don't know what I was talking about. I was able to create menu items just fine with "#" characters. The trick was to use the node IDs in the menu items and not the aliased paths (e.g. node/28#example instead of named/anchors#example).

Doesn't quite work...

robbm's picture

This approach initially appear to work, but I'm experiencing a couple of problems with it...
1. When I then go to edit such a page the "Menu settings" and "URL path settings (pathauto) are all wrong. Both behave as if the first jump link to the page should determine the default settings for the page.

  1. In Safari, node/28#example is rewritten to named/anchors instead of named/anchors#example

Edit: Using node/28/#example instead of node/28#example avoids breaking the "Menu settings" and "URL path settings". Doesn't help Safari though...

No luck with Menu Editor

robbm's picture

Menu Editor 2.1 gives me much the same error when trying to create a jump link, i.e. "The path 'blah' is either invalid or you do not have access to it."

Of course, 'blah' actually works fine. Only 'blah#anchor' fails.

Drupal Colorado

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week