Closed (fixed)
Project:
Feeds
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Dec 2018 at 15:56 UTC
Updated:
17 Dec 2021 at 13:49 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
thallesFollow the patch!
Comment #3
thallesComment #4
megachrizHm, I'm not a fan of install messages. People can already find a link to the config page on the module list (see image). What would be a good idea though is explaining on the feed type listing page, that you first need to create a feed type and then a feed to import content.
Comment #5
thallesHi MegaChriz, I think these messages can help beginners, because when I installed my first modules I did not know where to configure them. I'm not an expert, so I always think that things in Drupal could be easier and more affordable. By chance, reading an article from Dries, he talks about being the time to make D8 a framework / cms easier for users and developers.
I think this is a strong point of Webform, as it always seeks to help, with messages and videos, I understand that messages can pollute the screen, but in some cases are very useful.
I believe these colleges are what make the tools stronger and more powerful.
About the feed type listing page, is it always good to help, as you might imagine, in the message or content format?
Note: I use a translation tool, so if something looks wrong or offensive, it may not be a very good translation.
Comment #6
megachrizOkay, I agree that it can be helpful for new users to know where to go next after enabling the Feeds module. And I agree that all the help texts provided by the Webform module can be a good help for new users.
I do think that the message "Thanks for installing Feeds" is not needed, because the message above already says that Feeds got enabled. The Webform module provides links to their online documentation:
That would probably a good idea to do here too. I think it should link to the following page:
https://www.drupal.org/docs/8/modules/feeds/creating-and-editing-import-...
Personally, I would omit the "Congratulations" message. To me that sounds like as if I just completed a hard task, while I only enabled a module.
A link to the feed type listing page like you already did in the patch from #2 could a be a good idea too to add to the install message. Maybe the message should be something like this "Start with adding a feed type".
As said in #3, I think the feed type listing page should mention that first you need to create a feed type and then - to actually import content - create a feed of that type.
The message for the feed type listing page should be implemented by implementing the hook
hook_help(). For the install message, it would be nice if we can implement that in a similar as Webform does, if that is feasible (I mean: only do this if we don't need tons of code to achieve that).Comment #7
thallesWhen you say similar to webform, do you talk about the visual part?
Comment #8
megachrizFor Webform I meant both the visual and functional part.
Thinking about it again, maybe it's enough for Feeds to only display the message once, to keep it simple. The Webform install message stays on the module page until you click the cross.
Comment #9
thallesThe close button, I find it more difficult, but the small Info Messages module (https://www.drupal.org/project/info_messages) or we can create the css and add the icon
Comment #10
megachrizOkay, forget about the Webform approach then. Just adjust the messages from the patch in #2 so that incorporates my other suggestions from #6.
Comment #11
thallesFollow the patch!
Comment #12
thallesComment #13
thallesFollow!
Comment #14
megachrizThanks for the patch! Here is my review.
We don't need these lines. Drupal says by default which modules got enabled.
The link to the guide should be in a placeholder, just as you did for the other link (which placeholder is
@url_settings).The reasons for why an url in a translatable string should always be a variable are the following:
Comment #15
megachrizAnother remark: I think it's better to name the placeholder for add feed type link
@feed_type_add_urlinstead of@url_settings, because that better describes the url that is going to be displayed.Comment #16
thallesFollow the patch!
Comment #17
thallesFollow the correct patch!
Comment #18
darvanenWhilst I agree with @MegaChriz that we don't need to say congratulations or tell the user that the module has been installed, if the module is installed with a batch of others that generate messages, there is no way currently to know that this message is about Feeds.
Suggest full message text be (links abbreviated for readability here):
To configure feeds, start by adding a <a>feed type</a>. For more information <a>read the guide</a>.Comment #19
srilakshmier commentedUpdating the patch based on #18. Please review.
Thank you
Comment #20
darvanenThanks @srilakshmier :)
Normally I would set this NW and tag it 'needs tests' but I don't know how this module likes that handled and I notice a maintainer has been in here and not mentioned it, so I'll leave it to the maintainers to decide if this needs a test.
RTBC
Comment #22
megachrizThanks for contributing. Committed #19 with one small change: for links I found out that the placeholder
:(instead of@) is recommended in D8/D9.See https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Rend...
@darvanen
Maybe not every little thing needs a test, so I committed it without one this time. Thanks for reviewing!
Comment #23
bohus ulrychFYI when installed from command line:
Everything looks ok.
But now I'm going to install this module:
Same will happen again if I uninstall module (drush -y pmu feeds) and install it again.
Tested with Drupal version 9.2.10
Thanks