By WCW on Saturday, 17 December 2016
Posted in General Issues
Likes 0
Views 246
Votes 0
We have been adding modules to the side of each of our easyblog blog posts by creating a menu item each time and assigning the module to it. Needless to say, it has been tedious. Recently, we found out about the routing settings in the "SEO" section of the settings. Apparently, there is an option to set the "menu item id" of each and every easyblog page. This would give us a single menu item to assign our modules to and they would show up on every easyblog post, which is what we want.

However, we are curious about the "Default" routing behavior and the "Entry Routing Behavior" settings that are next to it. How does the default method work? The descriptions are sparse and only mention that easyblog automatically determines the menu item id by inspecting the "view" part of the url. Furthermore, the description on the "Entry Routing Behavior" only says that it shouldn't be changed if it isn't understood. The reason I ask is because we may, in the future, want to use our easyblog component for multiple blogs and the modules should only show on all posts of each corresponding blog. For example, module A should show on all posts for blog A, module B should show on all posts for blog B, etc. If we use the "force menu item id" method, we would run into issues with multiple blogs. Is there a way to keep the "Default" routing behavior and also have a module show up on every blog post? (without us having to manually create tons and tons of menu items)
Hello Sue,

I am really sorry for the delay of this reply as it is a weekend for us here. Let me try to briefly describe both these options below so that you get a better understanding of both routing behaviors:

Default Routing Method
This is the ideal method for people who want urls associated with the menus. For an instance, if you have a categories menu created, the categories link would use this menu alias instead.

Use Specified Menu Id
Some sites prefer to always link the urls of EasyBlog using a particular menu item. For instance, if a menu called "blog" is created on the site, they want every url to contain /blog/xxxx regardless of which link they are clicking on.

Routing Behavior
Routing behaviors are only applicable to the "Default Routing Method" mentioned above. Because a blog post is posted in a category and created by an author, in some cases, some sites prefers to have a url that look like /author-menu/entry-alias over /category-menu/entry-alias

Category Menu Example:
A menu is created for "category-a" and a blog post is posted in this category. The resulting permalink would be /category-a/entry-alias

Author Menu Example:
A menu is created for "author-a" and a blog post is posted by "author-a". The resulting permalink would be /author-a/entry-alias
·
Saturday, 17 December 2016 13:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks! very helpful
WCW
·
Monday, 19 December 2016 23:25
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Sue, do start a new ticket if you still require any assistance
·
Monday, 19 December 2016 23:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post