Extra fields

Dimitris
Dimitris
Offline
0
Hi again

I followed the instructions from this post: http://www.joomlamusicsolutions.com/en/forum/general/section-additions.html#1168 and I created 3 new fields.

jos_muscol_artists.country - varchar(255)
jos_muscol_artists.country_id - int(3)
jos_muscol_albums.genericinfo - mediumtext

In the first one I store the origin country of the artist
In the second one the country id (I have created another table with countries - I want to have the country flag next to the artist name)
In the third one I store general info about the album like producer, line-up, guest musicians etc etc

All of then work fine in the frontend and backend but ...

the last one (mediumtext) does not store the html code (paragraphs, font formating etc etc)

I used the review fieldset so there is the RT Editor in the backend and changed the var name from review to genericinfo. Is there any other setting for that? I mean to store the html formatting?

Thanks in advance
Dimitris
Responses (2)
  • Accepted Answer

    Thursday, July 30 2009, 10:00 AM - #Permalink
    0
    open administrator/components/com_muscol/models/album.php

    on line 245 you find this:

    $data['review'] = JRequest::getVar('review', '', 'post', 'string', JREQUEST_ALLOWRAW);

    if you added the variable "genericinfo", then you have to add this line of code below the previous one:

    $data['genericinfo'] = JRequest::getVar('genericinfo', '', 'post', 'string', JREQUEST_ALLOWRAW);

    and that's all. cool huh? ;)
    The reply is currently minimized Show
  • Accepted Answer

    Dimitris
    Dimitris
    Offline
    Thursday, July 30 2009, 10:08 AM - #Permalink
    0
    super ... thanks :)
    The reply is currently minimized Show
Your Reply