Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.1k views
in Q2A Core by
Hi guys. Id like users can submit only question and tags, without content. How can I disable content field when submit or update a post? what files I have to look?

tnks! q2a is an amazing project!
Q2A version: 1.7

1 Answer

0 votes
by
edited by

Well, Q2A is quite prepared to handle the content of the questions everywhere. So most likely you will have to hide everything by CSS if you don't want to seriously change the core:

In admin/posting set

  • Default editor for questions: Basic Editor
  • Minimum length of question body: 0

In admin/layout set

  • Custom HTML in <head> section of every page:

<style>
#content, #q_content {
    display: none;
}
</style>

Whenever a piece of text is not relevant replace it with a blank string (e.g.: "More information for the question:" is used as a title for the content field)

by
Tnks a lot pupi! Ill try it.

I'm trying to make a website like quora in my language/country. Questions in quora dont have content right?
by
Sorry, I don't know Quora, I just know Q2A :)
by
lol.. its a popular english q2a website. I wish that in my website users can only submit questions with tags (without content).
by
Ok... but isn't that exactly what my suggested approach does?
by
Yes, it is and it worked well. But it hide the answers content in moderation page too :(
...