Page 1 of 1
Auto-Insert On New FAQs
Posted: Wed Oct 19, 2022 11:05 pm
by Grunt
Is it possible to have information automatically inserted on new FAQs? For example, I click on 'Add New FAQ' and then in the answer box, the below is automatically inserted into the 'Your Answer' box.
Re: Auto-Insert On New FAQs
Posted: Thu Oct 20, 2022 6:39 am
by Thorsten
Hi,
you can use the TinyMCE Template Plugin for that:
https://www.tiny.cloud/docs/plugins/ope ... /template/
It's enabled by default in phpMyFAQ.
bye
Thorsten
Re: Auto-Insert On New FAQs
Posted: Thu Oct 20, 2022 7:04 am
by Grunt
I don't see anything in the documentation on how to do anything with that. Do I implement a template in javascript like the example you linked? Where would I put that file?
Re: Auto-Insert On New FAQs
Posted: Thu Oct 20, 2022 7:41 am
by Thorsten
Hi,
I'll check this.
bye
Thorsten
Re: Auto-Insert On New FAQs
Posted: Fri Oct 21, 2022 11:51 am
by Thorsten
Hi,
here's the fix for this:
https://github.com/thorsten/phpMyFAQ/co ... b597b1231a
Will be released with 3.1.8 soon!
bye
Thorsten
Re: Auto-Insert On New FAQs
Posted: Sat Oct 22, 2022 4:58 am
by Grunt
Fantastic, thanks.
Re: Auto-Insert On New FAQs
Posted: Sat Oct 22, 2022 6:23 am
by Grunt
Question, if I am using URL to point to a file, what's the source path that it starts looking at?
Re: Auto-Insert On New FAQs
Posted: Sat Oct 22, 2022 7:03 am
by Grunt
Also, I replaced my footer.php with the latest version that implements the changes you've made and I can see my custom template in Add New FAQ on the administration side (YAY!). However, if I am in the non-admin section of phpMyFAQ and click on Add New FAQ>Insert>Template, it tells me "No templates defined".
Re: Auto-Insert On New FAQs
Posted: Sat Oct 22, 2022 8:56 am
by Thorsten
Hi,
I didn't added that possibility to the frontend, as this should be reduced.
bye
Thorsten
Re: Auto-Insert On New FAQs
Posted: Sat Oct 22, 2022 9:46 pm
by Grunt
I'd like to request that as a feature. I could see where non-admin users would find certain templates useful. Personally, I like entering new FAQs from the front end page just because it's quicker/easier to get to.
Re: Auto-Insert On New FAQs
Posted: Sun Oct 23, 2022 8:54 am
by Thorsten
Hi,
I think it needs to be thought bigger as you need to add own templates easily as well. What do you think?
bye
Thorsten
Re: Auto-Insert On New FAQs
Posted: Sun Oct 23, 2022 7:20 pm
by Grunt
I could see value in being able to have "personal" templates, but I imagine that requires a much larger effort for implementation. I think templates could be fleshed out to:
Universal: Available to all, including guest
Corporate: Available to authenticated users
Group: Available to users in a group
Personal: Available only to the authenticated user that created it
I'm not a developer myself, but I imagine some of these scenarios would require significantly more work to implement than others. In addition, a GUI method of saving something as a template would be required, I think this would be fantastic to have in itself.