Giter Club home page Giter Club logo

bootstrap4's People

Contributors

akarmanov avatar hduchesne avatar pvollenweider avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap4's Issues

Grid layout mixins are not ordered

Current behavior

When adding a new grid/layout component, can can choose several mixin that allow to

  1. CREATE ABSOLUTE AREAS
  2. CREATE CONTAINER
  3. CREATE HTML5 SEMANTIC ELEMENTS
  4. CREATE ROW AND COLUMNS
  5. LIMIT THE NUMBER OF ELEMENTS

This order is really not intuitive and should be

  1. CREATE HTML5 SEMANTIC ELEMENTS
  2. CREATE CONTAINER
  3. CREATE ROW AND COLUMNS
  4. LIMIT THE NUMBER OF ELEMENTS
  5. CREATE ABSOLUTE AREAS

Update root choicelist for navbar

It would be great to be able to select our custom root from a page picker. For that I would like to have a new choice in the root choicelist which enable the mixin below.

[bootstrap4mix:customNavbarRoot] > jmix:templateMixin mixin
 extends = bootstrap4nt:navbar
 - customRoot (weakreference, picker[type='page']) < 'jnt:page'

curentPageNode is not manage properly in navigation

<c:set var="curentPageNode" value="${jcr:getMeAndParentsOfType(renderContext.mainResource.node,'jnt:page')}"/>
return an array but is not managed as his.

e.g. If I create this hierarchy Page Lvl0 -> Lvl1 -> Lvl2

if I add a navbar in Lvl2 and select currentPage as starting point, curentPageNode is equals to [node /sites/i8/lvl0/lvl1/lvl2, node /sites/i8/lvl0/lvl1, node /sites/i8/lvl0]

to fix this we have to check if currentPage is not empty and extract the first element

<c:if test="${fn:length(curentPageNode) > 0}">
    <c:set var="curentPageNode" value="${curentPageNode[0]}"/>
</c:if>

Migration BootstrapV3 -> V4 : some missing components...

We are migrating our references Jahia templates from Bootstrap V3 to BootstrapV4.

Definition :


[bootstrap3nt:navBarItemLanguageSwitcher] > jnt:content, bootstrap3mix:navBarItem, jmix:studioOnly
 - typeOfDisplay (string, choicelist[resourceBundle]) = 'isoLocaleCountryCode' mandatory indexed=no < 'isoLocaleCountryCode', 'languageCode', 'doubleLetter', 'letter', 'nameInLocale', 'nameCurrentLocale', 'flag'

in file:
BootstrapV3 definition

Associated view

But there is no equivalent in Boostrap V4... is it possible to add it in the V4 standard components?
Regards,

REM: same problem for bootstrap3nt:navBarItemLoginForm, bootstrap3nt:navBarItemSimpleSearchForm, etc... that are not migrated.

Delete/rename node when grid is renamed

when you rename, or change the row type (predefined or customs...) the module create new node and don't remove existing one.
It would be great to rename row node or to move the content from one to another in order to keep the content and also to be sure the system doesn't create "ghost" node.

in the image below, I just change predefined grid to custom grid to select a 7/5 (new node col0 and col1) instead of 8/4 and this create a couple of dead node (main & side) I cannot see in edit mode.

rename_element

Modal for login

It would be great to have a modal for the login instead of the current dropdown list

language switch html structure and css

Hi,
I tested the new switch language bar and it is very helpful !
However, I think it could have an issue in the HTML generated which use a <a class="nav-link"> instead of a button. The result with the default BS4 css is the following :
swith_with_link
The link in the language switcher use the primary color and I am not sure it is the expected color for this element.
If you use a button you have this result :
swith_with_btn
So you don't need to write a specific css and the color of the button is the default color of the text...
The code with the button is that one :

<div class="btn-group">
    <button type="button" class="btn dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        FR
    </button>
    <div class="dropdown-menu">
        <a class="dropdown-item" href="#">EN</a>
    </div>
</div>

Bug in grid-rename script

It seems that there is a bug during list rename

String newListName = currentListName.replace(gridName + '-', '').replace(gridName, '');

For instance here is the result of the output

 - Rename [grid1-main] to [1-main] /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/grid1-main
 - Check if list [1-main] exists and if it's empty for path /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/1-main
 - Rename /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/grid1-main to /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/1-main

Need to check if it's old ghost content, and if yes, then we should report it. Here is an example:

rename

Brand should have a brand-mobile logo property

Hi,
Bootstrap is used to design responsive website, and most of them have 2 different logo, one for large screen and one for mobile screen.
So I think it should be useful to have a property available by default in the Brand mixin to manage mobile logo.

Cannot install Bootstrap4 module from Jahia Studio

I tried to install Bootstrap4 module from Jahia Studio but it gave the following error:

Package https://store.jahia.com/files/live/sites/private-app-store/contents/modules-repository/packages/Bootstrap4/Bootstrap4-4.6.2/bootstrap4_package_4.6.2.jar need the license org.jahia.core to be installed.

Add a way to add listLimit on grid & layout component

Fix version:

Functional requirement

As a

I want to

In order to

Acceptance criteria

Given

When

Then

Designer notes

Developer notes

QA notes

Documentation notes

Non-functional requirements

  • Security
    • Identity management
    • Authentication
    • Authorization
    • Session management
    • Data validation
    • Error handling
  • Performances
  • Migration
  • Documentation

Add id or name to btn-link to be able to use them in jExp goals

I created a button (collapse) to display or not a Form.

lien_btn_collapse

I want to create a Goals in jExperience to track click on this collapse.

link_ID_jExp

But, to be able to track the action jExperience needs a ID or a Name into the link and for now we don't have one.
So, we have to :

  • option 1 : define an arbitrary ID/Name

  • option 2 : offer a field in the contributor UI to fill an id or a name to the link.

Maybe option 2 is better because the link ID has to be "stable" in the time in order to keep the tracking history safe.

code_btn_collapse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.