Discussions

Ask a Question

Workflow/content staging for single item templates

The following page states that workflow/content staging is only implemented for multi-item templates: https://opencontent.readme.io/docs/workflow-content-staging Are there any plans to add support for single item templates? If not, are there any recommendations on how one might approach this if they were looking to do it themselves?
ANSWERED

Live Edit is Fantastic....yet

I imagine whomever created this its still a work in progress but wondering if a save option has been figured out yet as well as a warning if a user tries to delete an option and better yet restore a deleted option if it is in fact deleted.

Why would a HTTP 404 occur?

I have a DNN Platform 09.01.01 website where OpenContent 04.02.00 is installed. When I add OC to a page, it never finishes loading. Instead, there are HTTP 404 errors reported for the API endpoints in the console, see below. Is this a bug and/or something you've seen before? What is the fix for this? https://example.com/API/OpenContent/InitAPI/GetTemplateState https://example.com/API/OpenContent/InitAPI/GetTemplates Following those two 404 errors, the following error is reported by OC: "fail is not defined" Here is the line of code reported for that: https://www.screencast.com/t/cmDiUVhx1
ANSWERED

Possible to limit number of items in NON Multi item template

Wonder if you clone a instance if you can have one display only a certain number of items without using the multi item template.
ANSWERED

{{AdditionalData.Intro.Title}} should be {{AdditionalData.intro.Title}}

In the templates there's a token placed, by default, {{AdditionalData.Intro.Title}}. imo that only works if you change this to {{AdditionalData.intro.Title}}.
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)