Sign up for Office 365
Learn more about Office 365
I've created my public facing website and I am now trying make some cosmetic improvements. One of theings I wanted to do was create a menu of items we deal with in our business and then have hyperlinks to the area on the page where we discuss that topic. This is usually done with a bookmark, but I was unable to find a tool for creating a bookmark. Is there a way I can accomplish this?
Thanks for the feedback.
You can "cheat" and use the existing faq template but you'd have to view source to find the anchor names used and of course change the heading and text. I wrote something up about that for OLSB here:
Or you can add anchors using the code generator and regular hyperlinks on the source page:
If you're comfortable with Sharepoint Designer you can also open the pages there and add the anchors directly to the code.
1 out of 1 people found this post helpful.
This is Jason Burnside from Microsoft Office365 SharePoint Support.
Thanks for coming to the communities with your concerns about creating bookmark links on your public-facing website.
Mch has posted some valid suggestions. Did you find mch’s information helpful?
Please let us know if this resolves your issue.
I will continue to monitor this thread if you have any additional questions.
Yes I think this made me re-think how I want to set up the bookmarks. However he made one comment I was not aware of, he said
" If you're comfortable with Sharepoint Designer you can also open the pages there and add the anchors directly to the code."
I didn't think we could open / edit the public facing webpages in Sharepoint. I tried it and I was unsuccessful. How do we edit public facing webpages in Sharepoint?
There are some tips on how to open the site in SPD here:
Once you open it, look under allfiles>pages and you can open pages in advanced/code view only (no wysiwyg).
I figured out the logic you were referring too to get the bookmarks to work, you are borrowing the embeded bookmarks and using them for your own purposes. If you open the bookmark with the hyperlink tool you can see they have embedded a code that looks like #what or #whatis to make it work. These turn out to be the first words in the sentence. So it looks like it is using a "find" method to bookmark. However, with that logic, I was not successful in creating my own custom bookmark. I am assuming I need to embed some code/ anchor to get my own custom bookmark to work.
You said "Or you can add anchors using the code generator and regular hyperlinks on the source page". I looked at that tool I am not sure what to do with that tool. I can edit code, but I do not write code. Let me go back and look at your comments again to see if I can figure this out .
If I open my public facing wedsite in Sharepoint can I inadvertantly damage anything that would cause it to fail to work properly? It sounds like you are saying it will be in code view or are you saying I have the option to view in code view. Code view has little use to me. I am used to event driven components.
In the faq template the links/anchors are already there - all you have to do is change the text that triggers the link. The underlying link won't change and will still work regardless of the text you change to. Like this:
Original question text: What is an faq?
Underlying link: /mypage.aspx#what
New "question" text: Read more...
Original anchor text: What is an faq?
Underlying code: <a name="what"></a>
New anchor text: Your article goes here..........
The code generator referenced is for OLSB. For 365, you should use this one:
Adding code to the 365 public site
You only need it to create the anchors which would be formed as <a name="myanchor"></a>
The "trigger" link can be done with the editor hyperlink tool by adding simply a hash mark and the name of the anchor: #myanchor.
In SPD you would just have to enter the anchor code where you need it:
<a name = "myanchor"></a>.
Yes, only code view is available. You're only able to change the html parts of the page so it's unlikely you'll break anything. The asp coding is protected.
I am trying to keep this in steps I understand. I think I understand what your logic for the bookmarks is, but I don't have a clear path (in my mind) for entering this information. So let's try this.
I created a new Faq Page and it has 6 questions and answers that are bookmarked. My questions is, how do I make the seventh bookmark? Can I simply copy/paste the question as in my example and copy/paste the question/ answer below to make it work? See my example.
I tried what I suggested and it doesn't work correctly. When you clik on either of the "What is a FAQ" it always finds the first instance of the answer, not the new answer I pasted in below.
I experimented, I deleted the first instance of the answer and tehn when I clicked on the bookmark it found the new answer I had pasted in
Here it is working as described in O365 - I simply wrote over the default text:
I spread the answers out on the page so you can see the effect and only changed 1 and 6. Don't delete anything just highlight and write over it.
There is a limit of 6 because that's all that's coded in using this method. You can't duplicate anchors - they must have unique ids within a page.
You can though use as many faq pages as you like for different content. And also link from one page to the content on another page simply by making the hyperlink include the url of the other page AND the anchor name:
I think I should be able to make this work for me, I performed the same test you made and it works for me also. I just can't create any new bookmarks, I am stuck with 6 per page. I think I can also you your other idea to link to another FAQ page. However, I am still trying to think how to create the back to top like you did, I think I would have to use one of my 6 question links to get back to the top of the page. Thats not a worthwhile tradeoff.
Of course the obvous question I keep asking myself is why in their examples did they suggest we make 10 top questions that people might ask if we can only use 6 bookmarks. It suggests we may have to get creative... but we are limited in what we can create.
Do you have any further questions?
Well I am a little disappointed with some of the tools, but it is what it is. I think I have enough information to do what I want to do. I think this is a closed thread for me.
Thanks for your help