Jump to content

Archived

This topic is now archived and is closed to further replies.

outtareach

Linking to fragments of other parts of page

Recommended Posts

outtareach    3
outtareach

Guys,

If I want to link to parts of the same page to make a one page site how would I do this?  I know in regular html you name your section then link to it but not sure how this would do this if I cant name a section.  Any help would be appreciated.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Try Scroll Spy.  That's what it does.  Like old HTML markers, you create a menu in Scroll Spy and it takes you to a pre-determined location on the page.  You can have tons of pages all within one that way.  Check it out:  http://docs.pagelines.com/tutorials/using-scrollspy


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
outtareach    3
outtareach

I've read up on the little information that is available but what if I want a section to be targeted?  It seems that it creates a menu that scrolls to various sections within the text box but what if I want to scroll to a section that I created in pagelines?  Also scrollspy is contained to specific width but when I click a link it then stretches the entire section. 

 

Seems that sections should have name attribute to easily add a name to a section then just target from menu.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Manually, you can add this kind of code using a textarea  <a id="unique-identifier">Content or Section</a>

 

Then, in your menu, you add a Custom Link, with this code:

#unique-identifier and the label Click Me

 

Save the menu item, and then the menu. View the site, and click the "Click Me".  It should zoom you right to the place you added the code above.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • chamois_blanc
      By chamois_blanc+
      What is the right/best way to make a one-page website with PL5? The framework seems to hardcode section IDs without any possibility of changing them. Scrolling to a page section requires the link to use the section ID, ie <a href="#<section_ID>">...</a>. I don't see myself hardcoding weird section IDs in there as this will show up in the address bar.
      Please advise, thanks!
    • John Olsson
      By John Olsson+
      Wierd little problem with the "boxes"-section. Just updated to latest version of all..
      The outline-default-link puts itself behind another container.. or so.. so the top/bottom border won't show, also the left and right box won't show the border on the left side for the left box, and same for the right box, on the right side.
      The padding/margin is ofc on default-settings.. What can this be?

    • Jesper
      By Jesper+
      Hi there
      When creating a classic onepage website with anchor links the mobilemenu does not hide it self when clicked.
      I can see that this issue have been reported before, is there any solution to this? 
      I have the same issue here: http://trasborg.dk/ and here: http://piaggio-ape50.dk/
       
       
       
    • cliffordprimer
      By cliffordprimer+
      Trying my best to link words in a section to another section on the same page that provides more detail. Is there any way to do this.
      Brand new to pagelines -- using Voyant theme.
    • ipitts
      By ipitts+
      Greetings! 
      We are using Pagelines >> DMS2 theme. We are using the DMS2 Media Box module on several pages throughout our site. The media box includes an image thumbnail with hyperlinked text (below the thumbnail - located in the embedded HTML text editor).  We would like for users to be able to click on the image in addition to the accompanying text. Is there a way to add a hyperlink on the image itself?
      Please see the attached screenshot. You'll see we have "Compatibility Matrix" thumbnail image & text within the "Text & Embedded HTML" section that provides an <a href="...."></a> to direct visitors to another page. 
      We tried to follow this post (http://slickmedia.co.uk/blog/glenns-blog/pagelines-dms-mediabox-add-link/), but it did not help us solve our challenge. 
      Thank you very much for your help,
      Marie Thiele
      Marketing Coordinator, Syn-Apps LLC
      480-355-6822
      mthiele@syn-apps.com
      media box.tiff
×