On Mon, Oct 17, 2016 at 11:03 AM, Bilgin Ibryam <bibr...@gmail.com> wrote:

> Hi Martin,
>
> On 16 October 2016 at 15:52, Martin Grigorov <mgrigo...@apache.org> wrote:
> > Hi Bilgin,
> >
> > The footer is replaceable, see https://github.com/apache/
> > isis/blob/master/core/viewer-wicket-ui/src/main/java/org/
> > apache/isis/viewer/wicket/ui/components/footer/FooterPanelFactory.java.
> > It uses ComponentType.FOOTER as a key.
> > Check the other ComponentTypes for what else is possible to be replaced
> > directly by providing your own factory.
> > Some other small things, like the logo and app name, are exposed in the
> > Guice config.
>
> I've seen component types, but to replace a footer I have to touch
>
> IsisWicketApplication
> ComponentFactoryRegistrarDefault
> ComponentFactoryAbstract
> create my panel, html, css...
>

As far as I remember all I had to do when I needed a custom footer was a
custom factory + a panel (java & html).
I didn't need to touch the application and the registrar.


>
> I think if we give the users ability to customise the existing footer,
> it will be an easy win.
>
> It is already possible to disable the theme selector through
>
> isis.viewer.wicket.themes.showChooser=false
>
> and we can add similar features for the  breadcrumb and bookmarks too.
> I can do that for breadcrumbs, but the bookmark one is slightly more
> complicated for me.
>
> And last but not least, if I can provide my own html snippet for the
> footer text, it will be enough. Then the whole UI is customisable w/o
> touching 5-6 java classes.
>
> WDYT?
>

IMO the current way is better because by providing your own FooterPanel you
decide where exactly to put the text (left, middle, right), what font to
use, etc.
If it is just a text then most probably won't look good enough for everyone.


>
> PS: as for the broken theme, it is not giving a good first impression
> to new comers who would try the few options on the UI. And hiding the
> broken template will be easy though configuration. I'll do a PR for
> it.
>

I think the proper way is to update Wicket-Bootstrap dependency. This will
remove Amelia from the list of available themes.
But the upgrade might break the current UI for some themes too...

We have seen in the past that not all themes look perfect as is. That's why
there are overrides like
https://github.com/apache/isis/blob/d023786e74f4f16c57cb67e38c08c7e63f9036fe/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/bootstrap-overrides-darkly.css
The list of themes is just to show that is relatively easy to customize the
UI for your needs. I guess the best we can do is to explain this in the
documentation.


> Cheers,
> B.
>
>
>
>
>
>
>
>
>
> >
> > About the Amelia theme - this has been reported several months ago.
> Amelia
> > theme has been deprecated in Bootswatch, and after that in
> > Wicket-Bootstrap. It is just that Isis uses old versions of Wicket &
> > Wicket-Bootstrap.
> > I believe also the problem (another ticket by Dan) with the three-state
> > checkbox (CheckboxX) is due to the old version of WB.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Sun, Oct 16, 2016 at 4:08 PM, Bilgin Ibryam <bibr...@gmail.com>
> wrote:
> >
> >> Hi all,
> >>
> >> I've started using ISIS for a project and so far my experience has
> >> been really good. With very little code, I've managed to achieve quite
> >> a lot. Also adding the addons was quite straight forward.
> >>
> >> Now I need few UI customizations and couldn't find an easy way.
> >>
> >> I've already created an improvement ticket [1] but also wanted to
> >> check what are other doing in this aread.  For example I want to
> >> completely disable/hide the bookmarks panel that appear on hoover, it
> >> is a little bit annoying. Also I'd like to customize the footer
> >> content completly, but it seems it is hardcoded.
> >>
> >> Cheers,
> >>
> >>
> >> [1] https://issues.apache.org/jira/browse/ISIS-1518
> >>
> >> --
> >> Bilgin Ibryam
> >> Camel Committer at ASF & Integration Architect at Red Hat
> >> Blog: http://ofbizian.com | Twitter: @bibryam
> >>
> >> Camel Design Patterns https://leanpub.com/camel-design-patterns
> >> Instant Apache Camel Message Routing http://www.amazon.com/dp/
> 1783283475
> >>
>
>
>
> --
> Bilgin Ibryam
> Camel Committer at ASF & Integration Architect at Red Hat
> Blog: http://ofbizian.com | Twitter: @bibryam
>
> Camel Design Patterns https://leanpub.com/camel-design-patterns
> Instant Apache Camel Message Routing http://www.amazon.com/dp/1783283475
>

Reply via email to