Forum

Plugin for Weblinks

More
3 years 10 months ago #32 by Pavlos
Plugin for Weblinks was created by Pavlos
Hello,

I just installed JC Tables and tried to create a plugin which by selecting a row, opens a new tab in a URL which is the value of a field of the master table.


In my (site) database I have the string type field named [extern_file] in a table where I have stored a URL address. I cannot find the way to create a plugin (click or custom button) with which the user will go to the url address contained in this field for the selected row. For example for record with id=1 I wanna go to -> bit.ly/3TxAmS8 .

Thanks in advance

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #33 by JoomCode Admin
Replied by JoomCode Admin on topic Plugin for Weblinks
Hi Pavlos,

This can be done in 2 ways.....

1) Use a Custom Plugin, using the following config params if you want to pass your id field to the new url......

{
  "url":"https://myexternalurl.com?id=##row.id##"
}

    or in your case......

}
  "url":"bit.ly/3TxAmS8"
}


     Set the PluginType to eg: : "Row"
     Set the Label to eg: : "View my Invoice"
     Set the Icon to "view.png" or any url you might want to use.
     Set the Target  to "New Tab"

     View Custom Plugin WikiDoc

2) or You can use a LINK field formatter in your table setup......

{title:"External File",
field:"extern_file",
formatter:"link",
formatterParams:{
label:"View",
target:"_blank",
}
}


    View formatter options


regards
Paul

 

Please Log in or Create an account to join the conversation.

Time to create page: 0.260 seconds