LimeSurvey use the Yii Framework. Joomla uses an "object oriented code", and a classical web application architecture. So it's possible to integrate a Yii application inside Joomla, but it's not easy, it's a huge job. Here a page about how to do it for a simple module (could be used for frontend rendering):
www.yiiframework.com/wiki/137/include-yi...-in-a-joomla-module/
Main problem will be to deal with session, and name space conflict between Joomla and Yii (Joomla 3 still doesn't use a proper name space system, it will be the case for Joomla4)
So rather than "integrating" LS inside a CMS, you'd rather use LS as an external API, and build a component for your favourite CMS to request that API (like the Drupal component Tammo suggestested you). This can be easily done for small backend operations, but not really for frontend rendering.
Thanks for the suggestions. The CMS I use is
Processwire
, but I don't need full integration, just basic things like adding my main site's header and footer to a survey or embedding a survey into a page in my CMS.
The topic has been locked.
LouisGac
New Member
LessMore
Thank you received: 0
8 years 1 week ago - 8 years 1 week ago#154739by LouisGac
you can add your site's header and footer to a LimeSurvey template, that would be very easy to do.
To integrate a survey inside your CMS page you have 3 possibilities:
1. Use an iFrame (easy and fast)
2. Create a processwire module that will query the LS database and recreate the frontend (very long work)
3. Integrate Yii inside Processwire so you can directly call the LS method inside a Processwire module (hard, maybe not doable)
2. iFrame should not be used to build an application. But it's a correct solution to mashup applications. Most of the survey applications use iFrames to be embedded in another page. They don't cause any CSS issues: only the CSS of the iFrame is loaded inside the iFrame. They can be responsive: it just need some JS both on host and iframe.
Real question is: should a survey be embedded in another page? If it's very short and displayed on a computer screen: why not. But in mobile first approach, showing the survey in a new tab seems just better.