1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

[solved] Add SEF slug to custom detail url

Discussion in 'Community' started by aijosh, Jan 11, 2019.

  1. aijosh

    aijosh Member

    Level: Community
    Hello,

    I have a list that is associated with a page but I want the detail view to be associated with another page so I created a custom detail url

    index.php?option=com_fabrik&view=details&formid=30&rowid={table___id}&Itemid=111

    The issue I'm having is I cant figure out a way to add the sef slug

    -Username

    to the link.

    I tried hardcoding the url
    page/details/{formid}/{rowid}-{table___username}

    Doesn't work. I get a strange looking url.

    PS: {rowid} is always null for me no matter where I use it. I dont know what happened to the {rowid} of my website. Its painful to work with. I usually pick the rowid from the current page's url which sometimes doesn't work correctly or is not possible (so I have to do a database call) and is not scalable.
     
  2. aijosh

    aijosh Member

    Level: Community
    So I kept tinkering around and ended up solving this

    index.php?option=com_fabrik&view=details&formid=30&rowid={table___id}-{table___username}&Itemid=111

    Didn't try this out initially cos I assumed the rowed would end up being incorrect singe there is a string in it but I guess I was wrong.
     

Share This Page