Page 1 of 1

Custom Theme

Posted: 25 Jan 2018, 18:44
by tenkraD
Hy everyone,
my custom theme and aimeos theme wasnt included.
Because of the "-" in page.includeCSS.aimeos-common i replaced the "-" with a "_" and it was working.

and aimeos.css was also not totaly included if i used page.includeCSS.aimeos as described in the docs.
After i wrote it like this page.includeCSS.tx_aimeos its was working

Is the example in the docs false? https://aimeos.org/docs/TYPO3/Use_custom_themes


# working Overwrite Theme CSS Files
page.includeCSS.aimeos_common = {$mycustom.tx_aimeos.theme.css.common}
page.includeCSS.tx_aimeos = {$mycustom.tx_aimeos.theme.css.aimeos}

Thanks

Re: Custom Theme

Posted: 26 Jan 2018, 16:43
by aimeos
No this can't be the reason because the other configurations that contains "-" do also work:
https://github.com/aimeos/aimeos-typo3/ ... /setup.txt

Maybe your own config wasn't applied after the Aimeos one so it have overwritten it?

Re: Custom Theme

Posted: 30 Jan 2018, 16:54
by tenkraD
aimeos wrote:No this can't be the reason because the other configurations that contains "-" do also work:
https://github.com/aimeos/aimeos-typo3/ ... /setup.txt

Maybe your own config wasn't applied after the Aimeos one so it have overwritten it?
I tried this and applied my theme after my config but still with the same result.
Im stuck, is this not a naming problem in typo3 if u use "-" instead of "_"?

Re: Custom Theme

Posted: 30 Jan 2018, 18:12
by aimeos
No, TYPO3 accepts both, "-" and "_" characters in TS strings. Where did you add your setting? in the setup TS of your root page or somewhere else?

Re: Custom Theme

Posted: 30 Jan 2018, 19:23
by tenkraD
i added it under "template" in the "setup" section of my shop after the aimeos config part

<INCLUDE_TYPOSCRIPT:source="FILE: fileadmin/mh_bs3dist/Aimeos/Typoscript/themesetup.ts">

---------- themesetup.ts file --------
# Theme CSS Files
page.includeCSS.aimeos_common = fileadmin/Aimeos/Themes/shop_theme/common.css
page.includeCSS.tx_aimeos = fileadmin/Aimeos/Themes/shop_theme/aimeos.css
--------------------------------------------

Re: Custom Theme

Posted: 01 Feb 2018, 18:56
by tenkraD
im still having this problem and found no solution.
b.t.w. i just wanna say thanks for the great app and support!

you guys rock :)

Re: Custom Theme

Posted: 02 Feb 2018, 17:43
by aimeos
This should add your files additionally to the Aimeos standard files. Those are added by:

Code: Select all

page.includeCSS.aimeos = {$plugin.tx_aimeos.theme.css.aimeos}
page.includeCSS.aimeos-custom = {$plugin.tx_aimeos.theme.css.custom}
Source: https://github.com/aimeos/aimeos-typo3/ ... tup.txt#L1