Problem with anchor link using RapidWeaver 7 with Stacks3


(Jeanne Prine) #1

I need to create several anchor links on the home page of xionglab.uga.edu so visitors can click on the 3 illustrations at the bottom and go directly to the appropriate section on the Research page. Both pages are index.html within their folders–site/index.html and research/index.html. I’ve tried lots of ways to do this but keep getting 404 file not found. Does anyone know the correct way to list the URL for an index.html page? So far, what works is using “/research” to jump to the Research page–but anchors on that page don’t work for specific headings or sections. Any advice much appreciated!
BTW, I tried Joe Workman’s anchor and link stacks, but no luck.
Thanks, Jeanne.


(Robert Ziebol 🖖🏼) #2

Hey Jeanne,
This should have worked easily with link and anchor, as long as you are using the correct link. Let me explain a little. Let’s say our website has a url of (not a real URL of course, so do not click it) :
http://my-great-design.com
and you have images on the home page that you want to link to specific areas on different pages. Lets call these different pages
page-1
page-2
and
page-3
Now, you could easily link to the page by creating a link to
http://my-great-design.com/page-1
http://my-great-design.com/page-2
http://my-great-design.com/page-3
but those bring you to the top of the page. And you want the links to go to the middle or near the bottom of the page. What you would need to do is put an anchor stack where you want the link to take you, and then name the anchor. Lets say we name the anchor this
anchor-1
anchor-2
anchor-3
Now, you need to create links to those anchors, this is what they would be
http://my-great-design.com/page-1/#anchor-1
http://my-great-design.com/page-2/#anchor-2
http://my-great-design.com/page-1/#anchor-3

You can see a working example of this here
http://www.zeebedesigns.com/anchor-test/


(Jeanne Prine) #3

Hi–thanks for your response. That’s what I did but still got a 404 page
not found error. Do I need to use
http://domain-name/folder-name/index.html/#anchor-name? Or–since
/folder-name goes to the correct page, should I omit index.html in the URL?
Nothing works so far that I’ve tested on the mac, but maybe using the
absolute URL will work on the actual site?


(Robert Ziebol 🖖🏼) #4

yup, you do not need the index.html, just add folder-name/#anchor-name


(Pete Schuder) #5

I took a step backwards and just tried setting anchor links in text stacks. Works fine in Preview but does not work when published. So I am now wondering if the issue is one with the new 7.2 Version 7.2 (18473b) rather than with the anchor stack. Or does the anchor stack need an update?

I realize it is the weekend and not many will respond, and I don’t want to leave my sample page in view. So here is the link which is not up in the menu.

http://www.neicaaa.org/Sample/

Thanks.

Below is the page source code:

Test One
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Test Two
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Test Three
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.
Lorem ipsum dolor sit amet, sapien platea morbi dolor lacus nunc, nunc ullamcorper. Felis aliquet egestas vitae, nibh ante quis quis dolor sed mauris. Erat lectus sem ut lobortis, adipiscing ligula eleifend, sodales fringilla mattis dui nullam. Ac massa aliquet.

(Pete Schuder) #6

Either my question isn’t coming through correctly or everyone is watching Patriots vs Broncos here in the states…ha ha.

I did some more testing and used Kompozer to set up a sample page similar to what I had using RW stacks and JW Links and anchor stacks.

I had no problems getting to my anchors using the Kompozer code linking to the anchors, so it doesn’t seem to be RW. I did revert back to the Nov 30 RW 7.2, as I was getting too many crashes and beach balls with the latest Dec version. Now all works fine again.

So, I am not sure why I am having issues with anchors, but from the little I can discover through trial and error, the anchor stack is not working for me.

Thanks.


(Robert Ziebol 🖖🏼) #7

Your anchors work for me, watch this movie
http://d.pr/v/IeYQ
You just do not have enough content under the last anchor. They all work without issue for me.


(Pete Schuder) #8

Yes, but I did not use JW’s Link Anchor or the built in link in RW. As I mentioned I went to using Kompozer and using the anchor code from that. As you say, those anchors work. The ones I had posted earlier did not. They worked in Preview but not when publishing. Strange, as I have used anchors before with Switcher and after some work and help, I got them to work, but those also were coded in via Switcher and not the JW stack. I used both the Foundation and Blank Themes. Neither worked using the stack method, only from Kompozer. Any hints would be appreciated, as I was trying to use anchors within CleanAccordian.


(Doug Bennett) #9

You will need to republish with it broken, or give us some screen prints of what you set up for links and anchors.


(Robert Ziebol 🖖🏼) #10

Work with my site without issue
http://www.zeebedesigns.com/RW72-anchors

You can get my project file here
http://d.pr/f/kGgD


(Pete Schuder) #11

Robert:
Thank you for your continued support. I can’t open your project file for some reason, but I do see how your links work. Hmm, so back to the drawing board and I will try to figure this out. Since my simple Kompozer links work, I am guessing something else is not going right for me. I have the same theme you used so I will try and set up a sample project using the Reason Theme and see if it works for me. It has to be something pretty simple, I would guess. Just missing it, somehow.


(Pete Schuder) #12

I am back again after I finally had a chance to create another sample. This is on another web site I do.

Here is the link: www.milfordtrack.org/Test/

Click on “Girls Indoor Records” and in both Opera and Chrome, nothing. When I do a test in RW Preview, the link works.


(Robert Ziebol 🖖🏼) #13

Especially with Opera, do you have the latest version of the browsers??


(Pete Schuder) #14

How about that. I tried it on my smart phone using one of those ad blocker browsers and it worked. So, I am indeed wondering if I have the latest browsers. Robert, thank you so much for pointing me in the right direction. My concern is that others who view the site are also using older browser versions and will have the same difficulty. But, at least JW’s anchor stack does work.

I just checked my Chrome Browser on my MacBook Air and it says it is up to date, but the linking doesn’t work. Same thing with Opera. So, very strange that I can get it to work on my Nexus 6P. Checked some more and Opera does work on my Nexus 6P, but Google does not. I have not tried this test on my wife’s Iphone, have to wait until the morning.

Bottom line is that this is not dependable enough to make it a live page if others may or may not be able to move along the page using the anchors. So I need to figure out a fix or get them to move to other sections using an accordion setup, maybe?


(scott williams) #15

Works on iOS latest
And he rest of the characters needed to post


(Robert Ziebol 🖖🏼) #16

OK, I can confirm the issue in the latest version of Chrome and Opera. We are not sure if it is a browser issue or stack issue. Joe said he will try to look at it today, but since it is a free stack, he has other things he is working on.


(Robert Ziebol 🖖🏼) #17

OK, so Joe looked into it, and it looks like Chrome and Opera are at fault, it was working for Joe on Chrome v53, but when he upgraded to v55, it stopped, so they did something to make Chrome not work. Not sure what.


(Pete Schuder) #18

Thank you for taking the time to check into this. I ended up using an accordion stack to keep things consistent. Glad to know it wasn’t just me messing things up. Happy Holidays!


(Gary McAlpine) #19

Hi, I am having a similar issue on this site; http://mcalpinepartnership.co.uk/lostrailways/ and the links/anchors below the main text block don’t work in Chrome Version 56.0.2924.87 (64-bit).

Regards,
Gary


(Robert Ziebol 🖖🏼) #20

This is a well documented bug in Chrome, not the anchor stack
https://www.google.com/search?client=safari&rls=en&q=chrome+anchor+links+not+working&ie=UTF-8&oe=UTF-8