How to apply my own theme

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kimholberg
Posts: 29
Joined: 21 Aug 2017, 09:42

How to apply my own theme

Post 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.
Neos 3.2.0 - Bitnami AWS C2 - Aimeos 2017-10.1

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: How to apply my own theme

Post by aimeos » 27 Oct 2017, 23:26

Please use this setting for a different theme:
https://aimeos.org/docs/Configuration/C ... te/baseurl
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kimholberg
Posts: 29
Joined: 21 Aug 2017, 09:42

Re: How to apply my own theme

Post 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
  
Neos 3.2.0 - Bitnami AWS C2 - Aimeos 2017-10.1

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: How to apply my own theme

Post 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/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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kimholberg
Posts: 29
Joined: 21 Aug 2017, 09:42

Re: How to apply my own theme

Post 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
Neos 3.2.0 - Bitnami AWS C2 - Aimeos 2017-10.1

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: How to apply my own theme

Post 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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply