Legacy Layout
WARNING
Note on Layout Legacy and Upcoming Changes
{{IsoLang}}
, {{Assets}}
, {{Version}}
, and others, are part of the current theme management system.Managing and Using Layout in Shopranos Themes
Key Concepts:
{{variable}}
is automatically replaced by Shopranos with the appropriate value. For example, {{IsoLang}}
is replaced with the correct language code, and {{Assets}}
dynamically generates the correct path for assets based on the environment (staging or production).Example Layout Structure:
Explanation:
{{IsoLang}}
ensures the correct language is set for the document.{{RequiredHeaders}}
, {{RequiredTemplates}}
, and {{CustomCss}}
are placeholders that Shopranos automatically fills with necessary content.{{Assets}}
dynamically generates the correct path for assets, ensuring compatibility across environments.{{Version}}
is used to manage asset caching, forcing browsers to reload assets when changes are made.{{Assets}}
to refer to the correct environment-specific paths. The ?version={{Version}}
parameter ensures that updates are correctly reflected, bypassing cached versions.{{PaletteThemeColor}}
allow you to customize the theme dynamically based on user settings or configurations in the Shopranos platform.Using Layouts in Components:
{{SectionHeader}}
, {{SectionBody}}
, and {{SectionFooter}}
.Managing Layouts:
Explanation of Variables in Shopranos Themes
{{ }}
. These variables allow the platform to automatically insert specific values depending on the context, environment, or settings. Below is a detailed explanation of commonly used variables.1. {{IsoLang}}
2. {{RequiredHeaders}}
<head>
section.
3. {{Assets}}
4. {{Version}}
5. {{GoogleAnalytics}}
6. {{ReCaptchaApiKey}}
7. {{PaletteThemeColor}}
8. {{PaletteThemeText}}
9. {{PaletteSuccess}}
10. {{PaletteWarning}}
11. {{PaletteDanger}}
12. {{PaletteHeaderTextColor}}
13. {{PaletteHeaderBackgroundColor}}
14. {{PaletteFooterTextColor}}
15. {{PaletteFooterBackgroundColor}}
16. {{PaletteBreadcrumbTextColor}}
17. {{PaletteBreadcrumbBackgroundColor}}
18. {{PaletteBodyPrimaryTextColor}}
19. {{PaletteBodySecondaryTextColor}}
20. {{PaletteBodyBackgroundFirstColor}}
21. {{PaletteBodyBackgroundSecondColor}}
22. {{PaletteTopBarTextColor}}
23. {{PaletteTopBarBackgroundColor}}
24. {{PaletteBodyBorderColor}}
25. {{CustomCss}}
26. {{SectionHeader}}
27. {{SectionBody}}
28. {{SectionFooter}}
29. {{RequiredTemplates}}
30. {{GlobalData}}