1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

Ajaxify links Yes No

Discussion in 'Community' started by teoyh, Sep 15, 2021.

  1. teoyh

    teoyh Member

    Level: Community
    Hi can i check if we are able to control Ajaxify links during runtime

    If the referer url is from another address then Ajaxify links = no but if the referer url is the same as the list address then Ajaxify links = yes
     
  2. juuser

    juuser Well-Known Member

    Level: Community
    Which link do you mean exactly - element custom link, edit-link in list?

    How does your workflow look like in terms of "referer url is from another address"?
     
  3. teoyh

    teoyh Member

    Level: Community
    i have am referring to the edit-link in list which i had set it to open in popup

    For some reason i am not able to run list php plugin in popup window
     
  4. juuser

    juuser Well-Known Member

    Level: Community
    It would be good to get the php plugin run properly rather than making this kind of workaround.

    Of course you could e.g. replace list edit button with your own, then get the document.referrer and depending on that have either regular link or Fabriks modal link on your buttons click event.

    The code could be in list_xx.js
     
  5. teoyh

    teoyh Member

    Level: Community
    I had check there is no list_xx.js put in place for that list is that any where that i can check ?
     
  6. juuser

    juuser Well-Known Member

    Level: Community
    teoyh likes this.
  7. teoyh

    teoyh Member

    Level: Community
  8. teoyh

    teoyh Member

    Level: Community
    Ok i eventually figure out just need to add the following to the template default.php
    defined('_JEXEC') or die('Restricted access');
    FabrikHelperHTML::script(FabrikHelperHTML::framework());
    FabrikHelperHTML::iniRequireJS();
    FabrikHelperHTML::windows('a.myFabWin');

    then in the body content ;
    i just add the href
    echo '<a href="www.iluvfabrik.com" class="myFabWin" >Click here</a>';
     

Share This Page