[gatein-dev] Favicon - Request for comments (and suggestions)

Nicolas Filotto nicolas.filotto at exoplatform.com
Thu Nov 28 11:07:47 EST 2013


I'm not sure I understand what you want to do, you want to be able to
modify the favicon from an extension (like sample-extension) or from an new
portal (like sample-portal)?


On Thu, Nov 28, 2013 at 3:40 PM, Juraci Paixão Kröhling <
jpkroehling at redhat.com> wrote:

> All,
>
> We have a request to display a specific favicon for JBoss Portal, and it
> seems there's no "easy" (or correct) solution in place for that right now.
>
> The first intuitive solution would be to override the templates, to make
> them link to the desired favicon. This doesn't scales, as the whole
> template is duplicated and it will only cause headaches in the future.
>
> The second possible solution would be to incorporate the path to the
> favicon into the properties file, but this means having a fixed path to
> the favicon, which is a step backwards from what there is today: in one
> of the templates for /portal, it gets the favicon for the context path,
> so, if the current portal is /example-portal, it currently gets the
> favicon at /example-portal/favicon . With the favicon coming from the
> properties file, this would not be the case anymore, as all favicons
> would be coming from a fixed path.
>
> The third solution would be to build a FaviconService, that would take
> care of determining the proper favicon path. It sounds to me that this
> is a bit of overkill, but would be a clean solution.
>
> Of course, the best option would be to be possible to override the
> favicon from /portal, but this doesn't seems to be possible at the
> moment. It seems that only templates are overriden.
>
> Before proceeding with the third solution (which seems the most
> desirable as of now), I would like to get your comments, opinions and
> suggestions on how this could be better handled.
>
> Best Regards,
> Juca.
>
>
> _______________________________________________
> gatein-dev mailing list
> gatein-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/gatein-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/gatein-dev/attachments/20131128/f3f317e4/attachment-0001.html 


More information about the gatein-dev mailing list