Hope this is the right place to post this question. In good old html there is the <a id="tag">add content to be linked</a>. Then from where I create the link I say <a href=blah.html#tag>go to link</a>.

I realize drupal is awesome, but it would be awesome if this simplicity would work in drupal. It doesn't appear to. Is there a similarly easy way to create a link like this? I just want to link to the body section of another page without bringing the whole page in to a pop-up box.

Thanks for any insight.

Comments

Jaypan’s picture

You can still do that. Drupal outputs HTML (usually). HTML is HTML regardless of whether it's hand coded, our output from a system like Drupal.

parann0yed’s picture

Thanks Jaypan. If you look at it at http://renleydesigns.com/about under the first picture and text NESAC/BIO Director, there is a Read More...link. That is where I want to link to the body of another page to show the bio. But it appears to bring the whole page even though my tag is isolating just the body text. I'm pretty sure the code is correct...it's very simple code.

Jaypan’s picture

Do you mean the popup when someone clicks the 'read more ' link? That's something that has been added to your system that overrides the default behavior of the link (which would be to link the user to another page). You will need to remove that functionality, or have someone else remove it.

parann0yed’s picture

We want the content to pop-up It's using fancybox. I thought I could just link to the content of another page and have just the text pop-up without the header/footer etc. I can't think of another way to produce that text other than creating a basic page and linking to the body. I'm thinking old-school and just learning Drupal. In old-school we would just make a document.html with only the text and link to it. If I was able to make a content type that was stripped down that would also solve the problem.

Jaypan’s picture

I see what you mean. The #hashtag link you spoke of is an entirely different situation then, as it has nothing to do with popups.

parann0yed’s picture

Following all instructions on using fancybox in drupal I got it to work (finally). But, as you know it pops up a whole node and I only want the body. So here is my link code:

Read More..

Then on the page with the body I want to link to it has the The body content.

To me, that should work. It brings the whole page though and not just the body.