THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 gestion de la position

(25-04-2016 12:44:55)


Bonjour,

Je me retrouve avec la problématique suivante :
voici ma table

CREATE TABLE `test_attribut`
(
    `id` INTEGER NOT NULL AUTO_INCREMENT,
    `attribut_id` INTEGER NOT NULL,
    `template_id` INTEGER NOT NULL,
    `position` INTEGER,
....

chaque template est composé de différents attributs
j'aimerai pourvoir changer la position d'un attribut
Si je m'appuie sur les class existantes
cela me change bien la position de mon attribut mais sans tenir compte de template_id
et donc réorganise la position de chaque attribut.

Je ne vois pas ou intervenir pour que dans

changeAbsolutePosition
movePositionUp
movePositionDown

il prenne en compte template_id et ainsi réorganise que les attributs appartenant à tel template_id

Offline

#2 Re: gestion de la position

(25-04-2016 16:33:32)


j'ai trouvé
Merci