Direct link to a book

Started by davidowen, 30 October 2013, 17:38:48

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

davidowen

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

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

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;?>
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

davidowen