Hi, so I want to be able to automatically add the link to the root page of the blog of the company to their microstore.
Any idea how I can identify if a blog page is a root level page from within the controller files?
Posted 18 February 2020 - 08:18 AM #1
Hi, so I want to be able to automatically add the link to the root page of the blog of the company to their microstore.
Any idea how I can identify if a blog page is a root level page from within the controller files?
Posted 18 February 2020 - 01:31 PM #2
Check by parent_id. The value will be 0 for root level blog posts
Posted 21 February 2020 - 03:33 AM #3
Thanks! That helped, quick follow up question, how does the backend system (vendor panel) differentiate when you're editing a page or a blog? Is there a variable I can check for that?
Posted 21 February 2020 - 05:29 AM #4
Blog
page_type=B
Page
page_type=T