Giter Club home page Giter Club logo

Comments (7)

rosrosros avatar rosrosros commented on June 9, 2024

+1

from umbraco-vorto.

alecrt avatar alecrt commented on June 9, 2024

+1

from umbraco-vorto.

anth12 avatar anth12 commented on June 9, 2024

+1

On every Umbraco site I have used Vorto I have added a script that does exactly this, it also removes the language selection from each individual property and places it the header of the admin screen & adds a globe icon next to the property to indicate it is multilingual. Personally I try to keep the forms as compact as possible so am not a fan of having a language selection dropdown on very property.

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on June 9, 2024

@anth12 care to share your code?

from umbraco-vorto.

anth12 avatar anth12 commented on June 9, 2024

@mattbrailsford sure I will dig it out, but I'm warning in advance its not pretty ;).

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on June 9, 2024

@anth12 a starting point is better than nothing :)

from umbraco-vorto.

anth12 avatar anth12 commented on June 9, 2024

Ok so I normally use Umbraco's manifest to inject the following:

$(window).on('vorto-ready', function() {

    //Ensure its not already been setup by another property firing duplicate events
    if ($('.umb-panel-header .vorto-tabs').length == 0) {

        setTimeout(function() {
            //Move the tabs
            $('.vorto-tabs').first().insertAfter($('.btn-toolbar.pull-right.umb-btn-toolbar'));

        }, 10);
    }
});
.vorto-tabs {
    display: none;
}

.umb-panel-header .vorto-tabs {
    display: inline!important;
    float: right;
    margin-top: 15px;
}

    .umb-panel-header .vorto-tabs .vorto-tabs__item {
        height: 29px;
        border-bottom-color: #ddd;
    }

    .umb-panel-header .vorto-tabs .vorto-menu {
        left: auto;
        right: -1px;
    }

And finally I modify the vorto.js file to fire the 'Vorto-Ready' ($(window).trigger('vorto-ready');) event- obviously this is not an idea solution as upgrades overwrite the change.

I do much prefer having one central language selector but using the standard customisation in Umbraco I'm not sure it would be possible.

from umbraco-vorto.

Related Issues (20)

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.