Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: davidowen on 30 October 2013, 17:38:48

Title: Direct link to a book
Post by: davidowen on 30 October 2013, 17:38:48
Good morning

I need when I clic in a book link on the category view, will open directy the book (in this case all are PDF free files open to the public). Is there an option o way to modify the source code to do that?

Regards
Title: Re: Direct link to a book
Post by: federica on 30 October 2013, 18:48:20
Hi davidowen,
there isn't an option, but you can modify the code yourself.
Open the file:
components/com_abook/views/category/tmpl/default_items.php
modify the code from:
<?php $linkbook=JRoute::_(AbookHelperRoute::getBookRoute($item->slug$item->slugcat));?>
to:
<?php $linkbook "images/".$this->params->get('file_path').'/'.$item->file;?>
Title: Re: Direct link to a book
Post by: davidowen on 30 October 2013, 19:17:24
It works.

Thank you