josht / faqman Goto Github PK
View Code? Open in Web Editor NEWFAQ Manager is an Extra for MODx Revolution that helps you manage your FAQs from within the Revo backend.
License: GNU General Public License v2.0
FAQ Manager is an Extra for MODx Revolution that helps you manage your FAQs from within the Revo backend.
License: GNU General Public License v2.0
Fatal error: Uncaught Error: Class 'IndexManagerController' not found in core/model/modx/modmanagerresponse.class.php:190 Stack trace:
#0 core/model/modx/modmanagerresponse.class.php(78): modManagerResponse->instantiateController('IndexManagerCon...', 'getInstanceDepr...')
#1 core/model/modx/modmanagerrequest.class.php(187): modManagerResponse->outputContent(Array)
#2 core/model/modx/modmanagerrequest.class.php(135): modManagerRequest->prepareResponse()
#3 manager/index.php(59): modManagerRequest->handleRequest()
#4 {main} thrown in core/model/modx/modmanagerresponse.class.php on line 190
Retry for issue #22
custom TV that lets select the FAQ by ID. perhaps a multiselect dropdown with ID and Names listed.
I reckon it could be useful.
Is there a way to update the rank? I tried to drag the order in the manager, that did not work.
I've just upgraded from 1.3 to 2 and it stopped working. I get a HTTP Error 500.
mod_fcgid: stderr: PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /core/components/faqman/model/faqman/faqman.class.php on line 30, referer: http://XXXXXXXXXX/manager/?a=workspaces
(Ive removed the site info as it's a site that hasn't been released yet.)
The links to PHP actions should use lowercase filenames. For environments that are strict about this, we are getting errors that the processors are not being found. Changing these references to lowercase solved the issue.
For example:
https://github.com/josht/faqMan/blob/develop/assets/components/faqman/js/mgr/widgets/items.grid.js#L14
I've set my own TPL which loops through my entries correctly, but I'm getting one set of the default
<div class="faqman-question"></div> <span class="faqman-answer"></span>
tpl placed before mine in the html. Might just be me being stupid... Thanks!
Hey Josh.
A long time ago I helped you with getting support for TinyMCE in editing faqMan questions (PR #7)... nowadays, I'm working on modmore.com and we released a commercial editor Redactor.
I'd love to get faqMan working with Redactor as well and am happy to provide you with a PR for that, but I'd like to know what you think the best way to handle that is.
The method of implementing RTEs that I described here works for TinyMCE, Redactor and I think one other RTE but I forgot which one. So basically, by tearing out the hardcoded TinyMCE loading and replacing it with the more generic loading of RTEs, it can support more. But then it would lose the tiny-specific faqman settings, as I don't think it's easy to pass those along in the generic scheme of things.
An other alternative would be to implement both. Use the specific tinymce loading/syntax for TinyMCE, but the generic method otherwise. Which would lead to extra code.
Thoughts?
Just wanted to let you know this extra installs fine in MODX3 but the list processor I think is misnamed for the new framework.
[2021-11-23 10:36:17] (ERROR @ /www/core/src/Revolution/modX.php : 1784) Unable to load processor for action "mgr/set/getList", it does not exist as an autoloadable class that extends \MODX\Revolution\Processors\Processor, and also not as a file in "/www/core/components/faqman/processors/mgr/set/getList.class.php"
Search for answers inside grid doesn't work.
Modx 2.7.1
PHP : 7.2.22
FAQ Manager : 2.0.0 rc3
Hello,
I have 20 questions in FAQ Manager.
I am calling FAQ Manager like this :
[[!faqman? &set=1
&tpl=product-fr
&limit=3
]]
It display all the questions, not 3.
Thank you for checking this problem
I would like to be able to see just the top three faq's in a set.
Sometimes you want to hide a certain FAQ set or an individual FAQ item, but you don't want to remove it completely, just want them hidden from a list of FAQs for now.
For example on the modmore site we have a FAQ overview page that shows all the sets so you can browse them easily. That also includes a set about the MODX weekend, which happened last year so isn't really relevant anymore, and it could also show FAQ sets that aren't supposed to be accessible yet (e.g. FAQs for an unreleased product). An active or hidden flag on sets and items would make it possible to manage that better.
here's a rough description fo the idea:
some extra functionality (for the future roadmap maybe :D ):
Aloha,
I really need to add a custom id to each question/answer.
So the first question and answer would be #howTo
The second question and answer would be #whenTo
and so on and so on...
Could there be an input field when creating the new question and answer?
I'm sure it takes editing of the snippet but it's a little over my head.
I need it to generate the id so the jQuery switcher I am using can find which "answer" to collapse and expand on click of the "question".
We have this odd issue since upgrading to PHP7.2 (from 7.0)
'Update FAQ Set' on an entry sets the content to '0' after a save. When you enter a number it is correctly stored.
Our setup:
MODX Revolution 2.6.5-pl (traditional)
Database: 10.2.18-MariaDB
Database charset: utf8
PHP Version 7.2.10
??
Remove button "Toggle Answer Previews".
Put the answer inside a rowexpander. That way you don't have to load all the answers.
There should be a variable available in the FAQ Set template to get the number of questions that are to be displayed in each set.
Example
<h3>
[[+name]] ([[+count]])
<div>[[+description]]</div>
</h3>
Anyone else getting this error?
Installed via Revo Package Manager (MODX Revolution 2.2.14-pl (traditional)), added first question and got this error message:
[2014-07-11 19:44:50](ERROR @ /assets/components/faqman/connector.php) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'faqManItem.name' in 'where clause'
)
Strange thing is: Data gets saved and is accessible via the Component. But when i make a simple [[faqman]] call in my chunk I only get a blank page.
Can we have a unique identifier so when creating a accordion style FAQ set each question and answer has its own id as a reference point for the href.
It will create a overlay
Hi Josh
I seem to be receiving a number of package metadata issues for faqman:
2014-11-13 10:24:43 Could not load package metadata for package faqman.
2014-11-13 10:25:39 Could not load package metadata for package faqman.
2014-11-13 10:25:40 Could not load package metadata for package faqman.
2014-11-13 10:25:56 Could not load package metadata for package faqman.
2014-11-13 10:25:58 Could not load package metadata for package faqman.
2014-11-13 10:26:05 Could not load package metadata for package faqman.
2014-11-13 10:26:05 Could not load package metadata for package faqman.
2014-11-13 10:26:25 Could not load package metadata for package faqman.
Regards
Without the special escaping, faq entries don't show up.
faqMan line 68 adding the $modx->quote
call does the trick:
$ci->sortby($modx->quote($sortBy), $sortDir);
Alternatively that could be applied only when sortBy is not rank
.
with Tinymce it appears to save the answer content. but doesn't
using ckeditor, the dialog doesn't even close when saving a Q/A
both editors log the same error:
[2015-09-15 12:28:08](ERROR @ /assets/components/faqman/connector.php) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'faqManItem.name' in 'where clause'
)
Most recent versions of everything.
Supposedly, it is possible for a question to be more than 100 characters long... I don't believe it, but in the off-chance that it happens, this should probably be accounted for.
There is only one tab so you could use the modx-panel instead.
I've noticed on my install that faqman seems to be adding an empty question / answer pair first
The reason I noticed is that I added a + sign with css to show the questions and have collapsible answers:
.faqman-question:before {
content: "+";margin-right:10px;
}
Whenever I try to use [[faqman? &set=1
]], I get this PHP Fatal Error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 523800 bytes) in mysite.com/root/core/xpdo/xpdo.class.php on line 1749
*obviously here, mysite.com/root/ is different.
Is there anything I can do about that?
Hi,
it would make sense to allow RTE for the faq-answers to format with links, em, strong, etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.