Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2014-12-31 03:55:46

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

getting setup

I’ve installed every version of TTG over the years. I was hoping to get the CE4 update completed over xmas, but this has me stumped.

I’m using Publisher, Gallery, and Auto-Index. I’m have a Photos directory that integrates with my WordPress web site using the PHP Plugins. This currently works pretty well.

reekes.net/photos


I’ve read the docs for installing CE4. It often refers to installing Pages, which I do not have. I copied the contents of ttg-be and publisher as follows:

reekes.net/ttg-be
reekes.net/ttg-be/publisher

I created a gallery template that closely resembles my current one, and copied it here:

reekes.net/ttg-be/templates/gallery/gallery

So I can develop and test the new pages I’m building, I setup this directory to mirror my live directory:

reekes.net/stage/photos

Everything in stage is password protected (to avoid search engines or anyone crawling my site).

I setup a new Publisher instance in LR, created an album using the gallery template, and it uploads all the images to here:

reekes.net/stage/photos/test

Something is broken. The web page is mostly blank (white background, images to not appear, etc). I’ve read in the docs where it says this is likely to be a problem with my Site Info and the Shared Resources setting.

Try as I might, I cannot resolve the problem. Here’s what I find going wrong while loading the page. These are some of the 404 errors (file not found):

http://reekes.net/stage/photos/lib/css/style-common.css
http://reekes.net/stage/photos/lib/js/m … m.79601.js
http://reekes.net/stage/photos/lib/css/ … me.min.css
http://reekes.net/stage/photos/lib/css/ … ng.min.css
http://reekes.net/stage/photos/lib/js/j … 1.0.min.js
http://reekes.net/stage/photos/lib/js/magnific.js
http://reekes.net/stage/photos/lib/js/freewall.min.js
http://reekes.net/stage/photos/lib/css/print.css


I found those files are here:

reekes.net/ttg-be/lib

Am I suppose to copy /lib to a different directory?
What change do I need in my setup?


--Jim

Offline

#2 2014-12-31 05:16:03

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: getting setup

After looking at the TTG code, it looks like the variable TTG_SITE isn't getting set properly. In my template, there's this:

