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

Filtering list problem with content plugin

Discussion in 'Community' started by dimoss, Mar 15, 2019.

  1. dimoss

    dimoss Well-Known Member

    Level: Community
    Hi

    Using the info from the wiki article at: http://fabrikar.com/forums/index.php?wiki/content-plugin/#accessing-url-parameters I created an article adding the following:

    Code (Text):
    {fabrik view=list id=17 fab_entries_na___assoc=[param1]}
    where param1 taking values from 'fab_entries_na___assoc' element

    However although I can see the full list with all the records, the URL filtering it doesn't work or I do something wrong

    For example:
    http://demo.alfaweb.gr/index.php?option=com_content&view=article&id=15&Itemid=155&param1=GRE
    http://demo.alfaweb.gr/index.php?option=com_content&view=article&id=15&Itemid=155&param1=GER

    return all records while it shouldn't

    I have also tried to put single quotes with no success.
     
  2. dimoss

    dimoss Well-Known Member

    Level: Community
    Finally it was my mistake as the element name was from another list by accident :-(
    Thanks Troester!
     
  3. dimoss

    dimoss Well-Known Member

    Level: Community
    @troester I fixed the problem in URL and now the list is working fine with the param1 as filtering as u can see at:

    http://demo.alfaweb.gr/index.php?option=com_content&view=article&id=15&Itemid=155&param1=GRE
    http://demo.alfaweb.gr/index.php?option=com_content&view=article&id=15&Itemid=155&param1=GER

    However I discovered that param1 value is not passing when I want to print or to make pdf and the link is:

    http://demo.alfaweb.gr/index.php?op...l=component&print=1&layout=default&Itemid=155

    which returns nothing to print obviously because the &param1 value is missing.

    Any idea how to fix this?

    Thanks!
     
  4. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Yeah, we build the PDF link programatically, and don't add in random query string values from the loading page. Which is to be expected ... links generated on a page don't usually include anything from the query string of the page they are being built on.

    We work round this in, for example, CSV export links, by having the "Additional Query String" setting in the CSV settings, which lets you tell Fabrik to include some additional stuff on the query string for the CSV export link.

    I'd have to do the same for PDF, and add an "Additional Query String" option for PDF links.

    -- hugh
     
  5. dimoss

    dimoss Well-Known Member

    Level: Community
    Thanks Hugh.
     
  6. troester

    troester Well-Known Member Staff Member

    Level: Community
    You are using Joomla Print/Phoca PDF buttons (see our discussion).
    So a modification on Fabrik PDF button won't help.

    You can't use Fabrik PDF and Phoca PDF on the same site, so yes, Fabrik PDF won't do.

    Maybe you can override the Joomla buttons and add somehow the additional parameter.
    https://www.joomlashack.com/blog/joomla/layout-overrides/
     
  7. dimoss

    dimoss Well-Known Member

    Level: Community
    Thanks Troester.
    I will try as u proposed.
     

Share This Page