webExplorer
webExplorer

Reputation: 1025

Liferay Disable AlloyUI and use Only bootstrap.css

While using liferay portal 6.2,

Liferay provides both alloy ui and twitter bootstrap for ui development.

My questions -

1) Is it a good practice to use both alloy ui AND twitter bootstrap?

2) Can we disable any one of the above in Liferay so that the application uses only one css? How?

Upvotes: 2

Views: 3091

Answers (1)

1) Is it a good practice to use both alloy ui AND twitter bootstrap?

It was designed that way in 6.2, it is a proper and recommended practice. Read this official blog post, it should explain a lot of your doubts.

2) Can we disable any one of the above in Liferay so that the application uses only one css? How?

In Liferay 6.2 Bootstrap is used more for providing responsive site layouts and overall graphic design (buttons, icons, etc.). Alloy UI gives Liferay many rich dynamic JS components like calendars (Calendar portlet is based on that), diagram designers, carousel etc. Historically, Allou UI was a part of Liferay (so it was there for a longer time), and Bootstrap is available in Liferay since 6.2 but now they are tightly integrated.

Of course you can try to remove one of them (for example by creating an _unstyled and coding everything from scratch), but it is not recommended approach and you will definately loose much Liferay's UI OOTB functionality.

Upvotes: 4

Related Questions