Melanie
Melanie
Offline
0
Hi,

We are using Music Collection for a different purpose (one podcast, from one artist with a profile page). On our home page we want a list of podcasts with images that can play the podcast on that page and when we click on the image it goes to the profile page. It does this perfectly using the Albums module as the homepage :) . I only need to use the Albums form to capture details and upload the podcasts, but some of the fields are not required. For example we only need one image file for the Album and one image for the Artist/Song. We don't need many of the other fields either. Is there a way I can remove these from the form so as not to confuse our users?

Kind regards

Mel

Accepted Answer

Tuesday, September 20 2016, 02:11 PM - #Permalink
0
hello

1. /components/com_muscol/views/album/tmpl/default.php (any of the sub-files you want to place it to)

2. ok well then you need to modify some CSS to allow this. in file album.css line 833, for example, you can remove the property "white-space" from the class .material-card .title

(I'm asuming you know some CSS here..)
The reply is currently minimized Show
Responses (5)
  • Accepted Answer

    Monday, September 19 2016, 04:39 PM - #Permalink
    0
    sure.

    you can remove fields in the file /components/com_muscol/views/album/tmpl/form.php or bs_form.php, depending on the version of Bootstrap that you're using.
    The reply is currently minimized Show
  • Accepted Answer

    Melanie
    Melanie
    Offline
    Monday, September 19 2016, 07:27 PM - #Permalink
    0
    Hi Germinal,

    thank you! That was exactly what I needed. Looking good :)

    Can I ask:

    1. is there any way to show the number of hits inside the album details?
    2. Is it possible to display more of the album title text? is the field length set somewhere?

    Mel
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 20 2016, 09:46 AM - #Permalink
    0
    1. there's a variable called $this->album->hits that you can use.
    2. where..? not sure what you mean
    The reply is currently minimized Show
  • Accepted Answer

    Melanie
    Melanie
    Offline
    Tuesday, September 20 2016, 10:01 AM - #Permalink
    0
    Hi Germinal,

    For 1. Which file to I add that to so it shows in the profile card ( $this->album->hits)

    2. I have attached what I mean - it is basically the Album name box - I am using it as a descriptive introduction so need to make it show more text, and then on the profile page (if that is what you call it where the Facebook comments etc. are) for it to show the full text as currently it cuts it off with ... like it has a set number of characters to display.
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Melanie
    Melanie
    Offline
    Wednesday, September 21 2016, 12:52 PM - #Permalink
    0
    Hi Germinal,

    thank you!

    For anyone else who needs how to do this, here is what I did (in my case I needed to add hits to the Album details):

    1. Go to folder /components/com_muscol/views/album/tmpl/
    2. Create a safe copy of the file you are about to edit - in my case it is /default_details.php
    3. I wanted to add Hits count just above my Tags to the details section of the album so underneath thfollowing section of code (and above the opening php for Tags code) I added:

     <?php if($this->params->get('showalbum_editiondetails', 1) == 1 || ($this->params->get('showalbum_editiondetails', 1) == 2 && $this->album->edition_details)){ ?>
    <strong class="label_detailed_album"><?php echo JText::_( 'EDITION_DETAILS' ); ?></strong> <span class="value_detailed_album"><?php echo $this->album->edition_details; ?></span>
    <?php } ?>


    I added my new code:

    <?php if($this->params->get('showalbum_hits', 1) == 1 || ($this->params->get('showalbum_hits', 1) == 2 && $this->album->hits)){ ?>
    <strong class="label_detailed_album"><?php echo JText::_( 'Hits' ); ?></strong> <span class="value_detailed_album"><?php echo $this->album->hits; ?></span>
    <?php } ?>


    Hope that is of use to others.

    Regards

    Mel
    The reply is currently minimized Show
Your Reply