Page 1 of 1

How to apply my own theme

Posted: 26 Oct 2017, 21:33
by kimholberg
As recommended i have created my own extension and copied the hiraki of folders, so they are identical with ai-client-html. This includes my own theme.

How do i get the shop to recognize my new theme instead of elegance. Could not find any instruction to this even in the 'Developers/Themes/Adapt existing themes' or 'Developers/Themes/Theme fundamentals'.

Can you please explain.

Re: How to apply my own theme

Posted: 27 Oct 2017, 23:26
by aimeos
Please use this setting for a different theme:
https://aimeos.org/docs/Configuration/C ... te/baseurl

Re: How to apply my own theme

Posted: 28 Oct 2017, 16:13
by kimholberg
I have set the config as described in your link, cleared cache but nothing happends. Still the default theme 'Elegance'.

This is my settings:

Code: Select all

    client:
      html:
        account:
          favorite:
            url:
              action: index
          watch:
            url:
              action: index
        catalog:
          lists:
            items:
              template-body:
        checkout:
          standard:
            summary:
              option:
                terms:
                  url:
                    controller: Page
                    action: terms
                  privacy:
                    url:
                      controller: Page
                      action: privacy
        email:
          from-email: 'info@twelve-inch.com'
          from-name: 'Twelve Inch Web Shop'
        common:
          content:
            baseurl: 'http://twelve-inch.com'
          template:
            baseurl: client/html/themes/twelveinch
  

Re: How to apply my own theme

Posted: 29 Oct 2017, 18:06
by aimeos
It doesn't work that way. The "client/html/common/template/baseurl" setting is only used to find the CSS files that are included in the HTML e-mails.

In Flow, there's a layout file that contains the URLs to the CSS and JS files:
https://github.com/aimeos/aimeos-flow/b ... fault.html

You have to create your own one if you don't have a layout file yet and add the CSS/JS URLs there.

Tom

Re: How to apply my own theme

Posted: 29 Oct 2017, 20:58
by kimholberg
Hi Tom, i really appreciate your support - and bow my head in gratefullness on a Sunday as well.

I must be honest and say that the documentation confuses me quite a lot. I thought changing a theme would work like the templates, through the extension, and not through the Default.html template in Aimeos.Shop. What happends when we update? Does the template default to its original code, or does it stay like i have changed it.

Actually, i used the Default.html template in the beginning, but convinced myself that Aimeos used another method, and has been digging around for days to find the solution, only to end where i started.

As you can see in another thread, with extending templates, i have some similar problems, as it does not change anything in my Extension templates. So i was almost giving up hope to make it work, but your answers today gave me new hope. So i hope the next few days will help me getting the shop together.

/...Kim

Re: How to apply my own theme

Posted: 30 Oct 2017, 19:34
by aimeos
kimholberg wrote: I must be honest and say that the documentation confuses me quite a lot. I thought changing a theme would work like the templates, through the extension, and not through the Default.html template in Aimeos.Shop. What happends when we update? Does the template default to its original code, or does it stay like i have changed it.
Don't change the Default.html layout template of the Aimeos package! It will be overwritten with the next update.
Instead, use your own one that you also use for the rest of the site.

Tom