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

Call to article (content plugin) from list buttons

Discussion in 'Community' started by mariluzrm, Jan 13, 2021.

  1. mariluzrm

    mariluzrm Member

    Level: Community
    I have an article with a form and a list (list_2) related to the form.

    The form is from a record of a table and the list are records from another table related to the first table (1: N relationship of the two tables)

    I know how to call the article from the menu, but how can I call this article from a list buttons (list_1) (Edit button and View button) instead of the default list form?

    Thank you
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    You can add custom add/edit/view links in the list setting "Links"
     
  3. mariluzrm

    mariluzrm Member

    Level: Community
    Thanks.

    I have written in "Custom edit URL":
    index.php?option=com_content&view=article&id=1

    And I have written in the article:

    {fabrik view=form id=1 rowid=????}

    But how do I pass the rowid of the list ?

    Thank you
     
  4. mariluzrm

    mariluzrm Member

    Level: Community
    I've tried this but it doesn't work either:

    I have written in "Custom edit URL":
    index.php?option=com_content&view=article&id=1&param1={rowid}

    And I have written in the article:
    {fabrik view=form id=1 rowid=[param1]}

    Doesn't work. Something must be wrong.
     
  5. troester

    troester Well-Known Member Staff Member

    Level: Community
    This should do. What do you get as URL?
    Make sure you don't have any formatting or additional spaces inside {} (check with HTML editor).
     
  6. mariluzrm

    mariluzrm Member

    Level: Community
  7. troester

    troester Well-Known Member Staff Member

    Level: Community
    Try with SEO settings off in Joomla configuration.

    Does it display an empty Fabrik form (i.e. no rowid)?
    Did you
     
  8. mariluzrm

    mariluzrm Member

    Level: Community
    Does it display an empty Fabrik form (i.e. no rowid)? --> No, the form is not displayed

    With SEO setting off it works, but:

    There are changes in URLs:

    For example: Link from the menu to a list (add Itemid=110):

    SEO On: http://localhost/sgp/index.php/estructuras

    SEO Off: http://localhost/sgp/index.php?option=com_fabrik&view=list&listid=1&Itemid=110

    And to access the article add Itemid=101:

    http://localhost/sgp/index.php?option=com_content&view=article&id=1&param1=2&Itemid=101

    en lugar de:

    http://localhost/sgp/index.php?option=com_content&view=article&id=1&param1=2

    Why? I don't understand these changes in the URLs

    Thanks
     

Share This Page