Discussions

Ask a Question

Download link for Client Side Catalog Template? to load 10k data

Hello, We currently have 10k data that we're importing from Ventrian Property-Agent module into open content. Copying it into RawData is fine, but when it load the page, it throw error "Too much data to deserialize. Please use a client side template to circumvent that." Update the limit of jsonSerialization maxJsonLength didn't solve it, so we're thinking to implement Client Side load, but no sample template we can find for reference. But I see that this page is implement Client side rendering with 10k data: http://www.openextensions.net/opencontent-demos/client-side-catalog Wonder where we can grab the template for this sample page?

Checkbox default set to checked

I'd like to use a checkox, "type": "checkbox", and have the default value to be checked. How could I do that?

Get data from external select2 field

Hi, I'd like to call all the options from an external select2 field. {{#each Options.fields.RelatedProductGroup}}<div>{{Title}}</div>{{/each}} returns the right amount of divs, but I cannot get the related Title field...
ANSWERED

Comparing enum value to optionLabels value in order to write correct optionLabels in template

I have a simple template with in the options a dropdown field (called Soort) with enum pdf, word, excel, powerpoint, image and archive. It has the optionLabels Pdf, Word, Excel, PowerPoint, Afbeelding and Zip-bestand. I use the enum for constructing a Fontawesome label like 'fa-file-image'. I use the optionLabels to have the user understand what kind of file it is (Dutch) like 'Afbeelding'. In my template I want to render both the enum and the optionLabels of the chosen option. The result must be this: ``` <a href="linktoimage.jpg" download="" ><i class="far fa-file-image mr-2"></i>Download Schoolplan (Afbeelding, 333 kB)</a> ``` In order to achieve this I tried: ``` <a href="{{Upload}}" download=""><i class="far fa-file-{{Soort}} mr-2"></i>{{Title}} ({{arrayindex ../Options.fields.Links.items.fields.Soort.optionLabels @index }}, {{Size}})</a> ``` The arrayindex returns Pdf, so that doesn't work. I tried stuff like: ``` {{#each ../Schema.properties.Links.items.properties.Soort.enum }} {{arrayindex ../../Options.fields.Links.items.fields.Soort.optionLabels @index }} {{/each}} ``` ...but that just generated a list of the optionLabels. Somehow I need to compare the value of 'Soort' with index in the enum and the index in the optionLabels. For the time being I solved it temporary like this: ``` <a href="{{Upload}}" download=""><i class="far fa-file-{{Soort}} mr-2"></i>{{Title}} ({{#equal Soort "pdf"}}Pdf, {{/equal}}{{#equal Soort "word"}}Word, {{/equal}}{{#equal Soort "excel"}}Excel, {{/equal}}{{#equal Soort "powerpoint"}}Powerpoint, {{/equal}}{{#equal Soort "image"}}Afbeelding, {{/equal}}{{#equal Soort "archive"}}Zip-bestand, {{/equal}}{{Size}})</a> ``` ...but that isn't very future-oriented. Any ideas? Thanks!

Calling label from dropdown

Is there a way to call the label (and not the value) of a dropdown option? Something like {{field:label}}?
ANSWERED

Use of mailto links in WYSIHTML editor

When using a textbox it doesn't (seem) possible to insert relative or mailto links. Even when inserting directly into source html it saves the first time but not when updating the textbox. Is it possible to customize the WYSIHTML editor in OpenContent to accept different types of links?

OpenContent templates for Porto error

When using the OpenContent templates for Porto on a Dnn v9.11.0 instance, I get the following error: "An error occurred while trying to save the Porto-Accordion file. Contact your hosting provider to ensure the appropriate security settings have been enabled on the server". An error is displayed in the view, but no related errors were logged in the admin logs or Log4NET log file. Has anyone had this type of error before?
ANSWERED

Material icons

Is it possible to use Material icons (https://material.io/icons/) in the icon picker control?

ckeditor issues

Hi, Because of wcag-related issues, we regularly need to modify the way the ck-editor is used. In the Text/HTML modules the portal settings for the editor are used. We use this in combination with an extra config file. Even though you can choose the three types of editor settings (simple, standard, full) in Form Builder in the OpenContent module, I still need to configure these paths manually in options.json. I hope there will be an easier way to do this in the future... The current way is very vulnerable to be overwritten by an administrator that is not always aware of his or her actions... Tnx, Keston

(Static) Localization in {{#each Items}} loop not working

I want to display a category in each item, here is the code (template.hbs): {{#each Items}} <p>{{Localization.Category}}: {{Category}}</p> {{/each}} (localization.de-AT.json): { "Category":"Kategorie" } This displays only the colon and the name of the category, but not the word "Kategorie". Anyway, this code is working as expected (displays the word "Kategorie" followed by paragraphs with 0, 1, 2, 3...): <p class="CategoryHeader">{{Localization.Category}}: {{Category}}</p> {{#each Items}} <p>{{@index}}</p> {{/each}} Any ideas?