Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1427

Joomla! 4.x Coding • Requesting URL parameter variable

$
0
0
Our Joomla 3 site successfully used this code inside a module using RegularLabs 'Sourcerer' plugin shortcode to retrieve a value from the URL. It appears to be failing for Joomla 4. Does the following code, placed inside a Module seem incorrect for Joomla 4?

Code:

{source}<?php   $ucg_coverimage = JRequest::getVar('CoverImage');    echo $ucg_coverimage;?>{/source}
If not, what's the best PHP code for retrieving a URL parameter string value in Joomla 4?

Thanks,
Geoff

Statistics: Posted by gmrob — Wed Jul 03, 2024 4:08 am



Viewing all articles
Browse latest Browse all 1427

Trending Articles