Skip to content

Commit

Permalink
add placeholder for container.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 24, 2024
1 parent e5ccfd9 commit ef75418
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<!--${model.componentName} inherited start ${model.inheritedResource.path}-->
${model.inheritedHtml @ context='unsafe'}
<!--${model.componentName} inherited end ${model.inheritedResource.path}-->
<sly data-sly-use.lib="/apps/typerefinery/components/structure/templates/component-info.html"
data-sly-set.componentPlaceholderTitle="${[model.componentTitle, ' - Inherited (', model.inheritedResource.path, ')'] @ join=''}"
data-sly-call="${lib.placeholder @ title=componentPlaceholderTitle}"></sly>
</sly>

<!--/* Normal print of component */-->
Expand All @@ -44,10 +47,11 @@
data-sly-test="${resource.hasChildren}">
<sly data-sly-include="${'parsys.html' @ prependPath='/libs/wcm/foundation/components/parsys'}"></sly>
</div>
<sly data-sly-test="${!resource.hasChildren}">
<sly data-sly-use.lib="/libs/wcm/foundation/components/commons/templates.html"
data-sly-call="${lib.placeholder @ classes=model.componentClassNames}">
</sly>
<sly data-sly-use.lib="/libs/wcm/foundation/components/commons/templates.html"
data-sly-call="${lib.placeholder @ classes=model.componentClassNames}">
</sly>
<sly data-sly-use.lib="/apps/typerefinery/components/structure/templates/component-info.html"
data-sly-set.componentPlaceholderTitle="${[model.componentTitle, ' - Not Inherited'] @ join=''}"
data-sly-call="${lib.placeholder @ title=componentPlaceholderTitle}"></sly>
</sly>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
</div>

</div>
<sly data-sly-test="${!resource.hasChildren}">
<sly data-sly-use.lib="/libs/wcm/foundation/components/commons/templates.html"
data-sly-call="${lib.placeholder @ classes=model.componentClassNames}">
</sly>
<sly data-sly-use.lib="/libs/wcm/foundation/components/commons/templates.html"
data-sly-call="${lib.placeholder @ classes=model.componentClassNames}">
</sly>
</template>

0 comments on commit ef75418

Please sign in to comment.