New Items first?

Permalink Browser Info Environment
Is there a way to tweak this code so that, when you add a new item, it defaults to the first position rather than the last? Right now, you have to use the up and down arrows to change the order.

Thanks

Type: Discussion
Status: New
Metaglyphics
View Replies: View Best Answer
hereNT replied on at Permalink Best Answer Reply
hereNT
It's pretty easy. In /packages/attributes_slider/blocks/attributes_slider/auto.js look for this line:

document.getElementById('ccm-attributesSliderBlock-imgRows').appendChild(imgRow);


and change it to:

$('#ccm-attributesSliderBlock-imgRows').prepend(imgRow);


then you should be good to go.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.