Custom Module - Access List ID

automan25

Member
I've made a custom module to display the contents of a specific element relative to the list and record shown on the current page. Here is the code I'm using:

{fabrik view=element list=28 rowid=[rowid] element=my_list___name}

As you can see in this code, the list is identified by its specific ID and it works just fine that way.

Here's my question:
Is there a way to access the ID of the list associated with the record currently being displayed, just as the code seems to do with the rowid? I tried both of the following code snippets to no avail.:

{fabrik view=element list=[listid] rowid=[rowid] element=my_list___name}
{fabrik view=element listid=[listid] rowid=[rowid] element=my_list___name}
 
Depends what is on the URL. The [] syntax [picks up query string arguments. So if rowid=X is on the query string, you can use it.

-- hugh
 
I was able to get it working by using list=[formid], since most if not all forms and lists share the same id, this works out great.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top