OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
MediaLibary Component Support
Go to bottom Favoured: 0
TOPIC: book description in listing
#1964
boutagy (Visitor)
Fresh Boarder
Posts: 6
graphgraph
User Offline
book description in listing 5 Years, 6 Months ago Karma: 0  
Hello I'm looking to display the item description in the book list page.
There is the image, the title, the author ... but I really need to display the book description also
I've seen in the booklibrary.html.php the lines to change but I have no idea how to write the code to display it.

You can see the screenshot attached who describe my wish.
The idea is to get rid of author, rating and hits status and just show : image, title and description.

thanks for your help.




ooops I realised that I'v put the topic in the wrong section... this message should be in the book library component forum, could you move it ?
 
Logged Logged  
 
Last Edit: 2011/05/13 15:47 By . Reason: choosen a wrong section.
  The administrator has disabled public write access.
#1967
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:book description in listing 5 Years, 6 Months ago Karma: 61  
Hello,
For rebuild that in Media Library software.

You need in file:
{yours site}/components/com_medialibrary/medialibrary.php

check function:
showCategory

and in file:
{yours site}/components/com_medialibrary/medialibrary.html.php

check function
HTML_medialibrary::displayMedias

But with that you will lost possibility change media ordering

Or you may ask custom version from ordasoft.com contact form.

Thanks,
OrdaSoft team
 
Logged Logged  
 
Last Edit: 2011/05/16 07:56 By admin.
  The administrator has disabled public write access.
#1969
boutagy (Visitor)
Fresh Boarder
Posts: 6
graphgraph
User Offline
Re:book description in listing 5 Years, 6 Months ago Karma: 0  
Hello thanks for your answer but my post was not regarding media library, but book library basic... I put it in the wrong topic section
 
Logged Logged  
  The administrator has disabled public write access.
#1970
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:book description in listing 5 Years, 6 Months ago Karma: 61  
You wrote to "MediaLibrary Support Forums MediaLibary Component Support"
With that reply for media library !!!

For Book Library all very like

You need in file:
{yours site}/components/com_booklibrary/booklibrary.php

check function:
showCategory

and in file:
{yours site}/components/com_booklibrary/booklibrary.html.php

check function
HTML_booklibrary::displayBooks

But with that you will lost possibility change book ordering

Or you may ask custom version from ordasoft.com contact form.

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#1972
boutagy (Visitor)
Fresh Boarder
Posts: 6
graphgraph
User Offline
Re:book description in listing 5 Years, 6 Months ago Karma: 0  
Hello thanks for your answer.

I assume that I have to query the item description from the database in this function
line 690 ? but what is the name to query ? or Im a totally lost ?

I try to understand the structure and the PHP but I'm not a specialist, so I want to learn

I also have another question.
Is there a way to list only the subcategories (in the category list view) if the main category does not contains items ?
by default the main category is listed on top ( like the example screenshot) with the search.
I allready have disabled de search because I have bought the extended search module and now I want to hide the category lines if empty.
Is it hard to do ?

Thanks for your help
 
Logged Logged  
  The administrator has disabled public write access.
#1974
admin (Admin)
Admin
Posts: 4861
graph
User Offline Click here to see the profile of this user
Re:book description in listing 5 Years, 6 Months ago Karma: 61  
Hi,

description
You need in file:
{yours site}/components/com_booklibrary/booklibrary.php

check function:
showCategory
You need row:
Code:

  $query = "SELECT bl.id, bl.isbn, bl.authors, bl.rating,blr2.rating2, bl.title, bl.fk_lendid, bl.date, bl.hits, bl.URL,bl.imageURL".


change to :
Code:

  $query = "SELECT bl.id, bl.isbn, bl.comment , bl.rating,blr2.rating2, bl.title, bl.fk_lendid, bl.date, bl.hits, bl.URL,bl.imageURL".



and in booklibrary.html.php

"authors" replace to "comment"

With categories:
I am sorry, but you will confuse users if he will go to some one category and real will go to other.
If som category empty, and you think need remove it, please remove it



Thanks,
Ordasoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?