Focusplus Developments Joomla Blog Page
Converting components from Joomla 2.5 to Joomla 3.n. PDF Print E-mail
Monday, 07 October 2013 00:00

Below is a list of some of the things that need changing to do the conversions.

General:-

  • The installer XML manifest file needs several changes. Eg:-

-  1. extension type="component" method="upgrade" version="1.6.0" changing to:- extension type="component" method="upgrade" version="3.0"

-  2. version number, obviously.

- 3. lines like:- link="option=com_recruitmentmanager&task=clientlist" changing to:- task="clientlist". Don't ask me why!

  • admin.recruitmentmanager.php needed changing to recruitmentmanager.php, else Joomla wouldn't find the admin component!
  • Every line similar to:- casino spiele         $dbhost = $conf->getValue('config.host'); changing to:-         $dbhost = $conf->get('host');
    (Frontend and backend.)
  • In the admin system, the line:- $document->setTitle($pagetitle); doesn't seem to work like it used to. (Doesn't change the content of the title bar.) Had to change all lines like this:- JToolBarHelper::title( JText::_( $functiontitle ), 'cpanel.png' ); to:- JToolBarHelper::title( JText::_('RAM_ADMIN_MAIN_HEADING') . ' - ' . JText::_( $functiontitle ), 'cpanel.png' );

 

Think that's about it!

 


Last Updated on Monday, 11 August 2014 09:25
 
Adding a 'Permissions' tab to your global parameters in Joomla 1.6+ PDF Print E-mail
Thursday, 19 July 2012 12:25

Create an access.xml file in your admin folder:-

<?xml version="1.0" encoding="utf-8"?>
<access component="com_recruitmentmanager">
<section name="component">
<!-- Joomla! core privileges -->
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
<action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" />
<action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" />
<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />
<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" />
</section>
</access>

Don't forget to add:-             <filename>access.xml</filename>
to your xml manifest file in the appropriate place.

Then add this to the config.xml file in your admin folder:-
<fieldset name="permissions" label="JCONFIG_PERMISSIONS_LABEL" description="JCONFIG_PERMISSIONS_DESC">
<field
name="rules"
type="rules"
label="JCONFIG_PERMISSIONS_LABEL"
class="inputbox"
filter="rules"
validate="rules"
component="com_recruitmentmanager"
section="component" />
</fieldset>

Then install your updated component...

 

Last Updated on Thursday, 19 July 2012 12:34
 
«StartPrev123NextEnd»

Page 1 of 3

 


 

ukash