PurdueAgComm / Extension-2018

1 stars 1 forks source link

Navigating to /benton/ doesn't use /pages/county.php but uses /pages/home.php #3

Closed purduekenny closed 6 years ago

purduekenny commented 6 years ago

I've added in different functions based on home and county homepages but it seems as if /benton/ calls up home.php instead of county.php. It does pull the correct data, though.

sfp-john commented 6 years ago

Added some logic to check if we're looking at the main homepath (ID=1) or a county specified and switch the template on that "root"

https://github.com/PurdueAgComm/Extension-2018/commit/e4f948f588545016f78f33b605b6204cbb33ec2a

purduekenny commented 6 years ago

This looks to be working fantastically, thanks!