A quick article on a frequent question I get asked. This refers to an issue within the Joomla CMS (version 2.5.x) where it fails to email users who reset their password.
A few things to check:
Basic Query - 1 result
- $db = JFactory::getDBO();
- $query = "
- SELECT ".$db->nameQuote('field_name')."
- FROM ".$db->nameQuote('#__my_table')."
- WHERE ".$db->nameQuote('some_name')." = ".$db->quote($some_value);
- $result = $db->loadResult();
- -- $result = value of field_name
Quick article here as googling/binging for how to refer to Joomla articles after versions 1.5.x wasn't obvious. This article is to demonstrate how to write the webaddress for a Joomla article even when you have Search-engine-friendly website addresses enabled.
Basically you have to include &view=article as opposed to Joomla v1.5.x when the option and id parameters would suffice:
- - SEF URL
- - Direct Link (irrespective of SEF)
I'm building a Joomla component which is to be compatible with Joomla versions 1.6.x to 2.5.x. Because I use dynamic scripts running in the background (mootools), some of these need to connect to the database but as they sit outside of the MVC structure, we need them to use the existing configuration file in order to retrieve the credentials (ie. username, password, database, etc.). For obvious reasons, these cannot be hardcoded.
Trying to make a component and can't remember how to store HTML code when the save command is clicked (ie. submitted from a PHP form). This is for the Opensource Content Management System (CMS - phew what a mouthful) Joomla! version 1.6.x to 2.5.x; no wonder customers have difficulty following.
So it's the field on the XML file /models/forms/whatever.xml which needs the filter=raw attribute, for example:
- <field name="item_desc" type="editor" filter="raw" rows="15" cols="40" default="" />
- Stripping HTML from my joomla 2.5 component
- Leave my HTML alone for admins
- field types for Joomla 1.6