Sling Dynamic Includes and authored templates

Avatar

Avatar

benn28474296

Avatar

benn28474296

benn28474296

27-06-2018

We're trying to set up SDI on pages that use authored templates on 6.3 but aren't having any luck.  We have a user widget in the header that uses dynamic data but we aren't seeing anything happen in page rendering when we flag the header component as being an SDI resource type.  We are seeing includes being properly written when we indicate a component in the authored section of a page using that template, so we know SDI is set up properly.  Is there anything that needs to be done to get the two features working together?

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

27-06-2018

Avatar

Avatar

benn28474296

Avatar

benn28474296

benn28474296

27-06-2018

Yes, I meant editable templates

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

882

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

882
Arun_Patidar
MVP

27-06-2018

Avatar

Avatar

benn28474296

Avatar

benn28474296

benn28474296

27-06-2018

We followed that, and we have it working for authored content in a page, but not any components authored in the template.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

28-06-2018

Have you looked at writing HTL component and using Sling Models- you should be able to create most types of components and these can easily be added to an editable templates via its policies.

Avatar

Avatar

benn28474296

Avatar

benn28474296

benn28474296

28-06-2018

We've created components, we've added them to our authored templates and they are working fine.  But when we try to designate the components in the template should be rendered through SDI its not working.  When we create a page using those templates the components we drop on the page that are designated as needing SDI are being rendered with the proper server side include tags.  So authorble templates are working,  sling dynamic includes are working, but we can't get them to work together.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

28-06-2018

I am not aware of any examples that show both of them working together. Most of the editable templates examples use HTL components - which is really best practice.

I will check internally to see if anyone has used these together.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

28-06-2018

Talking to some industry community experts - reply was: " some indirection between SDI + Editable Templates when it tries to load the template configuration could be responsible for the issue."

I would log a bug here,

Avatar

Avatar

benn28474296

Avatar

benn28474296

benn28474296

28-06-2018

Just an update, we've found that SDI works if the template component is unlocked, but not when it's locked.