Any guide on how to create a new template?

Hi

Being direct and straight to the point, i would be interested in a guide on how to create a template from scratch. I saw the wiki page and the "una-vendor-template", but there is no proper step by step guide on how to do it. I cannot even figure out on how to initialize and where to copy the "una-vendor-template".

Any help would be appreciated.

Thanks

  • 1177
  • More
Replies (5)
    • Ohh well. I started eidting Protean just to have an idea about things, but i will loose my edits with an upgrade. A child theme is possible or such? Must admit, it's not one of the intuitive structures out there.

      • Hello Creatives !

        First of all,  if you need to correct the styles of your template it's enough to make a mix from the current one. If you need to develop a new template from scratch then it's better to create:

        1) folder "your vendor's name" in UNA's modules directory (for example, "creatives")

        2) folder "your new template" name in creatives (for example, propane)

        Then copy the body of "protean" to this your new folder modules/creatives/propane.

        In all "new" files just replace the words "bx_protean", "Protean" and "BoonEx" to "bx_propane", "Propane" and "Creatives". Now you will get the own template where you may produce all your changes. Don't forget to look this manual too https://github.com/unaio/una-vendor-template 

        • Hi

          Thank you for the quick tutorial. Managed to create the theme but cannot install. Here's the error:

          There are errors in the following MySQL queries:
          Error: Duplicate entry 'Neat-Mix' for key 'name'
          INSERT INTO `sys_options_mixes` (`type`, `category`, `name`, `title`, `active`, `published`, `editable`) VALUES(@sName, '', 'Neat-Mix', 'Neat Mix', 0, 0, 0);

          We understand that install procedure is the same for both and since Protean is already installed, script cannot create the same DB structure, but without more knowledge, don't want to mess with the script.

          • Just a short update: we succeeded with the "una-vendor-template", following the link and tutorial you linked, but the above question would still be nice to be solved for others who try that way first.

            • Hello Creatives !

              In the table `sys_options_mixes` the `name` field should have a unique value for the every record. So insert there smth new instead of "Neat-Mix" of Protean-parent.

              Login or Join to comment.