Announcement

  •  » Requests
  •  » Option to set the page/album as default at home page

#1 2017-09-25 03:10:10

ceinmart
Member
2017-08-17
20

Option to set the page/album as default at home page

Hi ,

My suggestion is add at option configuration a field to set one page/album as default for home page .
For me, I wish set it to "index.php?/categories/flat" as my home page...


Piwigo 2.9.1
Operating system: Linux
PHP: 7.1.9 (Show info) [2017-09-24 22:09:11]
MySQL: 5.6.36-cll-lve [2017-09-24 22:09:11]
Graphics Library: ImageMagick 6.9.4-10

Last edited by ceinmart (2017-09-26 13:20:57)

Offline

 

#2 2017-09-26 11:37:47

eliz82
Member
Romania
2016-04-27
281

Re: Option to set the page/album as default at home page

I would also like FLAT view as default to be an option. Similar to Flickr.

In Flickr when you click a username it takes you by default to his photostream (flat view), not in the album view.

Offline

 

#3 2017-10-24 21:30:47

eliz82
Member
Romania
2016-04-27
281

Re: Option to set the page/album as default at home page

i just had a look at config php and i had some surprise. no idea when this parameter was implemented.

Code:

$conf['random_index_redirect'] = array(
    PHPWG_ROOT_PATH.'index.php?/categories/flat' => 'return true;'
    );

so now we can set a redirect for default. we can even redirect only for guests.
great modification, thanks to piwigo team.

Offline

 

#4 2017-10-24 23:36:21

ceinmart
Member
2017-08-17
20

Re: Option to set the page/album as default at home page

Nice!!
Work like a charm!!!
Thank you!


eliz82 wrote:

i just had a look at config php and i had some surprise. no idea when this parameter was implemented.

Code:

$conf['random_index_redirect'] = array(
    PHPWG_ROOT_PATH.'index.php?/categories/flat' => 'return true;'
    );

so now we can set a redirect for default. we can even redirect only for guests.
great modification, thanks to piwigo team.

Offline

 

#5 2020-05-06 12:12:28

mountwilson
Member
Zwischen den Meeren
2017-07-10
23

Re: Option to set the page/album as default at home page

Hi!

Perhaps I'm to dumb ...

I'd like to redirect 'index.php?/categories' to 'index.php?/page/my_additional_page'.

How would I do that?


Thank's for reading, Wilson

Offline

 

#6 2020-05-06 13:14:34

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Option to set the page/album as default at home page

Hi:-)

mountwilson wrote:

Hi!

Perhaps I'm to dumb ...

I'd like to redirect 'index.php?/categories' to 'index.php?/page/my_additional_page'.

How would I do that?


Thank's for reading, Wilson

euh in Additional page plugin, you ca chose 1 page is a home page !


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#7 2020-05-06 16:21:11

mountwilson
Member
Zwischen den Meeren
2017-07-10
23

Re: Option to set the page/album as default at home page

Yep, I know my home is pointing to another additional page which is using lightbox.

I want to completely disable/hide categories and replace it with another addition page.
My site has virtual albums and pages only, there's not a single physical album.

Thanks fir reading, Wilson

Offline

 
  •  » Requests
  •  » Option to set the page/album as default at home page

Board footer

Powered by FluxBB

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