Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4831 by kimholberg
26 Oct 2017, 21:33
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.
#4840 by kimholberg
28 Oct 2017, 16:13
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
 
#4847 by aimeos
29 Oct 2017, 18:06
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/blob/master/Resources/Private/Layouts/Default.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
#4849 by kimholberg
29 Oct 2017, 20:58
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
#4865 by aimeos
30 Oct 2017, 19:34
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