test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • timmieboy Friend
    #199768

    Hello,

    Is it possible to change the link of the favorit employer module with the small banners to thel ist of jobs of the employer instead of the employer details page.

    Thanks

    Thanh Nguyen Viet Friend
    #542808

    Hello,

    Yes, you can override template field of Featured Employer module to update that link as follows:
    – Override file below on your template
    modules/mod_jafeatured_employer/tmpl/default.php

    – Find the code line:
    [PHP]$url = JRoute::_(“index.php?option=com_jajobboard&view=japrofiles&layout=jaview&cid[]=”.$items[$i]->user_id_tmp.’&alias=’.$items[$i]->company2.’&Itemid=1000′);[/PHP]

    – And replace it with:
    [PHP]//$url = JRoute::_(“index.php?option=com_jajobboard&view=japrofiles&layout=jaview&cid[]=”.$items[$i]->user_id_tmp.’&alias=’.$items[$i]->company2.’&Itemid=1000′);
    $url = JRoute::_(‘index.php?option=com_jajobboard&view=jajobs&layout=myjobs&employerid=’.$items[$i]->user_id_tmp);[/PHP]

    timmieboy Friend
    #542827

    Thanks this work, only it shows the jobs again in a component url. I have changed the url with ‘index.php?option=’. JBCOMNAME .’ but that does not seems to work. I would be better if the url is related to job list so the module related to that menu item will show too.

    Thanh Nguyen Viet Friend
    #544136

    Hello,

    To do that, please replace mentioned code above with below one:

    [PHP]$url = JRoute::_(‘index.php?option=com_jajobboard&view=jajobs&layout=myjobs&employerid=’.$items[$i]->user_id_tmp.’&Itemid=’.JRequest::getInt(‘Itemid’));[/PHP]

    timmieboy Friend
    #546034

    Thank, but still not working, I still get this url: component/jajobboard/jajobs/myjobs?employerid=109 instead of the menu jobs url somthing like this: jobs/employerid-109 (or the name of the company)

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  timmieboy 10 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum