[BLOSSOM-163] Template definition: set the "category" property Created: 05/Feb/14 Updated: 07/Nov/14 Resolved: 07/Feb/14 |
|
| Status: | Closed |
| Project: | Blossom |
| Component/s: | None |
| Affects Version/s: | 2.0.3, 3.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Jean-Charles Robert | Assignee: | Tobias Mattsson |
| Resolution: | Workaround exists | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Magnolia 4.5.11 |
||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
I am unable with Blossom to use the StkTemplatingFunctions siteRoot() method and all other methods that are using siteRoot() The reason is that it needs the template category "home" in order to find the root of the site (usually the home page) |
| Comments |
| Comment by Tobias Mattsson [ 05/Feb/14 ] |
|
Hi Jean-Charles, The STKTemplatingFunctions assume that they're being used on pages using the STK templates. Categorizing templates is a feature of STK so the functions that rely on this will not work for pages not using STK templates. There's a number of ways you can deal with this if you need the siteRoot function,
Inheritance can be done using the standard TemplatingFunctions which will work with templates not based on STK. |
| Comment by Jean-Charles Robert [ 06/Feb/14 ] |
|
Hello Tobias, Thank you for your answer! Regards, |