Git Product home page Git Product logo

faqman's People

Contributors

josht avatar mark-h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

faqman's Issues

Update ranking?

Is there a way to update the rank? I tried to drag the order in the manager, that did not work.

new feature: FAQ Set TV

custom TV that lets select the FAQ by ID. perhaps a multiselect dropdown with ID and Names listed.

I reckon it could be useful.

The argument « &limit » is not working

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

new feature: add questions from front-end

here's a rough description fo the idea:

  • a single field form (chunk?) in the front-end to let users add their own questions
  • they all get listed in the "submitted/incoming" FAQ Set
  • you can then pick one, add answer, adjust the question if necessary and move it to the appropriate FAQ set

some extra functionality (for the future roadmap maybe :D ):

  • optionally ask for email and auto send reply when its ready
  • ability to search and sort incoming questions in the back-end (to see what if any questions get asked repeatedly)
  • when questions are submitted from front-end - add optional extra step of providing a quick search result from existing faq's before submitting their question.

Q: Supporting other RTEs

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?

Make FAQ set count available in template

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>

Unique id for each Q&A set

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.

Question field possibly too short

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.

Blank first question / answer

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;
}

Ability to mark FAQ sets and individual items as inactive

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.

faqMan not working with TinyMCE RTE or CKEditor on modx 2.4

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.

Add a custom id to each question and answer

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".

'Description' contents is converted to number

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

Fatal Error with MODX 2.3.1

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?

Package Metadata Issues

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

Fatal error after upgrade to 2.2.0-rc1 due to IndexManagerController

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

Upgrade to 2 broke it

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.)

Getting extra divs before the main loop

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!

Unknown column 'faqManItem.name' in 'where clause'

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.

MODX3 Get List Error

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"

On MySQL 8, a `rank` field needs to be escaped

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.

Toggle Answer Previews

Remove button "Toggle Answer Previews".
Put the answer inside a rowexpander. That way you don't have to load all the answers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.