3

This information does exist in the frontend model, but for whatever reason, isn't actually displayed. Copy /components/com_users/views/profile/tmpl/default_core.php to you template directory, so /templates/yourtemplate/html/com_users/profile/default_core.php and then in said template, you can dump the data object which will show all of the above, and more. ...


3

Toolbar isn't really supported in frontend. In backend it's rendered by mod_toolbar module which is only available in backend. You can still render the toolbar in frontend using this code but it may not necessarily work correctly: echo Joomla\CMS\Toolbar\Toolbar::getInstance('toolbar')->render('toolbar');


2

Personally I wouldn't use a .css.php file. The following assumes you WON'T be supporting Internet Explorer and I will be answering your question about CSS filters. The grid/masonry can be asked as a separate question. So, let's say you want to set a CSS filter (grayscale) and the percentage is set dynamically. You firstly want to have the following CSS file (...


2

So to get it from global configuration set in configuration.php from anywhere within Joomla component, plugins, modules and templates you would use: $config = JFactory::getConfig(); $siteName = $config->get('sitename', 'No Site Name Specified'); OR $siteName = JFactory::getConfig()->get('sitename', 'No Site Name Specified'); You can also use name ...


1

I'm assuming that since you're asking about SEF URLs for your component that you've already built your own custom router (as SEF URLs for a custom component are dependent upon that). If not then you can follow the example described in https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_alias and following tutorial steps. If you've done that ...


1

I consider this a very valuable question that does not have good write-ups/tutorials yet in Joomla documents (we should create one). I am trying to give here some workable info on this. Loading Form Fields using Joomla implemented show-on conditions is not for loading dynamically changing checkboxes, list or combo field's values and fields. For loading Form ...


1

First of all you may well be able to use the Joomla SQL Form Field for your Job Title field, instead of having to write a custom field. To make the Technologies dropdown dependent upon the Job Title field you may be able to use the showon attribute as described in Enabling showon to work in list options. In your Technologies custom field you'd have to select ...


1

I feel so silly...I just forgot to change the version of the component in the XML mainfest file from 1.9 to 1.9.1. If you are running into the same trouble don't forget to change the version of your component in your component's mainfest XML file. <version>Updated_version_of_your_component</version> I had this: <name>COM_GALLERY</...


1

First of all, you're using different file structure and class naming conventions than Joomla! core. This won't work without rewriting related methods such as controller's getView(). That said, using standard naming conventions, I was able to get this to work by setting base_path option when fetching the controller in component's entry file: $controller = ...


1

See the documentation for Adding Configuration Parameters. This then makes your configuration parameters available via the params, these can be obtained anywhere using the JComponentHelper class or via your own method. Example: JComponentHelper::getParams('com_your_component')->get('yourcustomfield', 'a-fallback-value'); As an alternative, you can create ...


1

I think you are aware, that you can create hooks on install process. E.g. https://docs.joomla.org/J2.5:Managing_Component_Updates_(Script.php) https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file Here is my approach, where I after install publish plugin as an example https://github.com/gruz/NotificationAry/blob/...


1

I developed and mantain the Frontend User Manager extension that can show exactly that listing in the frontpage. The current 0.0.6 stable release does exactly that and if you need user management in the front you can give a try to the 0.1.0alpha13 release.


1

I have been fighting the same problem for two full days now, going over lesson 10 of Robbie Jacksons excellent video explanations in this series https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component again and again. In lesson 10 he tries out his own alternative approach and he comes up with this redirect in his subcontroller ...


1

In the end I didn't find a way to do this through mocking, but it is very simple to implement a class that does everything I need from the logger: class JLog { const DEBUG = 5; const INFO = 4; const WARNING = 3; const ERROR = 2; private static $messages; public static function add( $message, $level, $report ) { if (!self::$...


1

Thanks to @Lodder for providing the code below which is very helpful <?php defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Http\HttpFactory; use Joomla\Registry\Registry; class ModFooHelper { public function __construct() { $this->baseurl = 'https://www.eventbriteapi.com/v3/users/me/events?token=mytoken'; } ...


Only top voted, non community-wiki answers of a minimum length are eligible