As documentation on this topic is not too verbose ;-), I‘d share what worked for me.
If blog home is the homepage of your site (site_start), and friendly_urls is on, your tags and archive links will need some extra settings.
- container_suffix is /
- add the container of your blog to all tags and archive links in your Articles templates.
$articles-rowTpl, [[!tolink]]:
- add &tagKey=`blog/tags`
Articles Template, .post-info, [[!tolink]]:
- add &tagKey=`blog/tags`, set &target=`[[*parent]]`
Articles Template, #footer-content:
- The +tags and +archives placeholders, i.e. what goes into them, should be edited, but I couldn’t find a way to do it (can anyone help?). So I edited the template files, causing me extra work for future updates to the Archives addon :-(.
core/components/taglister/elements/chunks/tag.chunk.tpl
- set <a href="/blog[[+url]]">
core/components/archivist/elements/chunks/row.chunk.tpl
- set <a href="/blog[[+url]]">
If you had it different in the first place, you may want to do some retrofitting.
- The new url scheme will apply to new blog posts only. Old blog posts keep their url, as it is stored in the database. There is no need to do anything about it, unless you prefer a consistent url scheme.
- If they are not too many, you may want to edit your old blog post urls in the database, and redirect them in the .htaccess.
- My container_suffix used to be .html, as I have first level documents in my site. Uncheck the container setting in your first level documents, should they be checked - now the url of your first level documents changes back to *.html.
Hope this helps.
[ed. note: BrigitteB last edited this post 9 years, 4 months ago.]