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
|
Posted: 12 February 2014 12:30 PM |
|
|
|
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
|
|
|
Reinos
|
Posted: 16 March 2014 08:01 AM |
# 1
|
|
Developer
|
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
|
|
|