Jump to content

Listing Resources Add-on - Allow only internal links (domain restriction)


Moiney

Recommended Posts

Hello !
 
I would like to use the ListingResources Add-on only for adding internal links.
More precisely for links to EasySocial groups (http://domain.com/group)
So the restriction would only be the domain of the link.
 
If the link is not correct. A red message would be displayed.
For example : "Please enter a valid link to a group."
 
I've got one answer on the Listing Resources section of the forum.
 
Kristian answered me this :

 

The add-on doesn't have any settings that would allow you to do this.

 

You would need to customize /com_jreviews_addons/listingresources/controllers/listingresources_controller.php file and write your own code for this validation inside the _save() method.

 

I'm not a developper. Is someone could help me write this code ?
 
Thank you.
6nema
Edited by 6nema
  • Like 1
Link to comment
  • 2 weeks later...
×
×
  • Create New...