Project text update

Started by Erica Howton on Thursday, February 7, 2019
Problem with this page?

Participants:

Related Projects:

Showing all 5 posts

New text added by Jim Henderson

——

Linking to a sub-heading

If you want to build a Table of Contents for a long overview page, or if you want to put links in other places that point not just to the project's overview page but to a subheading within that page, here's what to do:

When you have put in the sub-heading and saved your edits, the system will create an ID string for each heading in the page.
To see one of these IDs, right-click the heading and select "Inspect" or "Inspect Item", and you'll see it highlighted, in this case //*[@id="Linking-to-a-sub-heading"]
To make a link that points to that anchor within the page, right-click the id= part, then choose Copy->Selector (or CSS Selector). That will put what you need into the clipboard.
Paste it at the end of the link to the whole page, to become like this:
https://www.geni.com/projects/Working-with-Projects/12487#Linking-t...

If people click that link, they should find their browsers opening at the section heading.

——

Patricia Ann Scoggin You may find this of interest.

This would be a world of useful for me - but I'm battling to follow that to see what exactly to do ;-/

You can select the subheading, right click and choose inspect to see the HTML code for that subheading. That gives you the information you need to make a link to it.
If many cases that will be the text of the subheading replacing any spaces with a -
so you can make a link by combining a link to the project with # and the text of the subheading with spaces in the subheader replaced with -
It may help to look at some project that use this, like the Dutch version of https://www.geni.com/projects/Portaal-voor-Nederlandstaligen/4077.

I loved the Dutch project - but couldn't figure out how to do it :-)

I'll try follow above

Sharon Doubell
If you look at the project https://www.geni.com/projects/Portaal-voor-Nederlandstaligen/4077 and inspect the subheading Belangrijk you will see
www.geni.com/media/proxy?media_id=6000000204023687826&size=large
You use the ID to jump to it
To create such a (sub)heading you can jump to, use one of
www.geni.com/media/proxy?media_id=6000000204023500826&size=large
to create it
www.geni.com/media/proxy?media_id=6000000204024011824&size=large
You can make links to those subheadings to be able to jump to such a heading.
The link to go to it is:
www.geni.com/media/proxy?media_id=6000000204023896830&size=large
This is the link to the project followed by a # followed by the ID of the (sub)heading you want to jump to.

Showing all 5 posts

Create a free account or login to participate in this discussion