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-08-21 09:35:30

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Search Broken

I'm really not sure why my search is broken.   It works, kinda, but then can't find all sorts of thumbnails and index.php's. 

had it working a while ago.. tweak this, fix this, modify that, break something else...

had search folder in ttg-be/publisher/search
tried moving and point to /search

iproof.me

Can somebody peak and tell me how I buggered this up?

Offline

#2 2014-08-21 09:40:39

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

Re: Search Broken


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

Offline

#3 2014-08-21 10:05:54

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Search Broken

the plugins are easy to verify version.  The publisher and ttg-be a touch harder.  I did update these per the instructions to upgrade.   Is there another way to verify these version?

Offline

#4 2014-08-21 10:19:20

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Search Broken

reloaded the files from the zip.. uploaded 
verified with the online admin ttg-be and publisher is unto date..

still goofy.

Offline

#5 2014-08-21 10:56:14

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

Re: Search Broken

when I go to iproof.me/search/ I get a search page that works as expected.

In your navigation, the link to the search page goes to iproof.me/ttg-be/publisher/search/index.php

I suggest changing the url in your navigation to /search/


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

Offline

#6 2014-08-21 11:52:12

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Search Broken

Ok.. Still Broke.
Forgot about the phpplugin.php setup for the drop down menus having a link to the old search location.
/ttg-be/publisher/search/

What I see as odd is the search results create links to files but have with a path   /search/galleries/.... 
but I suspect the files are  in /galleries/...

any ideas?

Offline

#7 2014-08-21 12:50:26

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

Re: Search Broken

/search/index.php/ gives me errors. (I don't think that final forward slash is needed, it might even be the problem)
but just /search/ is working fine.

try changing the navigation to just /search/  or /search/index.php (no trailing slash) as outlined here:
http://ce4.theturninggate.net/docs/doku … arch_setup

Last edited by rod barbee (2014-08-21 12:51:43)


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

Offline

#8 2014-08-21 23:49:01

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Search Broken

THANKS!!!   Rod
YEA it works now..

Guess the extra Slash hacked it all up.
Got to expect that from a hacker like me.

One more question if I can off topic.. before I visit your site and leave something.

Can you show a hacker how to use the ttg_grid_top and ttg_grid_bottom to insert externally created stuff from dreamweaver or the like?

trying to move geaward.com stuff to the much better TTG gallery at my other site  iproof.me

Offline

#9 2014-08-22 00:15:51

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

Re: Search Broken

I did that on my current, CE3 based site to add an Amazon book page: http://www.barbeephoto.com/books/recommended-reading/

//Amazon book page
function ttg_grid_top( $style, $path ) {
        if (G_PATH == 'RECOMMENDED-READING') {
            echo'
                 ...... all html for the content here.....

';
        return false;        //replaces grid on recommended books page with Amazon store page
        }
        return true;        //All other pages containing grids are processed as normal

} //END OF AMAZON PAGE

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 2014-08-22 00:50:54

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Search Broken

I really like this way for linking to other places with your recommended reading.  Saw this with aimhigh.nl site linking to PDF pages and really like it.
Not tackled this yet.  Fix the bugs I know rather than introduce more.

Path to do this seems like setting up 2nd instance of publisher, copy Pages Template to maintain same navigation/header, use auto index enabler for each PDF/External Link and setup site with publisher with various sets.  Then figure out how to add a drop down menu for the 2nd instance of publisher.

Your Articles and Books section has massive links and code.

I'm having a hard time seeing all that done in Pages as markdown
Even if you did the code outside with an editor, pasted it into Pages.
Or even doing it with AutoIndex Enabler, like aimhigh.nl must have been a huge task for each link.

I thought to setup the Media Area/Grid with No Content/PHPlugins Outlet and point to and externally edited code so I keep the navigation...
add this to pages setup for the page...

echo' TopGridDesignFromDreamweaver.html/php ';

Then I can tweak the one page of external code rather than doing edits in Pages,  export Pages/copy/push to site.. hope I don't hack and overwrite something else.

So I Must still be missing something.
Are you using Stages?  I've not peaked at that yet.

Offline

#11 2014-08-22 01:31:15

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

Re: Search Broken

echo' TopGridDesignFromDreamweaver.html/php ';

if it's content you want to include, then you'll need the html/php, not the link. If it's the page itself, then try echoing the reference to the page. I did this once before- included another page within the grid of a Stage page- and it worked. Just can't remember exactly what I did....

And it'll be a bit more involved than that. In phplugins you'll need to target the specific path to the TTG page where you want to insert the external content. So for each page, you'll need to add to the function with as many IF statements as you have pages to fill.

Your Articles and Books section has massive links and code.

Most of that is a leftover from my pre TTG site. I just took the html, cleaned it up a bit (probably not enough) and dropped it into the Page Copy field of a Stage page.

Last edited by rod barbee (2014-08-22 01:35:25)


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 2014-08-22 01:46:03

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Search Broken

thanks for the insight.

Did your recommended reading page use the Auto Index Enabler to setup the links?

I'm guessing that's what aimhigh.nl did for  http://aimhigh.nl/publications/

I'm hoping adding a new PDF or Link with a Separate Auto Index Enabler 2nd site is simple once it's setup.

Add new content by dropping in a new folder with content and auto enabler files.

Offline

#13 2014-08-22 02:57:02

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

Re: Search Broken

Did your recommended reading page use the Auto Index Enabler to setup the links?

No, it was originally an html page built with a table. I just coded that into the phplugins.php file and aimed it at this particular page.
When I redo it I'll likely try using an autoindex with autoindex enabler for the links.

I'm guessing that's what aimhigh.nl did for  http://aimhigh.nl/publications/

exactly


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

Offline

#14 2014-08-24 13:16:38

digital.wawa
Member
Registered: 2013-07-10
Posts: 2

Re: Search Broken

Hello,  just upgraded to CE4 for the search features.  I think that I followed the install wiki but when I use the search it finds all the search criteria across all my galleries. Is this normal or did I miss something, I expected it to search the current gallery.  Also when I moved the search template from "..\ttg-be\publisher\.." to the \search\ at the top level (as per instruction) it now breaks the breadcrumbs and will not return from whence it came.  I can get it to work nicely if I recode the nav sections to the specific path but that defeats the whole idea of a global based search routine does it not?

Dazed and confused.
Duane.

Offline

#15 2014-08-24 13:22:47

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

Re: Search Broken

Hi Duane, search is global. Can you provide a link so we can see how your breadcrumbs are appearing?

Offline

Board footer

Powered by FluxBB