Open ailopezglez opened 6 years ago
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 deface
or by using our own ViewHooks
(https://github.com/decidim/decidim/pull/2114), which were added so that participatory spaces could extend the homepage.
@xabier @htmlboy What are your thoughts regarding this topic
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 ViewHooks
, not with the last PR by @jsperezg.
@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 core
.
Apart from that, why is this issue on consultations
, when it's about highlighting some unspecified content? I think this issue should be tackled from the main repo, clarify which are the needs and why these needs appeared (that is, what caused these needs), and then decide if this should be done only for a given application or globally.
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:
decidim/decidim
is neededViewHooks
. This requires you to send a PR to decidim/decidim
to render the view hooks wherever you need it to.Understood @mrcasals I will create a PR. Meanwhile I will merge these changes and deploy all the new stuff in our staging.
@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:
Has custom typography Has no Call to Action button Has no background image
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.
@xabier OK then, I guess.
@jsperezg re-send the PR to decidim-core
so we can merge it
@xabier , @mrcasals I will recreate the PR
@xabier , @mrcasals The PR is open again and passes all tests
thanks @jsperezg , waiting for @mrcasals to accept the PR
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: