Announcement

#1 2012-03-08 14:21:34

Brouno
Member
2006-07-07
8

Manual sorting Albums (prev. Categories)

Hi,

I just upgraded from 2.0.10 to 2.3.3

I'm a long date user of piwigo, with a big gallery photos(around 14000 pictures and 350 categories), used for a private photos album for my family

Previously ,I was able to manuel sort the categories (now albums) by editing the position field.
Using UI for that is very painful, 350 categories is long to move on ...

With this new version, how can I do that ?

Thanks a lot.

Bruno

Offline

 

#2 2012-03-08 14:28:00

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Manual sorting Albums (prev. Categories)

Hi Brouno,

You have your 350 albums at the same place? No hierarchy?

Deactivate javascript, this will avoid hiding the "position field".

Offline

 

#3 2012-03-08 14:54:47

Brouno
Member
2006-07-07
8

Re: Manual sorting Albums (prev. Categories)

Yes, no hierarchie ;-) I know it's not a good idea, but working fine as is since ... 2006 ! Thanks to pwg

I already modify the file     \admin\themes\default\template\cat_list.tpl

Line 3 :
jQuery(".catPos").hide();
by
jQuery(".catPos").show();

The field is shown, but when i change the value, there is no change after a save.
This is the "mouse sorting" which is saved.

Thanks

Bruno.

Last edited by Brouno (2012-03-08 14:57:40)

Offline

 

#4 2012-03-09 09:55:54

Brouno
Member
2006-07-07
8

Re: Manual sorting Albums (prev. Categories)

Hi,

I found my old question in the french forum : http://fr.piwigo.org/forum/viewtopic.ph … 42#p118042

Search here (in english) doesn't search in french forum.

So the tweak in 2.0.3 is working in 2.3.3 too.

Thanks for your time and this great photo gallery software :-)

Last edited by Brouno (2012-03-09 09:56:07)

Offline

 

#5 2012-03-09 10:22:54

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Manual sorting Albums (prev. Categories)

So the answer given by P@t is to open admin/template/goto/cat_list.tpl and delete lines:

<script type="text/javascript">
  jQuery().ready(function(){ldelim}
    jQuery(".catPos").hide();
    jQuery(".drag_button").show();
    jQuery(".categoryLi").css("cursor","move");
    jQuery(".categoryUl").sortable({ldelim}
      axis: "y",
      opacity: 0.8
    });
    jQuery("#categoryOrdering").submit(function(){ldelim}
      ar = jQuery('.categoryUl').sortable('toArray');
      for(i=0;i<ar.length;i++) {ldelim}
        cat = ar[i].split('cat_');
        document.getElementsByName('catOrd[' + cat[1] + ']')[0].value = i;
      }
    });
  });
</script>

Offline

 

#6 2013-05-20 04:17:52

dman
Member
2013-05-17
1

Re: Manual sorting Albums (prev. Categories)

I am a new user and hope to learn more. I hoped to manually sort photos in an album as well as sort albums in the parent album, but have not seen any way to do this. I set the sort to ‘manual sort’, but have no idea how to set items manually. The present post is the closest description of anything similar that I have found. However, if I delete this javascript, still, how do I assign the order to the items? Can you direct me to the documentation to do this?
Thank you for a great program!
Dave

Offline

 

#7 2013-05-20 17:29:16

flop25
Piwigo Team
2006-07-06
7037

Re: Manual sorting Albums (prev. Categories)

Hello check the screenchot attached
Next time don't dig an old thread thx


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact