Member
Member
craigh   2017-07-24, 11:20
#1

Hi - I am trying to make the dynamic album option limit itself to the current album.
Am using the Default theme with some minor changes to image size.
Is there a way to change the parameters in album.alb to limit it within a single album or tree ?

example file.alb
WORDS="2009"
THUMB=0
FIELDS=exifdatetimeoriginal
CONSTRAINTS=inalbums=1&inimages=1&unpublished=0

If this file can't be changed to limit scope to e.g. Trips or Trips\London Albums can the search.php for the theme be changed to limit all searches (given a dynamic album seems to be a search) to the current folder.

Have done lots of searching but can't find a definitive answer or enough code to make the change with confidence.

Craig

Administrator
Administrator
acrylian   2017-07-24, 11:36
#2

Try to change the last line to the inalbums parameter:
CONSTRAINTS=inalbums=youralbum&inimages=1&unpublished=0

It also supports a list of album names like youralbum1,youralbum2 and so one. Note that subalbum (folder) names include their parent(s).

Member
Member
craigh   2017-07-24, 11:59
#3

thanks for your quick reply.

I thought i had tried that but all now working.

I used the on disk name e.g. Cars/Mazda-CX3 and it worked

Thanks again

Junior Member
Junior Member
stewartcristan   2017-07-25, 12:05
#4

Hi,thanks from my side also i had same problem.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.