We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Self page ID

Featured Lock Resolved Issue
Hi,

For custom addon, How do I get the ID of self page? in site.php page

Thank you in advance

8 Answers

Rifat Wahid Alif - Staff

More than a month ago #Permalink
Hi,
Use this code to get pagebuilder page id:

$input = JFactory::getApplication()->input;
$id = $input->get('id', ''); /* you will get page id in $id */


- Thanks

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
can you explain what you mean ? ID ?

You want to create a new, custom addon ?
--
Check how code of current addons look like.

Adem GENÇ

More than a month ago #Permalink
You want to create a new, custom addon ? Yes,

$selfpageid = ????;
		$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('hits');
$query->from($db->quoteName('#__sppagebuilder'));
$query->where($db->quoteName('id')." = ".$db->quote($selfpageid));

Paul Frankowski - Staff

More than a month ago #Permalink
Sorry for waiting. I redirected your question to our developer.

Adem GENÇ

More than a month ago #Permalink
Rifat Wahid Alif wrote:

Hi,
Use this code to get pagebuilder page id:

$input = JFactory::getApplication()->input;
$id = $input->get('id', ''); /* you will get page id in $id */


- Thanks

Worked
Thank you very much

Adem GENÇ

More than a month ago #Permalink
Rifat Wahid Alif wrote:

Hi,
Use this code to get pagebuilder page id:

$input = JFactory::getApplication()->input;
$id = $input->get('id', ''); /* you will get page id in $id */


- Thanks

Worked
Thank you very much

Rifat Wahid Alif - Staff

More than a month ago #Permalink
you are always welcome :)


There are no replies made for this post yet.
Be one of the first to reply to this post!

123

Templates

326984

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us