Categories
CMS Joomla Mastering Development

Joomla Router JComponentRouterView does not work

I have read https://docs.joomla.org/Supporting_SEF_URLs_in_your_component and looked at examples, i try to use in my component but something does not work: My router is: <?php // No direct access defined(‘_JEXEC’) or die; JLoader::registerPrefix(‘Courses’, JPATH_SITE . ‘/components/com_courses/’); class CoursesRouter extends JComponentRouterView { public function __construct($app = null, $menu = null) { $schoolscategory = new JComponentRouterViewconfiguration(‘schoolscategory’); $schoolscategory->setKey(‘id’); $this->registerView($schoolscategory); […]

Categories
CMS Joomla Mastering Development

Update Joomla Site With FTP From Admin Panel

I just set-up a VPS and installed Joomla. Now I need to update. When I click on the update button, and I try to do it through FTP I get this error message JFTP: :connect: Could not connect to host ‘ sftp://XXX.XXX.XXX.XX ‘ on port ‘ 21 ‘ File Checksum Failed I have valid credentials […]

Categories
CMS Joomla Mastering Development

How can I create a custom list formfield from json

I need to create a custom formfield like so: https://docs.joomla.org/Creating_a_custom_form_field_type But the data I want to populate the list with is in a json file. So I can’t really do a PHP for each, or if I do, I need to somehow do a JS for each at the same time. Any advice you can […]

Categories
CMS Joomla Mastering Development

Update List field rendering after ajax update

for one of my extensions i need to update a select list by ajax. the whole ajax call is working and i got the new option vars for the select list. I add those options in the ajax’s “success” function like so: jQuery(‘select#jform_identificator’).append(new Option(“label”, “value”)); this part is ok, if i check the source code […]

Categories
CMS Joomla Mastering Development

Can I use Joomla for two seperate websites?

I use Joomla for my work website and like it but I want to move my personal website to Joomla. I initially registered my website through NameCheap.com and tried using their Website Builder but their templates can’t do what I know I can do in Joomla. At this point, I’m willing to start over (don’t […]

Categories
CMS Joomla Mastering Development

joomla returning invalid fields for user registration

I’ve added in custom fields for joomla registration, however it’s returning them as Invalid Fields? $requestData = $this->input->post->get(‘jform’, array(), ‘array’); echo ‘<pre>’;print_r($requestData);echo ‘</pre>’; Array ( [name] => testing [username] => testing [password1] => testing [password2] => testing [email1] => testing@testing.com [email2] => testing@testing.com [com_fields] => Array ( [country] => Australia [australian-state] => Victoria [are-you-a] => […]

Categories
CMS Joomla Mastering Development

Select query with FOR UPDATE

I am trying to select a record from a database and lock that for update. How do I do that? I got the below query. $query->select($this->_db->quoteName(‘jo.job_id’)); $query->from($this->_db->quoteName(‘#__jsch_job’).’ as jo’); $query->where($this->_db->quoteName(‘jo.published’).’=’.$this->_db->quote(“1”)); $query->where($this->_db->quoteName(‘jo.job_status’).’=’.$this->_db->quote(“Ready”)); $query->order($this->_db->quoteName(‘jo.ordering’).’ ASC’); $query->setLimit(‘1′); Where should I add ‘FOR UPDATE’ in the above query?

Categories
CMS Joomla Mastering Development

How to set article options and associations programmatically?

I work on a custom Joomla 3 module that creates articles programmatically based on user input. I can create the articles, but I could not find a way to set the article options and associations when the article is created. I found this article on where the options are stored in the Joomla DB, but […]

Categories
CMS Joomla Mastering Development

0 String could not be parsed as XML is not let me to admin my joomla sit? what i must to do? thank you

when i installed jomsocial extension it remained under this page and is locked. how can i resolve this problem? i saw that i must unistall my jomsocial ??how? i must drive or upgrate my joomla version. how??

Categories
CMS Joomla Mastering Development

0 String could not be parsed as XML is not let me to admin my joomla sit? what i must to do? thank you

when i installed jomsocial extension it remained under this page and is locked. how can i resolve this problem? i saw that i must unistall my jomsocial ??how? i must drive or upgrate my joomla version. how??