-
Notifications
You must be signed in to change notification settings - Fork 0
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
Banner in home #40
Comments
Hi @jsperezg @decidim/product! In order to highlight special content in the homepage, we currently have different options:
Are you sure that's something all instances need, or it's something only Barcelona, on one of its instances, need for some reason? Has this gone through the PX people before? The PR for this issue adds a lot of fields to the admin panels, which raise a few issues:
If this is something only Barcelona needs for some reason, we have better tools to modify the layout than adding inputs/fields indiscriminately. For example, the layout can be overriden and expanded either by using |
I'm not sure if this is core, but let's hear what @xabier has to say. |
@mrcasals thanks for your comments, they are very accurate, but this issue has been discussed elsewhere, this features is desired by more than Barcelona, check out this in a new instance of Decidim |
What @xabier says is on participa.castillalamancha.es |
@xabier for this case, I see a clear example where the suggested changes in the description of the issue do not work at all. The banner from Castilla-La Mancha:
The Castilla-La Mancha use case can be solved with |
@mrcasals I can prepare a prototype using ViewHooks but IMHO it will require changes in core as well. The intent of the hightlighted content banner is make it appeir before any other content. Does ViewHooks allow it? Can an engine put himself in self position? |
We can add a new hook in the homepage so you can add this, or you can use deface which allows this without touching Apart from that, why is this issue on I don't see this discussion anywhere. |
@mrcasals Do you know where can I find an example of ViewHooks + deface combined? I tried changing the extension of my viewhook partial to .html.erb.deface and it hangs because it is not able to find it. |
@jsperezg I think both options together won't play well. I see two options here:
|
Understood @mrcasals I will create a PR. Meanwhile I will merge these changes and deploy all the new stuff in our staging. |
This is so because they did a dirty adaptation, had they had a proper banner they would have used a Call to Action button, etc. Also the typography, I consider it to be design mistake. It is all due to the a need that is badly satisfied. This is why this feature can provide a good satisfaction of a known need, that is not exclusive of Barcelona. |
In order to highlight a message in the home, the intention is to develop a banner, according to the attached design.
The administrator must be able to fill in:
The text was updated successfully, but these errors were encountered: