MODULES
...
Siteglide Modules
Blog
Browse by Author
8min
combining the blog and author modules allows you to filter the blog posts by a specific author's posts introduction this article explains how to include the browse by author option when including a blog list default layout examples how to give feedback to the user about their results e g in the screenshot "posts by regina alexander" add "use adv search" parameter to include for blog list view the "use adv search" parameter is needed to allow filtering from the url to apply to your blog posts, this can be added to the include for blog list like so {% include 'module' id '3' layout 'default' per page '20' show pagination 'true' sort type 'created at' sort order 'desc' use adv search 'true' %} to include this option include the following liquid to dynamically get a list of available blog authors for the user to select {% include 'modules/siteglide authors/get/get authors' author layout 'default/author' author layout type 'sidebar' author field 'module field 3 4' %} the author field will be module field 3 4 if you are using siteglide's authors module the layouts are structured in the same way as category layouts in the previous section default layout examples with explanation wrapper liquid authors {% include 'modules/siteglide system/get/get items', item layout 'item' %} item liquid {% if this\['image'] %} {% endif %} {{this\['name']}} to filter the blog list view, you need a link to the blog list view slug, followed by "?module field 3 4={{this id}}" siteglide will be able to read the url and filter the list user feedback to make it easier to give feedback to the user, you can optionally include the author's name in the url href="{{context location pathname}}?module field 3 4={{this id}}\&author name={{this name | url encode}}" on the list view, you can then include the following liquid to read the url and decode the author name you are currently filtering by {% elsif context params module field 3 4 %} posts by {{context params author name | url decode}} {% endif %}