![]() |
|
Separation of the gallery and the index page - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Separation of the gallery and the index page (/thread-10645.html) |
Separation of the gallery and the index page - dazzy - 2012-12-10 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? Separation of the gallery and the index page - sbillard - 2012-12-10 That is a theme option. However specifically the default theme does not support the option so it is disabled. See the option class method Separation of the gallery and the index page - dazzy - 2012-12-10 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? 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 Separation of the gallery and the index page - sbillard - 2012-12-11 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
Where $titlelink is the Note, the Zenpage theme provides an example of this complete with the option to select the page--the Separation of the gallery and the index page - dazzy - 2012-12-11 Thanks, that works great. Just a couple of things. 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? Separation of the gallery and the index page - acrylian - 2012-12-11 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. Separation of the gallery and the index page - dazzy - 2012-12-12 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? Separation of the gallery and the index page - sbillard - 2012-12-12 It is a bug that the home link was to the gallery page. This is corrected in the 1.4.4 development. Separation of the gallery and the index page - dazzy - 2012-12-12 Thanks for your reply and help. Any idea when the 1.4.4 will be ready? Separation of the gallery and the index page - sbillard - 2012-12-12 It is in Beta test now. Release is for the first of the year. http://www.zenphoto.org/news/zenphoto-1.4.4-beta Separation of the gallery and the index page - dazzy - 2012-12-12 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. Separation of the gallery and the index page - acrylian - 2012-12-12 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: |