Announcement

#1 2015-08-01 15:29:46

RichardB
Member
2015-08-01
10

Photos and albums in one sorting sequence - is it possible?

Hello/Hi/Greetings,

Thank you for your script to import a menalto gallery installation to Piwigo - works perfectly.

I found your app when looking for alternatives to Menalto Gallery as I have several Gallery installations that I would like to find an alternative application for. So far (and I have only been looking at it a couple of days, so forgive me if I have missed something) all is well. I have imported a small photo database without problems and it looks good.

I have one question about sort order. The sort orders available apply only to the photos - I would like to be able to sort the albums and photos inside any album in one sort order - that is, say: photo, album, album, photo, photo, album for instance.

Menalto's Gallery does this by default and all my databases depend on this facility - some are extremely large and I can't, at this stage, re-organise the way they work.

Here is an example of what I mean:

The Gallery version of the database: http://www.forncett.info/pictures/main.php?g2_itemId=13
You will see that we have a single photo first and then a number of albums, all are ordered by title - they form one sequence. In this application when one sets the sort order, title, date, etc it affects all the photos and the albums and puts them into one sequence.

Here is the same in Piwigo: http://www.forncett.info/gallery/index.php?/category/1
the single picture now comes at the end of the sequence instead of the beginning.
I can set an order for the albums (manually only, so far as I can see) and a default sort order for the photos but not one that creates one sequence for both albums and photos. Albums always come before photos.

Thanks,

Richard
-----
Piwigo version: - don't know where to find the version - it tells me: You are running Piwigo latest version
PHP version: 5.4.43
MySQL version: 5.5.42-cll
Piwigo URL: http://www.forncett.info/gallery/

Offline

 

#2 2015-08-01 17:24:44

BenGonGon
Member
2009-12-02
10

Re: Photos and albums in one sorting sequence - is it possible?

Hello,
you can find version of piwigo on admin panel homepage.
Best regards

Offline

 

#3 2015-08-01 17:30:39

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Photos and albums in one sorting sequence - is it possible?

As your request, yes it "could" be possible, but requires changes in how the category content is handled.

In standard, it's not.

You could achieve the same presentation with albums description. (I recommend the plugin Extended Description)

Example : http://galerie.strangeplanet.fr/index.php?/category/3
The image is not clickable but i could. It's an image available in the album it self but hidden http://galerie.strangeplanet.fr/picture … category/3

Here is the album description is

Code:

[photo id=1494 size=XS link=no]

And I added this to the image name

Code:

<!--hidden-->

Offline

 

#4 2015-08-01 18:34:25

RichardB
Member
2015-08-01
10

Re: Photos and albums in one sorting sequence - is it possible?

thank you very much.

I will study what you have written and see what I can do.

Richard

Offline

 

#5 2015-08-02 10:42:32

RichardB
Member
2015-08-01
10

Re: Photos and albums in one sorting sequence - is it possible?

I checked Extended Description and your comments - I see that this is a work around to get a single picture before the albums (using the containing album's description) but what I need is the ability to have filing sorts which include albums and pics in one sequence - in this album the 3 album/categories at the top of the page would need to file in the same alphabetic sequence as the pictures to make senses of the arrangement

http://www.forncett.info/gallery/index.php?/category/8

In Gallery2 I also use manual arrangements, but again this involves pics and albums in the same sequences.

My existing databases contain myriads of this type of filing so individual workarounds would not solve my problem.

I see, looking at the database structure, that Piwigo has separate tables for Categories and Images whereas Gallery2 has just one table for Items - some items 'can contain children' and are therefore albums, others 'cannot contain children' and are therefore pics - hence the one sequence filing.

It is a pity (to me) - I thought I had found my solution, particularly after the perfect importing of the data!

Anyway, all the best and thank you for your help,

Richard

Offline

 

#6 2015-08-02 14:00:16

flop25
Piwigo Team
2006-07-06
7037

Re: Photos and albums in one sorting sequence - is it possible?

no one already did what you want. And for good reasons: visitors hardly understand that folders and files are mixed together since OS don't do that, and it's also much harder to browse when everything is mixed since we miss subalbums
BUT Piwigo is flexible and here you will find every possible solutions http://piwigo.org/doc/doku.php?id=user_ … :customize


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

 

#7 2015-08-02 19:56:54

RichardB
Member
2015-08-01
10

Re: Photos and albums in one sorting sequence - is it possible?

flop25 wrote:

BUT Piwigo is flexible and here you will find every possible solutions http://piwigo.org/doc/doku.php?id=user_ … :customize

I had already gone through the forum postings to read any on sort orders but although there are a number, none concerned with my query.

I have had a look at that page you indicated, thank you - the only thing there that seems appropriate to my question seems to be the Local Configuration (I also checked the templates but they did not seem to be appropriate).

In the Local Configuration I looked at all the options you list - the ones appropriate seemed to be

$conf['order_by_custom'] = ' ORDER BY date_available DESC, file ASC, id ASC';
and
$conf['order_by_inside_category_custom'] = $conf['order_by_custom'];

I searched on the Forum for all mentions of those and read through the postings and also tried variations in my config file - but again they seem only to apply to the order of the photos so I am still where I started.

I would be happy to see if I could configure such an order (one order sequence including photos and albums) if I knew where to begin.

Thanks,

Richard

Offline

 

#8 2015-08-02 20:27:50

flop25
Piwigo Team
2006-07-06
7037

Re: Photos and albums in one sorting sequence - is it possible?

you need to change the template, intercept the template variable, sort them etc


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