XF 2.1 Any way to access the Sitemap Exclude array from a template?

Nulumia

Well-known member
I'm trying to put together a custom status panel showing some various useful information. Accessing {$xf.options.sitemapExclude} directly from a template returns an empty array - must this be done using a PHP callback?

Further, since some addons extend this array with their own added types, I'd want to access the full current array, instead of checking against default known values.
Thanks
 
As hinted by the name of the option, it will actually contain an array of excluded content types (while the options allow you to check items to include). Only unchecked items will appear in the array.
 
As hinted by the name of the option, it will actually contain an array of excluded content types (while the options allow you to check items to include). Only unchecked items will appear in the array.
Totally missed this simple bit :oops:.. thanks! No wonder it was returning empty on my local instance where everything was checked. Looks like will have to plan a different approach..
 
Back
Top Bottom