Terry Carter
  • Member for 5 years, 11 months
  • Last seen more than a week ago
Joomla 3 - use article title as browser Page title with the menu item title
Accepted answer
5 votes

Here is the simple answer for you. <?php $menu = JSite::getMenu()->getActive(); //SET THE PAGE TITLE $doc= JFactory::getDocument(); $doc->setTitle($menu->title.' - '.$this->item-&...

View answer
Model / View pulling data from external API(s)
Accepted answer
5 votes

You can actually do it either way depending on which method you prefer. The way you are currently calling the functions in the view.html.php file is fairly common but you can also call those functions ...

View answer
Problem to get cookies at the remote server
4 votes

Below should work for you. This was taken from [This Answer][1] //GET JOOMLA COOKIES $inputCookie = JFactory::getApplication()->input->cookie; //GET SPECIFIC COOKIES DATA $value = $...

View answer
Send mail on execute
Accepted answer
3 votes

To use JMailer it is pretty simple. The code below should work for you. Just change the appropriate email address and name sections to get it to work. $subject = "New User Signup"; $msg = "New user"...

View answer
What is the best way to create REST/SOAP/JSON Web Services for Joomla?
3 votes

Create a new php file (webapi.php) and save it to the root of your site. Add in the required files to access the Joomla Framework like so: //ALLOW DIRECT ACCESS define('_JEXEC', 1); require_once $...

View answer
How to rewrite JText to get my custom text translations from Database and not from files
Accepted answer
3 votes

Instead of overwriting or modifying the JText class why not just write a function call function in your model that retrieves your translation from the database and return the string? Echo the string ...

View answer
JApplication::getCfg deprecated
Accepted answer
3 votes

This will get the config settings for you. $config = JFactory::getConfig(); echo 'Site name is ' . $config->get( 'sitename' );

View answer
Get user info and send email from button
Accepted answer
3 votes

Download Flexi Custom Code Module from the JED. Install the module and publish it to the position of your choice. Below the custom code box leave the option to use PHP on and disable the cleanup of ...

View answer
Creating new articles, suddenly a /2-uncategorised/ page is created with all these articles in a list
3 votes

Check to see if you have your SEF URLs turned on and configuration correct. By default you should be able to access the URLs you listed, that is the default Joomla routing kicking in. 2-uncategorised ...

View answer
How to get menu parameters and itemid in component controller
3 votes

Use the following: $menu =& JSite::getMenu(); $activeMenu = $menu->getActive(); $Itemid = $activeMenu->id; or $menu =& JSite::getMenu(); $activeMenu = $menu-&...

View answer
External Login Script and getDbo()
Accepted answer
2 votes

Create a simple ajax plugin that handles your user login logic and returns a message for your users. The following 2 files should be zipped together and installed on your site. userlogin.php <?...

View answer
How to write a query with a WHERE clause with two conditions?
Accepted answer
2 votes

Try this: $query->WHERE($db->quoteName('test_id').'= 1 AND '.$db->quoteName('user_id').'='. $user->id)

View answer
TLS Version for Joomla
Accepted answer
2 votes

The TLS version is controlled by the web server, it has nothing to do with Joomla. That is a secure connection method. Talk to your hosts and ask them to verify that you have TLS 1_2 enabled on your ...

View answer
custom table display - help turning static html to dynamic php
Accepted answer
2 votes

The jQuery function was operating against all elements with the assigned target class. The result of that was all dropdowns opening simultaneously. The resolution was to assign a unique ID to each of ...

View answer
Your list XML update URL failed, please check the XML file's structure
Accepted answer
2 votes

The XML Update URL is not the same thing as your UpdateServer XML Url. The JED has now provided an automated way of updating listings on the site by using there XML Update URL. The XML UPdate URL is a ...

View answer
Overwrite file on upload if file exists
2 votes

If I am interpreting what the developer did here correctly this may work for you. These changes should be made in the first code you posted. Add this code: jimport('joomla.filesystem.file'); Before ...

View answer
select data from several tables in one query - how to control JOIN?
Accepted answer
2 votes

Joomla doesn't handle subqueries very well since there is no real $query->subQuery method. In this instance it is easiest to format the query as a standard MySQL query and let Joomla process the ...

View answer
Component language file is coppied but does not work
2 votes

Try this: <languages folder="admin"> <language tag="en-GB">language/en-GB/en-GB.com_displaygroups.sys.ini</language> </languages> and remove <folder>language</...

View answer
Change ordering of loading css files in T3 template
2 votes

Hello Haris and welcome to JSE. The biggest problem you are going to have if you modify any of the template files in order to change the load order is that updating your template in the future will ...

View answer
How do I remove and/or change the 'name' field in the registration form so that I can ask for first and last name separately?
2 votes

Let me start by saying I do not condone this method, the next time you update Joomla there is a high probability you will undo these changes completely. This is however a working method to do what ...

View answer
Next/previous for Menu items
Accepted answer
2 votes

Download Flexi Custom Code Module from the JED and install it. Publish the module to whatever position on the page you want. Hide the module title. Disable clean css, clean, html and clean jscript. ...

View answer
Where to begin integrating a RESTful API into Joomla?
Accepted answer
2 votes

It sounds like the are just returning the data from the API in JSON format for you to do with as you please. My initial thought would be that you need to use something like cURL or AJAX to request the ...

View answer
com_users login redirect issue
2 votes

Create a hidden menu, add the login page to that menu and leave it set to public. Create a login module and set your redirect page with the module parameters. Publish the module and have the module ...

View answer
Calling category title params from a com_content
Accepted answer
2 votes

Here is a quick bit of code that will retrieve the category name for you. This code assumes that you are on an article page. <?php $JInput = JFactory::getApplication()->input; $articleId = $...

View answer
What are the JS dependencies of the Joomla frontend editor?
2 votes

If you are wanting to add in the additional editor features like images and whatnot there is more to it that just added the js files. Personally I would recommend using Joomla's native method of ...

View answer
How to customize user registration in Joomla 3.7?
1 votes

If you want an easy way to do it just install the Easy Profile component from the JED. It integrates with registration and with advanced fields in the user's profile which they may edit. I use it a ...

View answer
How can I have multiple layouts for a View that are available as a menu option such as &layout=xxx?
Accepted answer
1 votes

This may not be a 100% perfect approach to this, but it is the solution that I have used for years and it works with no issues. It will allow you to create individual menu items per layout as you ...

View answer
How to remember User State settings when returnng to a Site View?
Accepted answer
1 votes

It doesn't look like you are including the menu Itemid in your redirect which is why your URL is changing. Add another hidden field with the value of your current Itemid. Your redirect code is fine ...

View answer
Joomla backend not reflecting updated PHP version
1 votes

Look in your .htaccess file to see what version of PHP was added via cPanel. Depending on the host it is usually reflected in either .htaccess or a php.ini file in the root of your directory. Just ...

View answer
What does getApplication mean in Joomla?
Accepted answer
1 votes

According to the Joomla API reference manual getApplication returns the global CMSApplication object, only creating it if it doesn't already exist. Imagine getApplication calls the guts behind Joomla ...

View answer