contributor

The Contributor may refer to: read more at WikiPedia

  • Schema Validation for Joomla 2.5 Extensions

    joomlalovexsd

    I’ve created from scratch, all Joomla extensions XSD.

    Without them, Joomla accept any entry in manifest xml and never complains about

    • Mistyping, like a valid xml but that the Joomla installer do not understand or only partially,
    • Wrong constructs, xml tag child misplaced,
    • Invalid data type, like a path not being a valid path, an expected integer being a text and so on…

    Joomla just silently die during install or install only partially extensions. These days are over as developers with any decent IDE will be able to validate while typing and enjoy auto completion. To use them now just include them in all your manifest like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <extension type="component" version="1.6" method="upgrade"
    xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/component.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    
    <?xml version="1.0" encoding="utf-8"?>
    <metafile version="1.6"  client="site"
    xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/language.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <?xml version="1.0" encoding="UTF-8"?>
    <extension type="module" version="1.6" client="site" method="upgrade"
    xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/module.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <?xml version="1.0" encoding="utf-8"?>
    <extension version="1.6" type="plugin" group="system" method="upgrade"
    xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/plugin.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <?xml version="1.0" encoding="utf-8"?>
    <extension version="1.6" type="template" method="upgrade"
    xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/templateDetails.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

     

    A Bug request https://github.com/joomla/joomla-cms/issues/838 as been opened in Joomla CMS GIT at https://github.com/joomla/joomla-cms/ for being included somewhere where it will make more sense, somewhere like at http://www.joomla.org/xds/2.5/plugins.xsd