If I now click on the author's link, the minispost block, based on a collection of pages by taxonomy, changes the links to the posts and only shows those of the selected author.
I am using the Future Imperfect theme, and the code related to this behavior is as follows:
miniposts.html.twig
....
TWIG
{%setminiposts=page.collection ({'items':{' @ taxonomy ':{' category ':' minipost '}},' order ':{' by ':' date ',' dir ':' desc '}}). remove (page) .slice (0,3)%}{%ifcount (miniposts)> 0%}
@pmoreno, By default, page.collection uses setting 'url_taxonomy_filters': true, which means the collection will be filtered by the query provided in the url.
When using url /blog/author:foo, the collection will be filtered on 'foo'.
To prevent this automatic filtering, you can set 'url_taxonomy_filters': false.
Maybe I didn't explain myself well in the last post. What I need is that the three posts highlighted in the left sidebar are always the same (identified with the taxonomy of 'miniposts'). What happens is that when you click on the link of the author of any post, the highlighted miniposts on the left sidebar change and those corresponding to the author that has been clicked are displayed.
Can't you have the two collections independently?
I leave the complete code of the blog_item.html.twig file and of minipost.html.twig.
miniposts.html.twig (this is inserted in base.html.twig)
TWIG
{%setminiposts=page.collection({'items':{'@taxonomy':{'category':'minipost'}},'order':{'by':'date','dir':'desc'}}).remove(page).slice(0,3) %}{%ifcount(miniposts)>0%}<section><headerclass=""><h3>Featured</h3></header>{%forpinminiposts%}<articleclass="mini-post"><header><h3><ahref="{{p.url}}">{{p.title}}</a></h3><timeclass="published"datetime="2015-10-20">{{p.date|date("M j, Y")}}</time><ahref="{{p.url}}"class="author"><imgsrc="{{p.media[p.header.avatarImage].url|e}}"alt="" /></a></header><ahref="{{p.url}}"class="image"><imgsrc="{{p.media[p.header.primaryImage].url|e}}"alt="" /></a></article>{%endfor%}</section><!-- End of featured Section -->{%endif%}
Now I have managed to do what I needed, and that is that in the sidebar of miniposts, they remain fixed, regardless of whether you click on the links of the authors of the posts (which previously made that in the sidebar only the links appear of those authors).