By Fagault Eric on Saturday, 24 June 2017
Posted in General
Replies 7
Likes 0
Views 327
Votes 0
Hello,
In the module, "EasySocial Pages" I want to display the pages that the member owns, I can not do it, the module displays the pages that the member "likes".

How can I do ?

Best regards.
Eric
The module doesn't do that currently. You can customize it if you want by modifying the file /modules/mod_easysocial_pages/helper.php
·
Saturday, 24 June 2017 15:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Thank you for your reply,
In: /modules/mod_easysocial_pages/helper.php
1) I must add:
// Pages that you own
If ($ filter == 4) {
$ Options ['types'] = 'currentuser';
$ Options ['userid'] = $ my-> id;
$ Pages = $ model-> getPages ($ options);

I can not find the table or identify the ID information of the owner.


2) I have to add a filter I think then call it in the file?
To display it in the "Filter type" list?

I have to add the option, (in: mod_easysocial_pages.xml)
<Option value = "4"> MOD_EASYSOCIAL_PAGES_FILTER_LOGGED_IN_OWNER </ Option>


In the XML file:
<Field name = "filter" type = "list" class = "input-xxlarge" default = "0" label = "MOD_EASYSOCIAL_PAGES_FILTER_TYPE" description = "MOD_EASYSOCIAL_PAGES_FILTER_TYPE_DESC">
<Option value = "0"> MOD_EASYSOCIAL_PAGES_NO_FILTERING </ option>
<Option value = "1"> MOD_EASYSOCIAL_PAGES_FILTER_CATEGORY </ option>
<Option value = "2"> MOD_EASYSOCIAL_PAGES_FILTER_FEATURED </ option>
<Option value = "3"> MOD_EASYSOCIAL_PAGES_FILTER_LOGGED_IN_USER </ option>

<Option value = "4"> MOD_EASYSOCIAL_PAGES_FILTER_LOGGED_IN_OWNER </ Option>
</ Field>

Best regards.
Eric
·
Saturday, 24 June 2017 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it would be best to add a new filter option from the xml file, then this getPages() method is under this file -> JoomlaFolder/administrator/components/com_easysocial/models/pages.php , you can check on this method and see how we filter these.
·
Saturday, 24 June 2017 22:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post