-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for pre-fill forms on the ask page #1009
Comments
Hi @fenbox , I'd like to try this task, thx! BTW, do we need the functionality of adding, updating, getting and deleting of a question template? |
Hi @hgaol, the function of managing templates can be implemented by plugins in the future, which is not part of the core program. |
Hi @fenbox and @shuashuai , how about using json format for {
"tags": [],
"title": "title",
"content": "Hello World",
...
} Cause I found it's not easy to parse markdown to get the metadata like tags, title. Pls let me know if any suggestion. |
From a technical point of view, this is indeed the case. Using json is more intuitive and easier to parse. |
I prefer markdown because markdown format will be more convenient for operators in non-technical industries to maintain, and there are already typical system cases.
Note In the tag section, only existing tags can be input. If a tag in template does not exist, it will not be displayed and not able to be added. |
I agree with the above point of view.
I also prefer this solution pr #1014 This solution simplifies the implementation of the technology, but it can be significantly more difficult for the user to use.
I'm sorry, I wasn't thinking in terms of user usage. |
Good point, sure, I'll update #1014 to use markdown format. |
updated to support markdown format. It'll use |
Is your feature request related to a problem? Please describe
As mentioned in #252, we need some pre-fill support when ask question.
Describe the solution you'd like
When visiting a link with a pre-fill parameter, the form content will be automatically filled.
Link:
/questions/ask?prefill={{ markdown_parameter }}
{{ markdown_parameter }}
:Result:
The text was updated successfully, but these errors were encountered: