Forum

Thread tagged as: Problem, Addons, Blog

Archive with Blog App

I'm using perch, specifically the perch blog with laravel. I've got the posts working fine. I'm having a problem with the archives. I've changed the name of archive.php to archive.blade.php with a route of archive so I need to link to archive instead of archive.php.

I cn do this with a route and this this works fine to get the list of archives but when I try to filter to e.g. October, the URL points to archive.php (with the parameters), which crashes - I want it to point to archive (with the parameters).

If I edit the URL in the browser and change 'archive.php' to 'archive' by taking away the .php file extension it all works fine and I see e.g. the posts for October.

Is there a place I can change 'archive.php' to 'archive'. I tried to change the blog templates with no luck. Is there somewhere else I could change it?

Thanks Martin Rowe

Martin Rowe

Martin Rowe 1 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Any links are just in the templates. archive.php is just an example file, so it's not hard coded anywhere - it's just in the template files, which are under your control.

OK Thanks