Member Login

Freestyle Joomla Forums

FAQs v3

Member Login   Register

Please login or register to post on the forum

Forum Index    Board Index    Last Post   

Bartholomew  Co.

Bartholomew Co.

23 March 2015, 12:42

Redundant modules load in the same FAQ

I'm working on a site that keeps all departments in a county government under an umbrella domain.  In this instance several departments will get very similar questions with all having the same answer.  Creating multiple versions of the same question and its answer is not a problem, but the answer is easily accompanied with a module that can imbed in the answer.  This works, but only once.  Every other time I try to embed the same module in a different answer it pushes that new embedded module into the first FAQ that it had been embedded in.  In my case I have two answers that are missing the module (despite the backend showing the correct syntax for it in that answer) and one answer that has three instances of the module (despite the backend showing syntax for one)

The link will get you to the page, but attached screenshot will show you where the question is hidden and how it looks. 
Link showing problem C:\Users\zac.holt\Desktop\2015-03-23 09_40_58-bartholomew.freesite.host_index.php_how-do-i_set_1-main-faqs.png
Joomla Version 3.4.1
Freestyle Version V3.1.0.1916

2015-03-23 09_40_58-bartholomew.freesite.host_index.php_how-do-i_set_1-main-faqs.png

51.51 KB
Adam Clarke

Adam Clarke

23 March 2015, 13:21

Re: Redundant modules load in the same FAQ

Can you let me know what module you are including in the content, and the way you are including it please, and I will set up a test to try to track down why its displaying incorrectly.

Thanks

Adam Clarke
Freestyle Joomla
Bartholomew  Co.

Bartholomew Co.

23 March 2015, 15:19

Re: Audit Message

It's actually a custom module that houses a bit of code that is a paid service for the public.  The code is very small and pasted below.  It is being put into that question using a plugin called Modules Anywhere.  Here is it's Joomla extension directory page: http://extensions.joomla.org/extension/modules-anywhere 


<script id="doxpop-event-widget-script" src="//www.doxpop.com/prod/js/doxpopeventwidget.js?sourceId=18115&theme=blue&fsr=true" type="text/javascript"></script>
Adam Clarke

Adam Clarke

23 March 2015, 15:33

Re: Redundant modules load in the same FAQ

I think the modules anywhere side of things id probably working ok, but the issue is with your script.

The code is only designed to run a single instance on a page, in a single location, it doesn't have support for loading the box in multiple places at once.

From looking at the code of the plugin, it would require quite extensive changes to properly work in multiple places on a page at once. Almost all element references are done using getElementById, and you can only reference a single element with a specific id at once on a page.

Thanks

Adam Clarke
Freestyle Joomla

Vote For Us!

Please vote for our software or write a review of one of our products on the Joomla! Extensions Directory