By Andy on Monday, 28 May 2018
Posted in Technical Issues
Likes 0
Views 568
Votes 0
I'm trying to create a module which will sit on my EasySocial group pages and use a PHP query that needs to use the GroupID number.

Is there a PHP code I can use to dynamically get the GroupID number of the group that is currently being viewed?

Thanks!
Hi Andy,

You can try to use this and see how it goes?

JRequest::getVar('id');

Where it will get the current id for the page that you currently view
·
Monday, 28 May 2018 10:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect! Thank you.
·
Monday, 28 May 2018 23:55
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Tuesday, 29 May 2018 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post