2017-12-01, 00:55:17
Hello guys,
I have a "plugin" that uses a lot of hacks in the template, so not really a fully standalone plugin. It's sort of catalog that uses SQLite database with remote API (syncing between 3 websites with webhooks).
First problem is, that maybe I did it really wrong, because I inject all content under "catalog" slug, so all subpages return this slug, even if the url is /catalog/category/subcategory/item .. Don't know if this can be done better than just injecting my data into data_index in "index-posttemplate" and some htaccess magic..
Secondly, I need to also generate sitemap for this catalog and I need to update it when webhook fires (aka content is added/removed so category/item is modified/added/removed).
Could you please help me with this?
I have a "plugin" that uses a lot of hacks in the template, so not really a fully standalone plugin. It's sort of catalog that uses SQLite database with remote API (syncing between 3 websites with webhooks).
First problem is, that maybe I did it really wrong, because I inject all content under "catalog" slug, so all subpages return this slug, even if the url is /catalog/category/subcategory/item .. Don't know if this can be done better than just injecting my data into data_index in "index-posttemplate" and some htaccess magic..
Secondly, I need to also generate sitemap for this catalog and I need to update it when webhook fires (aka content is added/removed so category/item is modified/added/removed).
Could you please help me with this?