• 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.

Form article plugin: custom link to article

schacke

Member
I tried to use the {readmore} in the custom detail URL in the list. But that didn't seem to work. How do I link to the generated articles from the list view?
 
A Fabrik record with article plugin can belong to multiple articles (with identical content) if you select multiple categories.

Assuming you have only one category
The article id is in your Reference element in a JSON string {"catid":"articleid"}.
So you could add a calc element and "Retrieving data from complex elements"
http://fabrikar.com/forums/index.php?wiki/calculation-element/

Something like
$ref = FabrikWorker::JSONtoData($data['your-ref-element'], true);
if (empty($ref)) {
///do something
}
else {
$myid = current($ref);
return '<a....';//build your link
}
 
Okay - thank you. Maybe the answer is a little bit out of my leage, but I'll give it a try :) So I kan only link from the calc element and not from an image (nor from the list settings)?
 
Link from list view:
set calc to display in the list (and title to not display; if you got it working you may the calc set to "hidden" to hide it in the form/details view)
You can display an image with the link, just put it into the <a tag

return '<a href = "index.php?option=com_content&view=article&id=' . $myid . '&Itemid=X"> <img scr="your-image-path"></a>';

set X to your menu item id
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top