Skip to content

Commit

Permalink
bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
ssachtleben committed Aug 21, 2019
1 parent c6c8c0f commit 704e35c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cartridges/int_styla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"./cartridge/scripts/init/StylaServiceInit.js"
],

"cartridgeVersion": "18.0.0"
"cartridgeVersion": "19.0.0"
}
2 changes: 1 addition & 1 deletion cartridges/int_styla_refArch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"./cartridge/scripts/init/StylaServiceInit.js"
],

"cartridgeVersion": "17.3.0"
"cartridgeVersion": "19.0.0"
}
46 changes: 33 additions & 13 deletions documentation/Integration Guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</head>
<body>
<h1 id="int_styla">int_styla</h1>
<h4 id="Version1720">Version 17.3.0</h4>
<h4 id="Version1720">Version 19.0.0</h4>
<h2 id="TableofContents">Table of Contents</h2>
<ol>
<li><a href="#Summary">Summary</a></li>
Expand Down Expand Up @@ -274,8 +274,8 @@ <h5 id="CustomObjectsforMagazineconfiguration">Custom Objects for Magazine confi
{
"pipeline": "Home-Show"
},
{
"if-site-path": "",
{
"if-site-path": "",
"pipeline": "Home-Show"
}
]
Expand Down Expand Up @@ -977,8 +977,8 @@ <h5 id="CustomObjectsforMagazineconfiguration">Custom Objects for Magazine confi
{
"pipeline": "Home-Show"
},
{
"if-site-path": "",
{
"if-site-path": "",
"pipeline": "Home-Show"
}
]
Expand Down Expand Up @@ -1169,7 +1169,7 @@ <h5 id="htmlheadisml">htmlhead.isml</h5>
</p>
<pre><code><span class="hljs-tag">&lt;<span class="hljs-title">isif</span> <span class="hljs-attribute">condition</span>=<span class="hljs-value">"${dw.system.Site.current.getCustomPreferenceValue('stylaEnabled') == true}"</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">isinclude</span> <span class="hljs-attribute">template</span>=<span class="hljs-value">"styla/headerinclude"</span>/&gt;</span>
<span class="hljs-tag">&lt;input type="hidden" class="stylaAddToCartUrl" value="${URLUtils.url('Cart-AddProduct')}"/&gt;</span>
<span class="hljs-tag">&lt;input type="hidden" class="stylaAddToCartUrl" value="${URLUtils.url('Cart-AddProduct')}"/&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">isif</span>&gt;</span>
</code></pre>
<p>Since Styla inserts its own <code>TITLE</code> tag as well as a description <code>META</code> tag, you should make sure that
Expand Down Expand Up @@ -1228,7 +1228,7 @@ <h4 id="URLHandling">URL Handling</h4>
<h5 id="RedirectURLjs">RedirectURL.js</h5>
<p>The following step is required if your storefront uses controllers. You can skip this if you are using pipelines.</p>
<p>In <code>RedirectURL.js</code> the <code>start()</code> function needs to look like this</p>

<pre><code>

server.get('Start', function (req, res, next) {
Expand Down Expand Up @@ -1277,7 +1277,7 @@ <h5 id="RedirectURLjs">RedirectURL.js</h5>
Since the URL in the customer's browser is still <code>magazine/stories/5</code> the Styla JavaScript will load
the corresponding magazine content.
</p>

<h5 id="searchHelpers">SearchHelpers.js</h5>
<p>If using a category URL, the <code>searchHelpers.setupSearch</code> and <code>searchHelpers.search</code> methods have to be
modified. When <code>StylaMagazine.Alias()</code> (see previous section) finds a matching magazine configuration
Expand All @@ -1288,8 +1288,8 @@ <h5 id="searchHelpers">SearchHelpers.js</h5>
<p>
For <b>UNIT TESTING</b> replace searchHelpers.js from the Documentation folder with test/unit/app_storefront_base/scripts/helpers/searchHelpers.js
</p>
<p>Change the setupSearch method to look like this
<pre><code>
<p>Change the setupSearch method to look like this
<pre><code>

function setupSearch(apiProductSearch, params) {
var CatalogMgr = require('dw/catalog/CatalogMgr');
Expand Down Expand Up @@ -1320,7 +1320,7 @@ <h5 id="searchHelpers">SearchHelpers.js</h5>

</code></pre>
<p>Add in the search method before returning the result the following
<pre><code>
<pre><code>

if ('MagazineConfiguration' in request.custom && request.custom.MagazineConfiguration
&& request.custom.MagazineConfiguration.categoryID) {
Expand All @@ -1335,7 +1335,7 @@ <h5 id="searchHelpers">SearchHelpers.js</h5>
<code>/int_styla_refArch/cartridge/templates/default/rendering/catlanding.isml</code> or create a custom one as described
in chapter <em>Magazine Inclusion</em>.
</p>

<h4 id="JavaScriptActions">JavaScript Actions</h4>
<h5 id="appjs">main.js</h5>
<p>If product information and add to cart functionality is used by the Styla magazine, a JavaScript function
Expand Down Expand Up @@ -1481,5 +1481,25 @@ <h2 id="ReleaseHistory">Release History</h2>
</ul>
</td>
</tr>
<tr>
<td>18.0.0</td>
<td>2019-AUG</td>
<td>
<ul>
<li>the cartridge now requests Styla page content from Styla SEO API without base path defined in its settings</li>
<li>if you update your plugin version to this one, please contact Styla to update your client settings on their end. Otherwise Styla content might not work as intended.</li>
</ul>
</td>
</tr>
<tr>
<td>19.0.0</td>
<td>2019-AUG</td>
<td>
<ul>
<li>allow to place Styla content on homepage</li>
<li>support storefront reference architecture (SFRA)</li>
</ul>
</td>
</tr>
</tbody>
</table>
</table>

0 comments on commit 704e35c

Please sign in to comment.