Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • sitefaitbienfait Friend
    #1091055

    Hi,

    In Joomlart Advanced Custom Module, is it possible to have a way

    • to order items (it’s not very user-friendly to order via Advanced textbox…)
    • to have empty line when ckicking on + button (for now, the + button is duplicating the line)

    Best regards


    1. FR_ACM_MODULE_ORDER_ITEMS
    Saguaros Moderator
    #1091192

    Hi,

    Which type of JA ACM module are you referring to?

    sitefaitbienfait Friend
    #1091236

    Hi,

    Here, it is the sample layout – style 1

    But it’s the same to each type.
    For example :

    Here :
    https://static.joomlart.com/images/ja-template/ja-shoe/documentation/clients-settings.jpg

    If i want to change client order, it’s not eay…
    It could be nice to have 2 links (up and down) for each line.

    or here :
    https://static.joomlart.com/images/ja-template/ja-smallbiz/documentation/car-slideshow-setting.png

    If i want to change order of slides in slideshow,…

    Regards

    Saguaros Moderator
    #1091248

    I got your point, I will share with the team for further consideration.

    sitefaitbienfait Friend
    #1091508

    Hi,

    I find a way, may be it’s not the best, but it’s working :

    In
    mod_ja_acm/admin/tmpl/field-jalist.php
    Just add

    <span class="btn action btn-up" data-action="up_row" title="Up Row"><i class="icon-arrow-up fa fa-arrow-up"></i></span>
    <span class="btn action btn-down" data-action="down_row" title="Down Row"><i class="icon-arrow-down fa fa-arrow-down"></i></span>

    behind the delete row button

    And in
    mod_ja_acm/admin/assets/jalist.js

    Add

    JAList.prototype.up_row = function (btn) {
            var $btn = $(btn),
                $row = $btn.parents('tr').first();
                $row.prev().before($row);
        };
    
        JAList.prototype.down_row = function (btn) {
            var $btn = $(btn),
                $row = $btn.parents('tr').first();
                $row.next().after($row);
    
        };

    behind

    JAList.prototype.delete_row = function (btn) {
            var $btn = $(btn),
                $row = $btn.parents('tr').first();
            if (!$row.hasClass('first')) {
                $row.remove();
            }
        };

    Could you consider to add it in the next releases of JA ACM Module (or find a best way to do it)

    Best regards.

    Saguaros Moderator
    #1092820

    Thanks for your sharing. And yes, I will share with the team for further consideration.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 5 replies, has 2 voices, and was last updated by  Saguaros 6 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum