Go Joomla 1.6 with your extension - Joomla!Days NL 2010 #jd10nl

3,226 views

Published on

Published in: Technology
1 Comment
1 Like
Statistics
Notes
  • hi, I am trying to include a php file in the content with the help of jumi that shows all the id's of the subcategores
    but I keep getting
    JCategories Object ( [_nodes:protected] => [_checkedCategories:protected] => [_extension:protected] => c [_table:protected] => c [_field:protected] => c [_key:protected] => c [_statefield:protected] => c [_options:protected] => com_content )
    for my $categories = new JCategories('com_content');
    and I can't do anything with it can you help me?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
3,226
On SlideShare
0
From Embeds
0
Number of Embeds
42
Actions
Shares
0
Downloads
28
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Go Joomla 1.6 with your extension - Joomla!Days NL 2010 #jd10nl

  1. 1. <ul>How to get your <li>extension 1.6 ready
  2. 2. By Hannes Papenberg
  3. 3. Joomla! Release Manager </li></ul>
  4. 4. <ul>Do I need to change my extension? </ul><ul><li>Depends on the extension
  5. 5. All extensions need to update their language files
  6. 6. All extensions need to update their XML files
  7. 7. Extensions dependent on the old access system need to update </li></ul>
  8. 8. <ul>Language Changes </ul><ul>Why did we change this? <li>MASSIVE speed-improvement (50% faster)
  9. 9. What do you need to change?
  10. 10. Quote all values in the INIs
  11. 11. Keys should only contain Aa-Zz & 0-9
  12. 12. Quotes are escaped with „_QQ_“ </li></ul>
  13. 13. <ul>XML Changes </ul><ul>Why did we change this? <li>JParameter is deprecated, JForm is the future
  14. 14. What do you need to change?
  15. 15. Replace all <params> with <fields>
  16. 16. Replace all <param> with <field>
  17. 17. Use <fieldset> </li></ul>
  18. 18. <ul>Access System Changes </ul><ul>Why did we change this? <li>Isn't that obvious? ;-)
  19. 19. What do you need to change?
  20. 20. Change your queries from 'access < '.$gid to 'access IN ('.implode(',',$user->authorisedLevels()).')'
  21. 21. Implement access.xml and $user->authorise() </li></ul>
  22. 22. <ul>Make a native 1.6 extension </ul><ul><li>Use JForm for forms
  23. 23. Use JDatabaseQuery
  24. 24. Change your component entry file
  25. 25. Use JCategories for your category system
  26. 26. Move your assets to the /media folder
  27. 27. Create semantic, table-less output </li></ul>
  28. 28. <ul>Forms with JForm </ul><ul><li>Used to create dynamic forms
  29. 29. Provides easy way to create and extend forms
  30. 30. Good example: Backend of com_weblinks </li></ul>
  31. 31. <ul>JDatabaseQuery </ul><ul><li>SQL Querybuilding class
  32. 32. Database abstraction layer
  33. 33. Be one step ahead, be 1.7 compatible
  34. 34. Syntax: </li><ul><li>$query = $database->getQuery(true);
  35. 35. $query->select('*');
  36. 36. $query->from('#__table');
  37. 37. $query->where('id = 1');
  38. 38. $database->setQuery($query); </li></ul></ul>
  39. 39. <ul>Component entry file </ul><ul><li>All classes used and invoked in the core are overrideable – except the component controllers
  40. 40. Instead of require_once(JPATH_COMPONENT.'/controller.php') use jimport('joomla.application.component.controller') and $controller = JController::getInstance('Componentname') </li></ul>
  41. 41. <ul>JCategories </ul><ul><li>Class to simply handle your components categories
  42. 42. Create a /helpers/categories.php file with the configuration options
  43. 43. Syntax: </li><ul><li>$categories = Jcategories::getInstance('com_component');
  44. 44. $category = $categories->get($id);
  45. 45. $category->getChildren();
  46. 46. $category->getParent(); </li></ul></ul>
  47. 47. Assets in /media folder <ul><li>Make it possible to move your extension from the webroot
  48. 48. Use <media>-tag in install file
  49. 49. Use API-functions to access them: </li><ul><li>JHTML::image()
  50. 50. JHTML::stylesheet()
  51. 51. JHTML::script() </li></ul></ul>
  52. 52. Semantic, table-less output <ul>Ask Angie! ;-) </ul>
  53. 53. <ul>Questions? </ul>

×