Add more files to a book

Started by remi, 08 October 2012, 11:53:47

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

remi

Hi
Thanks for this nice component.
But for a reason I have to include max 3 files as attachment with each of the Book. How can do this by tweaking the code? I have added 3 dummy field in _abbook table. But how to add them (during book creation) and show them as 3 separate attachments?

Thanks in advance.

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

#1
Hi remi,
I moved this post to "support" category.
The database field must be named "file2", "file3".
you have also to add the fields to <your_site>/administrator/components/com_abook/models/forms/book.xml. Copy the xml code from the "file" field and change it the name (eg. file2, file3, ecc...).
Then you have to modify
<your_site>/administrator/components/com_abook/views/book/tmpl/default.php
and that file to shows your attachments to front-end side
<your_site>/components/com_abook/views/book/tmpl/default.php

Bye bye
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]