Page 1 of 1

Asterisk with "has own or shared page" in Website Index

Posted: 25 Jan 2021 18:06
by Arthur45
Have just updated my Website based on my FH project, first time under V7. Each name in the Index has a small asterisk, leading to a note at the bottom " Has own or shared page". I would like to get rid of the asterisks and the note - is this possible? Since all the names in my Index have the asterisk, it adds nothing. Thanks.

Re: Asterisk with "has own or shared page" in Website Index

Posted: 25 Jan 2021 18:39
by tatewise
Welcome to the FHUG Arthur.

There does not appear to be an option to control that in the Publish > Website wizard.

You could report the problem to Calico Pie via their http://www.calico-pie.com/osticket/open.php support service.

If you know your way around HTML you could edit the _nameindex.html and remove the asterisk components.

Eventually, if CP don't provide a solution, it could become a feature of my 'Improve Website or CD DVD HTML' plugin to remove them.

Re: Asterisk with "has own or shared page" in Website Index

Posted: 25 Jan 2021 20:09
by Arthur45
Thanks - looks like it's related to the "Select or not" option in the list of records for preparing the website. The small print does explain that not selecting does not exclude a record, just means it doesn't have its own page. Looks like selecting generates the asterisk.

Re: Asterisk with "has own or shared page" in Website Index

Posted: 25 Jan 2021 20:15
by tatewise
Yes, that is correct. Individuals selected will get their own web page and an asterisk.
Any references to other Individuals in those selected Individuals details will be listed without an asterisk.
But you have no control over excluding the asterisk when everyone is selected.

The only options are as I suggested earlier.

Re: Asterisk with "has own or shared page" in Website Index

Posted: 01 Feb 2021 11:23
by redvanman
Arthur,
There is another option here, but this solution comes with a number of caveats:
  • It uses Javascript to modify the output at the time it is displayed.
  • It is inextricably tied to the format that FH generates for the index page - for example, the asterisk is currently rendered in a <sup> tag. If that changes, the script will no longer work.
  • Javascript is not for everyone - who wants yet another language to help tweak FH output?
Far better would be if FH made this an option on the wizard.

Having said that, this is a fairly simple script, so you might wish to try it.
  • Copy the file that I have attached (adjust_index_page.js) into/Packages/your package name/data files/_custom (or wherever you put your custom files).
  • In step 8 of the wizard, click advanced and insert the following at the end of the body section:
    Untitled.jpg
    Untitled.jpg (47.09 KiB) Viewed 2522 times
  • Rebuild your site.
The asterisks on the index page, and the legend at the foot of the page should now be gone.

Hope this helps (and that it works for you as it does for me :lol: )

Alyn

Re: Asterisk with "has own or shared page" in Website Index

Posted: 01 Feb 2021 12:22
by dewilkinson
I updated my web site yesterday and these asterisks don't look good. I opened the index page in Notepad and replaced <sup>*</sup> with nothing, and removed the final line at the end. This took less than a minute to do. Pity you can't toggle it in the software.

Re: Asterisk with "has own or shared page" in Website Index

Posted: 01 Feb 2021 12:25
by tatewise
Has anyone reported the problem to CP?

Re: Asterisk with "has own or shared page" in Website Index

Posted: 01 Feb 2021 12:52
by dewilkinson
i have created a ticket with CP.

Re: Asterisk with "has own or shared page" in Website Index

Posted: 02 Feb 2021 16:28
by Arthur45
Thanks very much for the advice. I shall be trying to implement it. Arthur