• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Adding element values to a link

Status
Not open for further replies.

Sadler

Member
Hi,

sorry if this has been covered before but just wanting to get some help on how to tackle an issue within Fabrik.

I want my users to be able to do a search and view records in list view then click on a link and have the field values for the record added to the link url. Is there an easy way to do this?

Cheers

Carl
 
hi Carl

This is indeed possible. There are three ways you might go about this. Whichever option chosen you will be making use of Fabrik placeholders, these are strings that Fabrik replaces with the current list's rows data. They take the format .

{tablename___elementname}

Eg if your list saves to the database table 'students' and you want to access the data stored in the field 'name' your placeholder would be

{students___name}

So an example url you might be using may look like this:

http://mysite.com?studentName={students___name}&studentAge={students___age}

You can read more about placeholders here http://fabrikar.com/forums/index.php?wiki/placeholders/

So on to the three possible optins:

1 - List custom edit/details link

If you want to replace the list's default edit/view details links with your custom link then edit the list in question.
Go to the section: >details > links
In either the "Custom edit url" or the "Custom detail url" enter the url you wish to use

2 - Element custom link

If you wish to assign a link to an existing element then :
Edit the element in question
Go to the section: > List view settings > list settings
Enter the link in the "Custom link" field.

Note a possible advantage of this method is that you can optionally show this link in the details view as well, by enabling the "Custom link in details" option which is just below this field.

3 Create a link element;

This will create a new link element (http://fabrikar.com/forums/index.php?wiki/link-element/), which you can set a default label and url for. You would also need to set the elements access level so that the front end user would only ever see a read only version of the element. Again the default url can make use of placeholders enabling you to create unique URLs per row;
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top