if (!defined('TTG_SITE')) {
    define("TTG_SITE", "http://reekes.net/stage/photos/");

Where is this variable suppose to be set?
What should it be set to?

Last edited by JimR (2014-12-31 05:41:31)


--Jim

Offline

#3 2014-12-31 05:29:30

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: getting setup

Have you tried Site Info > Website > Site Root ?

Ben will probably have to address this, but if stage/photos is password protected, then Publisher may not be able to get to where you want it to go to.

is /stage/photos/ an autoindex?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2014-12-31 05:54:00

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: getting setup

Have you tried Site Info > Website > Site Root ?

Tried setting it to everything obvious (to me at least). What should it be set to?

is /stage/photos/ an autoindex?

That will (eventually) be the "home" page for photos built with Auto-Index, just like http://reekes.net/photos is today.

At this moment I'm just trying to get one gallery working, so I can complete the design. So the only working page is the one gallery I've built.

if stage/photos is password protected, then Publisher may not be able to get to where you want it to go to.

Hmm, possibly. But I just tried removing the password protection and the page still doesn't load properly.

It's the same problem of trying to find the /lib directory, which it's looking for in TTG_SITE.

So I think I've got a problem with TTG_SITE not being set to the right location.

It's suppose to be inside of the template, or inside of /ttg-be/admin ?


--Jim

Offline

#5 2014-12-31 06:23:00

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: getting setup

Hi Jim, TTG_SITE is used for two purposes: as the location used as the basis of menu links, and as the basis for finding resources such as css files. The latter only applies if "Get shared resources from TTG CE4" is selected within the Share Resoirces section of the Gallery module.

Assuming you want the gallery navigation to send users to other sections of the site, you'd want this to point to http://reekes.net/. The shared resources option assumes that the lib/ directory resides at that location, which is the case for Pages installations. To get this working, either copy the lib/ directory and all of its contents from your gallery to the root of the site, or switch off shared resources for the template.

I hope that helps.

Offline

#6 2014-12-31 10:19:38

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: getting setup

I disabled the shared option, and finally got the gallery to look in the right place for its resources.

Seems like that option should ONLY be used with CE4 Pages. Setting this without Pages creates the problem I was having.


OK - onward to designing the new templates. Thanks!


--Jim

Offline

#7 2015-01-01 21:42:11

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: getting setup

JimR wrote:

Seems like that option should ONLY be used with CE4 Pages. Setting this without Pages creates the problem I was having.

Yep, hence titling the option "Get shared resources from TTG CE4 Pages" in the UI.


Matt

The Turning Gate, http://theturninggate.net

Offline

#8 2015-01-02 01:37:09

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: getting setup

It was the UI that got me confused, because it doesn't say it's for use with Pages.

Screenshot.jpg


Then after reading the docs I found they often refer to Pages, even when I'm not using pages.

Yet another thing that had me lost was setting up my staging site, which is on a subdomain (and the URLs were wrong in a couple places). Even after unchecking the shared option it was failing, which led me to believe this option wasn't a problem.

Oh well - got it working now. On to my next problem.


--Jim

Offline

#9 2015-01-02 01:56:11

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: getting setup

Then you should probably update to the latest versions.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2015-01-02 02:08:43

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: getting setup

That screen shot was from CE4-Gallery-613a (the most current version I'm aware of and the only version of CE4 I've installed).


--Jim

Offline

#11 2015-01-02 02:31:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: getting setup

well, by golly, you're right! I thought I'd looked at all the plug-ins to check that, but must have missed Gallery.

Hey, if CE4 Gallery is the only CE4 engine you've installed, that might explain the breadcrumbs issue you mentioned in another thread: http://community.theturninggate.net/top … readcrumb/

I'm guessing you'll need CE4 Autoindex as your top-level gallery folder for that to work correctly.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2015-01-02 09:19:03

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: getting setup

I'm guessing you'll need CE4 Autoindex as your top-level gallery folder for that to work correctly.

Auto Index is responsible for my top level folder /photos/, but it's not created or managed by Publisher.

I can't remember why I do it this way...but I'm guessing it was suggested long ago in a forum post.

Publisher is managing all the folders within /photos/ but not the actual /photos/ top level.

The way I create it is to export my Auto Index template, and then copy it's contents to /photos/.

I created /photos/ and then copied the files from the Auto Index template shown below.

/photos/autoindex.xml
/photos/index.php
/photos/lib/
/photos/setup.xml
/photos/template_index.php

Publisher is then set to have the root of /photos/ and I create all the albums from there.

Is there a way to have the top level /photos/ managed by Publisher with an Auto Index template?

That would mean creating a new Album Set, and then putting all of my existing Albums into it, right?

I'd have to think more how to manage this.

PS - I'll copy the above comment to my original post on this, to keep the thread together.


--Jim

Offline

#13 2015-01-02 09:59:01

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: getting setup

JimR wrote:

That screen shot was from CE4-Gallery-613a (the most current version I'm aware of and the only version of CE4 I've installed).

Well, it used to say "CE4 Pages" ... I guess it got cut off somehow. I'll remedy that for next update.


Matt

The Turning Gate, http://theturninggate.net

Offline

#14 2015-01-02 10:01:03

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: getting setup

JimR wrote:

Is there a way to have the top level /photos/ managed by Publisher with an Auto Index template?

Publisher needs to target a pre-existent non-publisher folder, into which it publishes. Using CE4 Pages, that's the /galleries folder; using CE4 Auto Index, it's whatever you create as your top-level. The folder itself is not publisher managed, but all of its contents should be.


Matt

The Turning Gate, http://theturninggate.net

Offline

#15 2015-01-02 10:08:30

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: getting setup

What I was getting at is the problem you were having with the Breadcrumbs showing /photo/ rather than Photos. My guess is that the autoindex you're using needs to be a CE4 autoindex in order for the breadcrumb title (or whatever it is) to be passed on to the galleries.

That screen shot was from CE4-Gallery-613a (the most current version I'm aware of and the only version of CE4 I've installed).

I interpreted this statement (probably incorrectly) to mean that the only CE4 engine you had was gallery.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#16 2015-01-02 10:31:51

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: getting setup

My guess is that the autoindex you're using needs to be a CE4 autoindex in order for the breadcrumb title (or whatever it is) to be passed on to the galleries

Somehow the words are confusing us sad

Every one of my image pages are generated by TTG.

reekes.net/photos/ is from Auto Index (but not managed by Publisher). I simply drop the exported template's files into /photos/ which picks up all the galleries created by Publisher.

Publisher creates all of the files below reekes.net/photos/

I've never used Pages. I only use Gallery, Auto Index, and Publisher.

I'm not aware of how Publisher could manage my top level folder at reekes.net/photos/ which is an index page to all of my galleries (created by Publisher).


Maybe, if I'm understanding this, I could have Publisher manage the /photos/ dir by having the root set to be my domain reekes.net and then have Publisher take over /photos/

I'm not sure if I could do that with Auto Index. I tried once and it didn't work.

I suspect I could do this with Pages, but I want the name of the dir to be /photos/ (not /galleries/)

My web site is:

reekes.net
reekes.net/resume

and the rest of my WordPress site, but for one the photos with is managed by TTG

reekes.net/photos
reekes.net/photos/01faces
reekes.net/photos/02portraits

and so on for the entire set of images and pages all managed by Publisher

Last edited by JimR (2015-01-02 10:38:58)


--Jim

Offline

#17 2015-01-02 10:45:26

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: getting setup

I realize you're using ttg, I was just unsure of which versions of the plug-ins you were using: CE3, CE4? I think I've got it now.

You can use Autoindex alone to house your galleries, you don't need Pages for that. You can target that Autoindex folder as Publisher's top-level galleries folder. In fact, that top-level galleries folder cannot be created by Publisher. Publisher will manage the albums and album sets you place within that autoindex folder.

In fact (again), Matt has a tutorial where he outlines using autoindex as a galleries page in a WordPress based site, which is basically what you're doing: http://ce4.theturninggate.net/docs/doku.php?id=ce4_102


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB