You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like it if the initial view of index.php showed the most recently added books. That would be a bit more like walking into a real world library.
I figured I might be able to do this by editing index.php line 24:
$page = getURLParam('page', Base::PAGE_INDEX);
The different pages are listed in lib/Base.php so I could just replace PAGE_INDEX with PAGE_ALL_RECENT_BOOKS. However, this isn't doing it - I still get the list of Author, Title etc.
I am struggling to get my head around the flow of the code to see where I can change the behaviour. Has anyone else managed to do this?
If I can get this working, then I can make the home page view configurable by adding a key to the $config array.
The text was updated successfully, but these errors were encountered:
The default start page is also defined separately in file lib/JSON_renderer.php function getJson() = same code on line 204 there.
This gets called via the getJSON.php URL by your browser if you use client-side rendering (=default), or by serverSideRender() in the index.php itself otherwise.
I'd like it if the initial view of index.php showed the most recently added books. That would be a bit more like walking into a real world library.
I figured I might be able to do this by editing index.php line 24:
The different pages are listed in
lib/Base.php
so I could just replacePAGE_INDEX
withPAGE_ALL_RECENT_BOOKS
. However, this isn't doing it - I still get the list of Author, Title etc.I am struggling to get my head around the flow of the code to see where I can change the behaviour. Has anyone else managed to do this?
If I can get this working, then I can make the home page view configurable by adding a key to the
$config
array.The text was updated successfully, but these errors were encountered: