WebsiteBaker Support (2.13.x) > General Help & Support
2.13.6. permissions
sternchen8875:
A root_parent is primarily used to create the page and menu structure. It is always the topmost element in the root for the respective branch at level == 0
The technical part then becomes somewhat confusing
The database field root_parent has a default value of 0
If a page is created, this field is not used and remains (briefly) at zero. Subsequently, the root_parent is determined using the parent of the new page transmitted in the form. This is done by MySQL queries of level and parent.
- If the level of the parent == 0, the Root_Parent of the new page is its page ID.
- If the level == 1, the Root_Parent == is the parent of the new page.
- If the level is not 0, the search continues via the pageTrail until the parent == 0.
- If no result is obtained, the Root_Parent remains at 0
--- Quote ---pages with page_type == menu-link has the root_parent == 0, because, it has no content, only a redirect
--- End quote ---
forget this, it was not correct :oops:
--- Quote ---could it be that page is created as menu_link, then deleted menu_link and replaced with wysiwyg...
--- End quote ---
If we assume normal practice, a page with a menu link section cannot have any other sections, but it would of course be possible to create a new page with a different section type and move the child page of the menu link to this new page. This happens to me quite often because I often forget to select the menu link
--- Quote ---I thought its a bug, because I see there is content - look at the seccond page from top.
--- End quote ---
i cannot say: NO, THERE IS NO BUG
Within the WB page overview there is the SectionList here
This icon is deactivated in the overview for menu links. I would look here in the database, especially with the page ID in the sections table. If a page has a section == Menu-Link, no further sections may exist, Menu-Link is a pure redirection via header(Location), a further text output by another section would lead to a fatal error
crnogorac081:
So if I understood this correctly root parent is always a page ID number, with an exception if page is only many link section, the root patent Is 0
sternchen8875:
--- Quote ---with an exception if page is only many link section, the root patent Is 0
--- End quote ---
no, see my last answer, this was wrong, sorry.
The conditions once again
- If the level of the parent == 0, the Root_Parent of the new page is its page ID.
- If the level == 1, the Root_Parent == is the parent of the new page.
- If the level is not 0, the search continues via the pageTrail until the parent == 0.
- If no result is obtained, the Root_Parent remains at 0
The last two options are checked when editing the page properties and set to 0 if parent and level are also zero
The root_parent is required when creating menus, especially for menus in multilingual pages, to determine the starting point of a language branch
Navigation
[0] Message Index
[*] Previous page
Go to full version