-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add a "quotes" multi-value text field in the external mentions content type. #1001
Comments
These are the current fields for that content type: So this addition would presumably be something like:
Sound OK? We need to give attribution for the quote. There is an existing "Link to author(s)" field, but what if the author isn't linkable? Should we also have a Anything else? Other suggestions on the details of implementation? |
I was thinking that this should be a multi-value field, in case there may be multiple quotes in the same source that we'd like to add. So
Link fields allow for an "Optional URL" setting, which is enabled for the current "Link to author(s)" field, and which allows to add an author name w/o a link to it. We can do the same for the new "Link to quoter" field (in the case of videos or podcasts, the person that makes the quote might not be the author/owner of the site/platform where the mention was published). |
So on the "Link to quoter" field, we want a "Required Title" (because all quotes should be attributed) but an "Optional URL" (because there may not be a link to the person being quoted). And I'm assuming that the "Link to quoter" field only allows one entry, right? In a single "External mention", a single person can give multiple quotes. But trying to allow multiple people giving multiple quotes via a single External Mention seems problematic. [EDIT] If the URL is optional, then that field should be called just "Quoter" (or something like it) since it isn't necessarily a link. |
This looks great, but can we change the label from "Quoter" to "Quote author"? :) Let's also make sure this field is hidden on the node view displays (since we will be pulling them out via a view instead) |
That's done. Fields are added to the content type, but hidden on the default display. |
I was going to close this issue (since the fields are now added) and link to an example for reference. One such example is https://backdropcms.org/node/5012/edit. But then I noticed that although we give the verbal instruction "If you include a quote, you must give attribution in the "Quote author" field following," in that example, that quote doesn't have attribution in the "Quote author" field. Which makes me wonder if we need to add some conditional validation to the node edit form: if the "Quote(s)" field is non-empty, make the "Quote author" field required. @jenlampton, @klonos? |
@klonos, @yorkshire-pudding, I've created a PR #1011 that adds validation to the quote author field if a quote is present. |
@bugfolder - I don't have a way to test it, but comparing the code to the elements on the page, it looks good. |
This came up in a thread in Zulip, where we were discussing the mentions to Backdrop in the recent Dries Q&A session in DrupalCon Pittsburg:
@keiserjb
@cellear
@klonos
The text was updated successfully, but these errors were encountered: