Narrated Web Site: Disable (or hiding) "Media" and "Thumbnail" tabs?

In Gramps 5.1.5 (on Ubuntu 22.04) is there a way to disable the “Media” and “Thumbnail” tabs? I mean I would like to have media attached to Persons or Places on the website – but not have separate indexes/tabs for them. I my use case it adds no value and rather confuses the visitor.

I did not find an option for this. Also, I did not find an option to include some little CSS for adding something like

#dropmenu li a[href="thumbnails.html"] {
  display: none;
}

EDIT: Or I do not see what these tabs are useful for…

It sounds like you want the image pages created, just not the tabs for them on each website page. There is no option like the option to include the Repository page in the creation options.

The tabs for the various page tabs are defined in…
gramps\plugins\webreport\basepage.py in the program files.

Starting at line 1520 (5.1.5)

    navs = [
        (self.report.index_fname, self._("Html|Home"),
         self.report.use_home),
        (self.report.intro_fname, self._("Introduction"),
         self.report.use_intro),
        (self.report.extrapage, self.extrapagename, (self.extrapage != "")),
        ('individuals', self._("Individuals"), True),
        (self.report.surname_fname, self._("Surnames"), True),
        ('families', self._("Families"), self.report.inc_families),
        ('events', self._("Events"), self.report.inc_events),
        ('places', self._("Places"), self.report.inc_places),
        ('sources', self._("Sources"), self.report.inc_sources),
        ('repositories', self._("Repositories"), inc_repos),
        ('media', self._("Media"), _create_media_link),
        ('thumbnails', self._("Thumbnails"), self.create_media),
        ('download', self._("Download"), self.report.inc_download),
        ("addressbook", self._("Address Book"),
         self.report.inc_addressbook),
        ('contact', self._("Contact"), self.report.use_contact),
        ('statistics', self._("Statistics"), self.report.inc_stats),
        (self.target_cal_uri, self._("Web Calendar"), self.usecal)
    ]

You could try commenting out the Media and Thumbnail lines by add a hashtag (#) to the start of these lines.

The pages should be created just not give a person easy access to them.

1 Like

No need to modify the sources.
In the image tab, choose the following :

Don’t select “Create the images index” and “Create the thumbnail index”

2 Likes

First @Jens would need to upgrade to Gramps 5.2

1 Like
  • Listenelement

I am a bit hesitant to upgrade to 5.2. since it is not released yet and regarding the data structure (sql storage) of gramps it seems easy some little bug might really cause a lot of troubles. So maybe I’ll wait a little. It is not the most needed feature for me.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.