Discussions

Ask a Question
ANSWERED

"Index": true or "index": true?

In the manifest, almost on top of the document, it reads by default: "Index": true Should that not be "index": true?
ANSWERED

Handlebar token for Portal URL?

Is there a token that can be used in the template for this?

Chained/Nested Helpers Inside {{each}} Don't Work

Is this a bug? I have the following code that works without issue. {{#equal Settings.Setting1 "value1"}} {{#equal Settings.Setting2 "value2"}} <p>I can see this rendered.</p> {{/equal}} {{/equal}} However, the following example will not rended properly. {{#each Items}} {{#equal ../Settings.Setting1 "value1"}} {{#equal ../Settings.Setting2 "value2"}} <p>This does not get rendered.</p> {{/equal}} {{/equal}} {{/each}} I know the values are there and are being called correctly (since the path is off a level due to the {{each}} loop. This works on its own, outputting the expected setting values. {{#each Items}} {{../Settings.Setting1}} {{../Settings.Setting2}} {{/each}} This doesn't even work... {{#each Items}} {{#equal ../Settings.Setting1 "value1"}}{{../Settings.Setting1}}{{/equal}} {{#equal ../Settings.Setting2 "value2"}}{{../Settings.Setting2}}{{/equal}} {{/each}} Oddly enough, this works though... {{#each Items}} {{#equal ../Settings.Setting1 "value1"}}I see this...{{/equal}} {{#equal ../Settings.Setting2 "value2"}}... and this too{{/equal}} {{/each}} In a final related test, this doesn't work. {{#each Items}} {{#equal ../Settings.Setting1 "value1"}} I see this... {{#equal ../Settings.Setting2 "value2"}} ... but not this one!!! {{/equal}} {{/equal}} {{/each}} Does anyone know why this works consistently outside of the {{each}} but not inside of it?

Equal for Multiple Possible Values?

I have a setting in a template that is a select list. In the template itself, I need to check to see if the setting value is one of multiple possibilities. I'm not sure how to do that with Handlebars and searching hasn't yet helped me find what I'm looking for. Here's what I'd like to do in the template, if the syntax supported it. {{#equal Settings.LayoutStyle "bottom-standard" || "bottom-justified" || "bottom-centered"}} <!-- my html content --> {{/equal}}

Error Error using template Bootstrap 3 Carousel

I installed the OpenContent 04.03 module, imported the Bootstrap3Carousel.zip template, but the carousel does not work, it shows the following error: Uncaught TypeError: $(...).carousel is not a function at HTMLDocument.<anonymous> (template.js?cdv=42:3) at fire (jquery.js?cdv=42:1037) at Object.fireWith [as resolveWith] (jquery.js?cdv=42:1148) at Function.ready (jquery.js?cdv=42:433) at HTMLDocument.completed (jquery.js?cdv=42:103)

Improve SEO on multi item templates

I was wondering.. I have some multi item templates in use and noticed something regarding SEO. As an example an articles template. I noticed few things that are not optimal IMO, maybe we can somehow improve on this? When the detail-url does not resolve to an item, the list is rendered So I can have www.mysite.com/Articles/id/10 which resolves to an article but www.mysite.com/Articles/id/11 (which does not exist) shows the list of articles. Wouldn't it be better to generate a 404 when there's an id present and not found? I noticed this when a client added articles, which were indexed by Google and later removed them. Google now complains about duplicate content because there are multiple urls to the same list of articles. www.mysite.com/Articles and www.mysite.com/Articles/id/11 Not sure how one could handle this in combination with the Url REwriter provider..?

DNN Search Index

Hi, I know it is possible to have the data indexed bij DNN Search. Simply by adding this to a template main section in manifest.json: "dnnsearch": true, "dnnSearchTitle": "{{Title}}", "dnnSearchDescription": "{{convertHtmlToText Description}}", "dnnSearchText": "{{Title}} {{convertHtmlToText Description}}", However, I've come to the conclusion that not everything that is showed/added in that template is indexed. For example the intro title and description and some custom additionalData fields. Also, I really would like to be able to choose which module is indexed and which is not. In my recent case I have 2 modules, each filled with hundreds of questions and answers. These faq's I use through-out the website on multiple pages. So, I use a single source to display the content on multiple pages, often filtered by a certain field. This way was mandatory in order to create an orderly and easy way of administer the FAQ's. When I _deselect_ the module Advanced Settings 'Allow Indexing' of the 2 source modules and _select_ this setting in all other modules, I would expect the 2 source modules not indexed and all other modules indexed. Sadly this is not the case. Any advise, tips or examples are welcome!

Troubleshooting: Sequence contains more than one element

What's the best way to troubleshoot the template to figure out how/why this error occurs? `Sequence contains more than one element`
ANSWERED

OpenContent conflicts with Porto Theme

I'm trying to use one of the shortcodes in Porto with OpenContent. When I do, I get the following JS error every page load when logged in as an admin and it repeats for any action I attempt to perform with the resulting templated content. https://www.screencast.com/t/iCtmINM7CzEf Has anyone else dealt with this and found a way to resolve the issue?
ANSWERED

Block Parameters

Is this supported in the latest version of OpenContent? https://handlebarsjs.com/block_helpers.html When I try to use it, I get the following error reported by the template: Sequence contains more than one element