Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to change home page to list of recently added books? #527

@dunxd

Description

@dunxd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions