Discussions

Ask a Question
ANSWERED

How to import templates from another location?

When creating a template, I know that I can import one from openextensions.net. How would I go about changing that destination? I have several templates I've created that I use on several sites. It would be very helpful for me to be able to import from one of my own websites.
ANSWERED

Using other jpList controls with Open Content Multi-item

Hi folks, As always, thank you for a wonderful product! I am interested in using controls offered by jpList other than the ones provided out-of-the-box with the Multi-item implementation of Open Content. For example, it appears that Open Content uses the Filter Toggle Bundle (https://jplist.com/bundles/filter-toggle-bundle), and let's say I would like to use the Checkbox Dropdown Control (https://jplist.com/controls/checkbox-dropdown), which is not included in that bundle. I tried simply uploading the appropriate files to my template folder in DNN, then registering the files in the template using {{registerscript "jplist.checkbox-dropdown.min.js"}}, and adding the necessary HTML to the template, but the filtering did not work. What other changes do I need to make, or is this even possible? Thanks, Mick
ANSWERED

Creating Articles template creates duplicate font and other unnecessary files

When creating an Articles module, based on a template from openextensions.net, it creates a folder with duplicate font files (flexslider-icon - Copy.eot, flexslider-icon - Copy.svg, flexslider-icon - Copy.ttf and flexslider-icon - Copy.woff). Also it creates 8 .hbs.js files. Also: in template.hbs there's an image src that's always '/Portals/0/OpenContent/Templates/Articles/ajax-loader-line.gif' Can I delete all these files? Are there more files that can be deleted?
ANSWERED

Get related articles with link

Is it possible to set-up a 'related articles' set up with a hyperlink to these articles? I'm up and running with the select2 field and I was able to call the related articles, but I'm not able to add the corresponding link... It doesn't seem to be a part of the data I can see in the console...
ANSWERED

Time Zone issues

Hi folks, I have a bizarre issue where I have a date on an item (in the JSON entered as 2018-10-17T17:30:00-05:00, where the -5:00 on the end is Central Daylight Savings Time, the current time of the portal), however for some reason a user in California is seeing this rendered in his own time zone, Pacific time (so the date above is showing up as 3:30 instead of 5:30). I have no idea why this should be happening, can you folks advise? Thanks for all the great work you do!
ANSWERED

Creating Articles module throws 500 error

I'm creating a module based on the articles template and running into an issue. When I select the template and click save, I get this on the client: Uncaught Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 at Function.Error.create (ScriptResource.axd?d=NJmAwtEo3IqCaBmDBJSsyeJeJow2dA6sa21u4qjmOny0rGnis85GUgePbhjL9zn5l6KvQzz5NwdGBgtC9UF5YfwB-rUHAlFW2jiTsBHaXuZvtdo9uUfUP1bltoFGjLcPzIUnSQ2&t=ffffffffad4b7194:5) And I get this on the server: InnerMessage:Object reference not set to an instance of an object. InnerStackTrace: at Satrabel.OpenContent.Components.Manifest.ManifestUtils.DataNeeded(TemplateManifest template) at Satrabel.OpenContent.TemplateInit.bSave_Click(Object sender, EventArgs e) And: InnerMessage:Object reference not set to an instance of an object. InnerStackTrace: at Satrabel.OpenContent.TemplateInit.BindButtons(OpenContentSettings settings, RenderInfo info) at Satrabel.OpenContent.TemplateInit.RenderInitForm() DNN 9.1
ANSWERED

Lucene.net issue prevents adding or editing content

Hello, We're using DNN Evoq Engage 9.2.0 with OpenContent 3.5.4, hosted on an Azure App Service. It's been fine for months. Suddeny today we're unable to to add or edit content on any of our OpenContent modules. Pressing Save brings up an alert box: *Uh-oh, something broke: Internal Server Error*. The admin logs show: ``` Referer: https://[my website]/My-Services/ctl/EditQuery/mid/406?popUp=true InnerMessage:An unexpected network error occurred. InnerStackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count) at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count) at System.IO.BinaryReader.Read(Byte[] buffer, Int32 index, Int32 count) at Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput.ReadInternal(Byte[] b, Int32 offset, Int32 len) at Lucene.Net.Store.BufferedIndexInput.ReadBytes(Byte[] b, Int32 offset, Int32 len, Boolean useBuffer) at Lucene.Net.Index.SegmentReader.Norm.Bytes() at Lucene.Net.Index.SegmentReader.GetNorms(String field) at Lucene.Net.Index.SegmentReader.Norms(String field) at Lucene.Net.Search.TermQuery.TermWeight.Scorer(IndexReader reader, Boolean scoreDocsInOrder, Boolean topScorer) at Lucene.Net.Search.BooleanQuery.BooleanWeight.Scorer(IndexReader reader, Boolean scoreDocsInOrder, Boolean topScorer) at Lucene.Net.Search.QueryWrapperFilter.AnonymousClassDocIdSet.Iterator() at Lucene.Net.Search.IndexSearcher.SearchWithFilter(IndexReader reader, Weight weight, Filter filter, Collector collector) at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Collector collector) at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Int32 nDocs, Sort sort, Boolean fillFields) at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Int32 nDocs, Sort sort) at Lucene.Net.Search.Searcher.Search(Query query, Filter filter, Int32 n, Sort sort) at Lucene.Net.Search.JsonSearchUtils.Search(Searcher searcher, String type, Query query, Query filter, Int32 numResults, Sort sort) at Satrabel.OpenContent.Components.Lucene.LuceneController.Search(String type, Query filter, Query query, Sort sort, Int32 pageSize, Int32 pageIndex) at Satrabel.OpenContent.Components.Datasource.OpenContentDataSource.GetAll(DataSourceContext context, Select selectQuery) at Satrabel.OpenContent.Components.Render.RenderEngine.GetDataList(RenderInfo info, OpenContentSettings settings, Boolean clientSide) at Satrabel.OpenContent.Components.Render.RenderEngine.Render(Page page) at Satrabel.OpenContent.View.OnLoad(EventArgs e) ``` When I open Filter Settings, and click Reindex Module, the page reloads with a "Critical Error Occurred" box and there is another Lucene error in the Admin Logs. This suggests the Lucene index files are locked or broken. Looking in the log file on the App Service, I can see `D:\home\site\wwwroot\App_Data\Search\write.lock` is in use. I know that's part of DNN search, not OpenContent. But is also uses Lucene, so is it likely to be a related issue? https://github.com/dnnsoftware/Dnn.Platform/issues/2231 points to a similar issue in DNN itself. We're trying a restart of the App Service to see if it fixes the issue. Is this something you have run into before?
ANSWERED

Nested Accordion won't open

See here: https://imcw.org/Programs/Mentoring/Find-a-Mentor Most of these nested accordions work fine. However, click on Kensington, MD and it will not open. Look at the code and you will see there is a valid accordion inside. This happens with every 10th accordion, then all accordions over 30th. How come?
ANSWERED

Later Handlebars Version

We're looking to install a module making use of a later version of Handlebars to an environment also using OpenContent, and so would need to add Handlebars 1.8.1.0's DLL to the website's bin folder, as well as update the web.config's dependentAssembly section to have 1.8.1.0 as the newVersion for Handlebars. Is this likely to cause any issues with OpenContent, or should it be compatible with later versions of Handlebars?
ANSWERED

Customizing CKEditor, json...isn't

I'm trying to customize my CKEditor, and it shows how to customize here: https://opencontent.readme.io/docs/field-types#section-rich-text-with-ckeditor Only that's not json, and the editor won't save it. MISSING { "Text" : { "type":"ckeditor", "configset":"basic", "ckeditor":{ "stylesSet" : { MISSING NAME { "name": "Title small", "element": "h2", "attributes": { "class": "h4" } }, MISSING NAME { "name": "Note", "element": "span", "attributes": { "class": "note" } } } } } MISSING } What kind of format is this? I presume this goes in Form > Options?