Search found 8 matches

by chris kerr
Mon Aug 12, 2019 10:09 am
Forum: Web-based Outputs
Topic: Pushing a topic to the top of the search rankings
Replies: 3
Views: 1411

Pushing a topic to the top of the search rankings

Is there a reliable way to push a specific topic to the top of Flare's search rankings? Say we have 10 topics that have the search term x repeated a varying number of times across them, in paragraphs, h1s and h2s. We also have another topic that provides a conceptual definition of x, but x only appe...
by chris kerr
Thu Jul 11, 2019 8:37 am
Forum: Flare's General Discussion
Topic: Third-party search engines - follow up
Replies: 0
Views: 758

Third-party search engines - follow up

Has anyone successfully implemented a third-party search engine? On this thread from 2017, people stated that they were investigating options, but no one said they'd successfully implemented a product: https://forums.madcapsoftware.com/viewtopic.php?f=9&t=29747 My team can't use Flare's Elastics...
by chris kerr
Wed Apr 24, 2019 2:35 am
Forum: Web-based Outputs
Topic: DataTables .js plugin works in topic but not from masterpage
Replies: 9
Views: 3283

Re: DataTables .js plugin works in topic but not from master

Update: I fixed the conflict with SideNav by referring to Flare's internal version of Foundation using require.js and including this line in my script:

Code: Select all

$(document).foundation();
by chris kerr
Mon Apr 15, 2019 8:31 am
Forum: Web-based Outputs
Topic: DataTables .js plugin works in topic but not from masterpage
Replies: 9
Views: 3283

Re: DataTables .js plugin works in topic but not from master

I eventually got require.js working by playing around with the path to Flare's version of jquery in the output. Unfortunately DataTables conflicts with the JavaScript in Flare's SideNav skin, meaning the SideNav menu doesn't display at all. Errors: Uncaught TypeError: aZ.foundation is not a function
by chris kerr
Thu Mar 28, 2019 7:45 am
Forum: Web-based Outputs
Topic: DataTables .js plugin works in topic but not from masterpage
Replies: 9
Views: 3283

Re: DataTables .js plugin works in topic but not from master

Dave Lee wrote:Have you removed the script reference in the HTML to jquery.dataTables.min.js?
I hadn't but I have now. Now the only reference to jquery.dataTables.min.js is in my init.js file.

The error is now:

Uncaught Error: Script error for: jquery
http://requirejs.org/docs/errors.html#scripterror
by chris kerr
Thu Mar 28, 2019 4:57 am
Forum: Web-based Outputs
Topic: DataTables .js plugin works in topic but not from masterpage
Replies: 9
Views: 3283

Re: DataTables .js plugin works in topic but not from master

One gotcha is that the path you specify in the requirejs configuration must be from the topic to the script, not from the master page to the script - so if your topics are at different depths, you'll have to use an array of alternative paths rather than a single path. If requirejs can't find the sc...
by chris kerr
Wed Mar 27, 2019 10:18 am
Forum: Web-based Outputs
Topic: DataTables .js plugin works in topic but not from masterpage
Replies: 9
Views: 3283

Re: DataTables .js plugin works in topic but not from master

Thanks for the reply. Linking to jquery-3.3.1 is the only way I've found to get DataTables to work. If I remove it, it won't work unless I go down the require.js route, which I haven't had much luck with. I suspect I'll end up using require.js. I didn't follow this - you say Flare fails to include y...
by chris kerr
Wed Mar 27, 2019 7:14 am
Forum: Web-based Outputs
Topic: DataTables .js plugin works in topic but not from masterpage
Replies: 9
Views: 3283

DataTables .js plugin works in topic but not from masterpage

I'm trying to get the DataTables ( https://datatables.net/ ) plugin working with Flare. This is a JavaScript plugin that depends on jQuery. When I refer to the JavaScript files directly from the topic with the table in it, the output is fine. When I refer to the JavaScript files from the masterpage,...