-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- More accurate extension descriptions - Improvements to Sitecore extension snippets - Verified and supplemented list of full extensions - More links to documentation in auto-complete tooltips - i_item extensions no longer erroneously appear as available options for fields auto completion.
- Loading branch information
Showing
9 changed files
with
241 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="product-summary" data-id="{{ i_item.name }}"> | ||
{{ displayName = i_item.display_name | html.escape }} | ||
<a title="{{ displayName }}" href="{{ i_item.url }}"> | ||
<div class="product-photo"> | ||
{{ | ||
productImage = i_item.images.targets | array.first | ||
if productImage | ||
mediaUrl = productImage.media_url | ||
end | ||
}} | ||
<img src="{{ mediaUrl }}" /> | ||
</div> | ||
</a> | ||
<div class="product-info"> | ||
<a class="product-title" title="{{ displayName }}" href="{{ i_item.url }}"> | ||
{{ displayName }} | ||
</a> | ||
<div class="product-brand"> | ||
{{ i_item.brand }} | ||
</div> | ||
<div class="product-detail"> | ||
<a class="product-link" title="{{ displayName }}" href="{{ i_item.url }}"> | ||
{{ sc_translate 'DETAILS' }} | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
{{- # ↓ Name of the item template -}} | ||
{{ if i_item.template_name == "Gallery Image" }} | ||
<a class="field-image"> | ||
|
||
{{- # ↓ Name of the item template - | ||
if i_item.template_name == "Gallery Image" | ||
sc_editframe i_item 'Gallery Image' -}} | ||
<a class="field-image"> | ||
|
||
{{- # ↓ raw value from the field ↓ media url from a field -}} | ||
<a title="{{ i_item.ImageTitle.raw }}" href="{{ i_item.Image.media_url }}"> | ||
<a title="{{ i_item.ImageTitle.raw }}" href="{{ i_item.Image.media_url }}"> | ||
|
||
{{- # ↓ item.FieldName - renders Sitecore field -}} | ||
{{ i_item.Image }} | ||
</a> | ||
</a> | ||
{{end}} | ||
{{ i_item.Image }} | ||
|
||
</a> | ||
</a>{{ | ||
sc_endeditframe | ||
end}} | ||
|
||
{{- # ↓ conditional statement | ||
if i_item.template_name == "Gallery Video" | ||
sc_editframe i_item 'Gallery Video' | ||
if (i_item.VideoID.raw ) == "" && (i_item.VideoThumbnail.raw) == "" -}} | ||
|
||
{{- # ↓ conditional statement }} | ||
{{ if i_item.template_name == "Gallery Video" }} | ||
{{ if (i_item.VideoID.raw ) == "" && (i_item.VideoThumbnail.raw) == "" }} | ||
<span>[Edit Gallery Video here]</span> | ||
{{ else }} | ||
<a title="{{i_item.VideoTitle.raw }}" href="http://www.youtube.com/watch?v={{ i_item.VideoID.raw }}"> | ||
|
||
{{- # ↓ access model properties }} | ||
{{- else -}} | ||
|
||
<a title="{{i_item.VideoTitle.raw }}" href="http://www.youtube.com/watch?v={{ i_item.VideoID.raw }}"> | ||
{{- # ↓ access model properties -}} | ||
|
||
<img src="{{ o_model.thumbnail_url }}" alt="{{ i_item.VideoDescription.raw }}" | ||
data-title="{{ i_item.VideoTitle.raw }}" data-description="{{ i_item.VideoDescription.raw }}" ></img> | ||
</a> | ||
{{end}} | ||
{{end}} | ||
</a>{{ | ||
end | ||
sc_endeditframe | ||
end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# Change Log | ||
|
||
Sitecore Scriban Syntax Coloring and intellisense for known objects Extension for Visual Studio Code | ||
Sitecore Experience Accelerator Scriban syntax coloring and auto completion for known objects - Extension for Visual Studio Code | ||
|
||
## 1.0.0 | ||
## 0.1.1 | ||
- More accurate extension descriptions | ||
- Improvements to Sitecore extension snippets | ||
- Verified and supplemented list of full extensions | ||
- More links to documentation in auto-complete tooltips | ||
- i_item extensions no longer erroneously appear as available options for fields auto completion. | ||
|
||
## 0.1.0 | ||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.