Separation of the gallery and the index page

I read the section about separation of gallery and index page and understand everything up to the point of 'Set the custom index page option to gallery and your are all set.'

How can i set the custom index page option to gellery for example in the default theme?

Comments

  • That is a theme option. However specifically the default theme does not support the option so it is disabled. See the option class method `getOptionsDisabled()`.
  • Thanks for your reply

    I tryed the effervescence theme and have gallery index page link set to gallery so that indexpage.php would be the automatic home page for the site.

    Is there a way to make the home page a zenpage page?
    so that the content could be controlled from within admin. I want the home page to be multi lingual with content blocks pulled in from a zenpage page. Is this possible or is there some other way around this so i can have the home page multi lingual with somehow content in the admin for each language.

    I hope you know what i mean.

    It would be great to have a feature to have a home page that is not the gallery and the content controlled within admin.

    Thanks
  • You could make a copy of your pages.php script as the custom page. (or you can simply have the index.php script include the pages.php script.) Add to the front of the script

    `checkForPage($titlelink);`

    Where $titlelink is the `titlelink` of the "page" you want to display.

    Note, the Zenpage theme provides an example of this complete with the option to select the page--the `Homepage` option.
  • Thanks, that works great. Just a couple of things.
    If i create for example a zenpage page with the name 'home' and that would be used as the site home page then i would have for example www.mysite.com/ as well as www.mysite/pages/home with the same content. I suppose this could be sorted with canonical.

    I looked at canonical in the html. I have html_meta_tags switch on with canonical ticked and see that the canonical then points to www.mysite.com/en/page/gallery/ so basiclly my home page canonical in the source code is pointing to my gallery page.

    Also On the sitemap is www.mysite.com/en_US/ and www.mysite.com/sk_SK/ as site is multi lingual.

    I think this can potentially cause problems with SEO.

    Is there some way to sort this out?
  • acrylian Administrator, Developer
    Yes, but except that the home page must be an unpublished Zenpage page. That means it is not referenced anywhere in menus etc so there is no duplicate issue (unless you are logged in which is default behaviour).

    http://www.mysite.com/pages/gallery/ is actually the gallery index url which is by default the home page. I agree that is unfortunate. But the homepage function is a theme based one so the system Zenphoto does not know about that. Reason is that not all themes do support Zenpage at all.

    We would have to consult about that later on. I fear for the coming 1.4.4 release it is too late for new features or such change as that probably would have to be tied into the core.

    In any case please open a ticket on the GitHub issue tracker.
  • Do you have any advice what the best way to do this would or should i forget about having a seperate home page like this within zenphoto?

    Would there be any way to remove the canonical on the home page and custom make it on the home page but still have it working on the other pages with html_meta_tags?
  • It is a bug that the home link was to the gallery page. This is corrected in the 1.4.4 development.
  • Thanks for your reply and help.

    Any idea when the 1.4.4 will be ready?
  • It is in Beta test now. Release is for the first of the year. http://www.zenphoto.org/news/zenphoto-1.4.4-beta
  • Excellent, I look forward.

    one question regarding urls. I see that the language urls that are clicked on are not displayed in the browser. Is it possible to have them displayed in the browser so instead of the same url being displayed for each language like mysite.com/zen-photo, that the clicked on url like mysite.com/zen-photo/sk would actually display mysite/zen-photo/sk. instead of reverting to mysite.com/zenphoto/ ?

    Also do you know if the current setup of redirecting from mysite.com/zen-photo/sk/ to mysite.com/zen-photo/ is a problem for search engines if the mysite.com/zen-photo/sk/ is in the sitemap?

    Again thanks for all your help.
  • acrylian Administrator, Developer
    No, Zenphoto does not need it in the url, it is just for switching. That is not easily changed. Therefore we added the possibility to use subdomains for real different addresses:
    http://www.zenphoto.org/news/multi-lingual-sites
Sign In or Register to comment.