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?
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?
Check by parent_id. The value will be 0 for root level blog posts
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?
Blog
page_type=B
Page
page_type=T