Plugin

Archived
Forum
(read-only)


For official support, visit the official support site »

Google Sitemap Lite

ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Rein de Vries

     

Hide from Nav & child pages

Feature Request

koivi
koivi

While using

{exp:google_sitemap_lite:generate type="structure" mode="all" use_hide_from_nav="yes"

I found that while the specific entries that here hidden from nav didn’t appear in the sitemap, their children did. I needed a way to have all the children (pages and listings) hidden as well. Rather than spending the time to edit the methods to check at at parent entries all the way to the top, I implemented an additional parameter.

My tag now reads:

{exp:google_sitemap_lite:generate type="structure" mode="all" use_hide_from_nav="yes" exclude='/account|/sales/employees'

Now none of the items under /account is shown, nor are the pages and listings under /sales/employees.

I only implemented this for Structure, but I have attached the diff output so you are able to examine and possibly add to this great plug-in.

Thanks!

File Attachments
pi.google_sitemap_lite.DIFF.txt  (File Size: 2KB - Downloads: 80)
Reinos
# 1
Developer
Reinos

Hi Koivi,

Thanks for your support. Is it possible that you add this as an pull request on github? (https://github.com/reinos/ee_google_sitemap_lite)

best,
Rein