Hello, I am developing a system for a client with Joomla 5 + Sp Page Builder. The client only has access to the system via frontend and I would like to create a function so that he can change the home page template via the frontend itself.
I believe it is possible via JDatabase, but I do not have the knowledge to do so.
The default menu for the home page would be this:
The final ID would be that of the page created in Sp Page Builder, I would need to create a function via frontend that would change this value from 1 to 2, 3, 4, 5... depending on which layout the client chose.
Would this be possible?
I do not want to have to install any extensions on my Joomla, since the companies do not seem to be providing the necessary support for updates, I only have 2 reliable components installed that meet everything I need.
Thank you in advance.
I believe it is possible via JDatabase, but I do not have the knowledge to do so.
The default menu for the home page would be this:
Code:
index.php?option=com_sppagebuilder&view=page&id=1
Would this be possible?
I do not want to have to install any extensions on my Joomla, since the companies do not seem to be providing the necessary support for updates, I only have 2 reliable components installed that meet everything I need.
Thank you in advance.
Statistics: Posted by cropots — Thu Sep 26, 2024 5:28 pm