Invitation Template Override


  • Default avatar
    eliot6    
     9 years ago
    0

    Hi Seyi

    Joomla 2.5.28

    I'm trying to use template overrides to override the invitation view for AwoRewards. I've created a copy of the \components\com_aworewards\views\invitation\tmpl\default.php file under \templates\template_name\html\com_aworewards\invitation\directory but it doesn't seem to use it or at least I cant see where to change what I want to change.

    What I'm trying to do is add a class to the submit button for a Follow Us on Twitter promotion.

    Hope you can advise

    regards
    Eliot
  • Your avatar
    seyi    
     9 years ago
    0

    Hello,

    That would be a joomla issue. If you added it to the override folder in the correct template, then it should override. Maybe you are just not changing the right code? Looking at the file, the submit button is basically at the very end,this line:
                    <input type="submit" value="<?php echo $this->plg_invites[$invite_type]['label']; ?>" />


    It is the submit button for email/facebook/twitter. So to get it to work for just twitter, you would have to use an if statement:
    if($invite_type=='twitter')

    The above code is for AwoRewards 2.2.0 and up.
  • Default avatar
    eliot6    
     9 years ago
    0

    Hi Seyi,

    There's nothing in between your 'code' tags ?

    regards
    Eliot
  • Your avatar
    seyi    
     9 years ago
    0

    fixed