[Solved] Version 2.6 theme install.xml

[Solved] Version 2.6 theme install.xml

by José Puente Fuentes -
Number of replies: 5

Hi, 

I have seen some themes that include install. xml to create database tables,  but i try to do that and nothing is created... 

Is it required other config to do it? 


Thanks in advance

Regards

(Edited by Gareth J Barnard - original submission Wednesday, 19 November 2014, 6:40 PM) - Added [Solved] to title.

Average of ratings: -
In reply to José Puente Fuentes

Re: Version 2.6 theme install.xml

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In reply to Tim Hunt

Re: Version 2.6 theme install.xml

by José Puente Fuentes -
The config is the same that i used in plugins that work fine...db/install. xml,  etc... But in theme doesnt work
In reply to José Puente Fuentes

Re: Version 2.6 theme install.xml

by Danny Wahl -

I believe that themes are exempted from install.xml and (upgrade.php) because they can't define their own schema, they can only leverage admin_configsetting API.  Or something like that...

here's the only relevant doc I can find:

https://docs.moodle.org/dev/Adding_theme_upgrade_code

which I believe is now unnecessary, unfortunately I can't find a discussion about it.

In reply to Danny Wahl

Re: Version 2.6 theme install.xml

by José Puente Fuentes -
thank you very much Danny,
I see my problem...i didn't uninstall the theme previously to reinstall it, so database doesn't create new tables.

I would like to mark thic topis as solved but i can find how to do it!