Flag of the country on the artist page

0
It would be a usability display in the field "artist country" is appropriate flag.

The ideal option would be to make the drop-down list in the artists Control Panel, but this requires additional programming and may be implemented in future versions MC.

I would like to insert in the "country" html-code, but data is not stored.

I tried to add
 $data['country'] = JRequest::getVar('country', '', 'post', 'string', JREQUEST_ALLOWHTML);


in /administrator/components/com_muscol/models/artist.php

after line 112

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


- the same result.

Tell me, what changes are necessary to keep the html code? B)

P.S. If you write to the database, bypassing the admin result
will be

The data will be lost with any change in viewing this performer in admin.
Responses (4)
  • Accepted Answer

    Thursday, August 25 2011, 08:20 AM - #Permalink
    0
    JREQUEST_ALLOWRAW

    not JREQUEST_ALLOWHTML!! (that does not exist I believe... you made it up! ;)

    Germi

    PS: did you receive the email I send you some days ago.. ? :) ;)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 25 2011, 08:25 AM - #Permalink
    0
    So I tried too - nothing...

    P.S. See e-mail now
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 25 2011, 08:27 AM - #Permalink
    0
    nothing? also, the country field is a text field.

    you may want to convert it to a TEXTAREA field... (views/artists/tmpl/form.php)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 25 2011, 08:35 AM - #Permalink
    0
    line 106 in views/artist/tmpl/form.php

    class="text_area" type="text"

    I replaced by type="textarea"

     $data['country'] = JRequest::getVar('country', '', 'post', 'string', JREQUEST_ALLOWHTML);


    in /administrator/components/com_muscol/models/artist.php

    Everything works! :woohoo:

    But!!! :angry: After closing the form data is lost, there is only img src=

    The full code line 106 in views/artist/tmpl/form.php

    class="text_area" type="text"

    I replaced by

    artist->country;?>


     $data['country'] = JRequest::getVar('country', '', 'post', 'string', JREQUEST_ALLOWHTML);


    in /administrator/components/com_muscol/models/artist.php

    Everything works! :woohoo:
    The reply is currently minimized Show
Your Reply