zenphoto forums » General Zenphoto Discussion

Button to return to main site?

(10 posts)
  • Started 12 months ago by lucasbuck
  • Latest reply from lucasbuck
  1. lucasbuck

    Junior
    Joined: Jun '12
    Posts: 9

    Sorry, I'm kind of new to web design. I've installed Zenphoto and was wondering if there was a way to setup a button or link in the gallery to return to my main site after visiting the gallery. Thanks for any info!

    Posted 12 months ago #
  2. Zenphoto support team
    fretzl

    Moderator
    Joined: Sep '08
    Posts: 553

    You mean you have Zenphoto separated from your main site ?
    Then you could code something like this in your theme pages:
    <a href="http://www.mainsite.com>link to mainsite</a>

    Or you can use <?php echo getMainSiteURL(); ?>
    This prints the URL of the main website as set by the "Website URL" option on the gallery options tab.

    Please try to familiarize yourself a bit with Zenphoto.
    The theming tutorial is always a good place to start.
    http://www.zenphoto.org/news/theming-tutorial

    Don't forget to read the Forum rules and usage resources
    Posted 12 months ago #
  3. lucasbuck

    Junior
    Joined: Jun '12
    Posts: 9

    Sorry, I may not have explained well. Like I said, new to design.
    I'm just using the default theme, which is fine. And I installed Zenphoto to \gallery on my website. So on my home page if they click the link for gallery, it goes there, but other than using the back button there's not a way to return to the main page.
    Instead of doing it that way, would it have been better to have zenphoto load into a frame on my site? Rather than going to the gallery itself? I wasn't sure how most folks did it.

    Posted 12 months ago #
  4. Zenphoto support team
    fretzl

    Moderator
    Joined: Sep '08
    Posts: 553

    So you made a link to gallery on your main site.

    You can of course use the same technique to make links to your main site on the gallery.

    Just put your link code into the theme pages where you want the link to appear.

    Don't forget to read the Forum rules and usage resources
    Posted 12 months ago #
  5. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,514

    Of course you could also use a frame/iframe but then no one will be able to link to anything in your gallery. fretzl explained what you need to do.

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #
  6. Wete

    Senior
    Joined: Jan '12
    Posts: 96

    Why don't you just use the built-in feature? There is a field in Settings -> Gallery where you have to put in the URL of your website and a name for ist. After that there is a link to your homepage in the breadcrump.

    Wete

    Posted 11 months ago #
  7. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,514

    Not even I am sure right now if all standard themes really support that..

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #
  8. Zenphoto support team
    fretzl

    Moderator
    Joined: Sep '08
    Posts: 553

    Thanks @Wete ! I forgot about that link being in the breadcrumb.

    It is supported by the default theme.

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #
  9. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,514

    Thanks for the confirmation, I meant we did setup all official themes with that a while ago.

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #
  10. lucasbuck

    Junior
    Joined: Jun '12
    Posts: 9

    Thanks again for all the help folks!

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.