How to use PHP Function arguments (or input value) in dynamic get? #654
-
hi note: I see the "dynamicGet" and "Adding dynamicGet to a Site View" tutorials but i can not understand how to do that. somthing about FunctionVar in the filter and Global is exist in the tutorial but i don't know how to use it. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Best to look at JCB demo components to understand the initial options available. So get the Sermon Distributor JCB package and look at its dynamic get usage. Further I can tell you that going beyond the default use require custom coding. Not that hard though and very easy if you know what is happening in the model at the time of the query. But with regards to an url like this |
Beta Was this translation helpful? Give feedback.
-
thank you @Llewellynvdm
to get records from my component table. for example get my course, and my course ids get with webservice and need to input to getCourses($ids) function as you see. how to implement this? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
very thank you @Llewellynvdm |
Beta Was this translation helpful? Give feedback.
-
@Llewellynvdm how to access $params variable in data.php which is accessible in mod_modulename.php of module? |
Beta Was this translation helpful? Give feedback.
You can do something like this:
Then you can have a one liner like this:
Reality is you can also do the following, to check your input value:
Then use this query option:
These are possible ways that it can be done, really the freedom here is very powerful.