Seaching doghouse using the dogTag number

A place for Doghouse related posts.
Post Reply
User avatar
FineWine
Site Admin
Posts: 852
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

Seaching doghouse using the dogTag number

Post by FineWine »

Hi team. I am updating my own and the Moderators InfoTemplate so that I can search doghouse using the dogTag number:

Code: Select all

!--IFdogTag<div class="field"><div class="title">[translate:DogHouse]:</div><div class="text"><a href="http://doghouse.bruji.com/dvds/doghouse?utf8=✓&keyword=[key:dogTag]">[key:dogTag]</a></div></div>ENDdogTag--
The actual dogTag number does appear in the doghouse search box on the right hand side of the web page but I still get: Sorry nothing was found, please try your search again with a different term. So does this mean that you can not search doghouse by its own dogTag numbering system? or have I used the wrong dogTag search term code?

This method of searching becomes particularly useful with the new MacOS 10.11 El Capitan Split Screen View facility where you can have two browser windows open side by side and you can check and compare different doghouse listings for the same dvd when there are always several versions and not all with the right data. It should make Moderating easier and faster.

Cheers
User avatar
Conor
Top Dog
Posts: 5343
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Seaching doghouse using the dogTag number

Post by Conor »

The dog tag number is unique, so there is no need to run the search. Hence why it's not part of the search index that is actually on a different server yet than the database (speed).

You can link directly to the movie via the dog tag information with the following:

Code: Select all

<!--IFdogTag<div class="field"><div class="title">[translate:DogHouse]:</div><div class="text"><a href="http://doghouse.bruji.com/movie/[key:dogTag]">[key:dogTag]</a></div></div>ENDdogTag-->
If you are moderating and want to end up directly on the edit interface you can change the link to:

http://doghouse.bruji.com/dvds/[key:dogTag]/edit

Confusing that "movie" changes to "dvds". That was all my fault when designing the second version in Ruby and not knowing about Ruby. The original was in PHP.
User avatar
FineWine
Site Admin
Posts: 852
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

Re: Seaching doghouse using the dogTag number

Post by FineWine »

Conor wrote:If you are moderating and want to end up directly on the edit interface you can change the link to:

http://doghouse.bruji.com/dvds/[key:dogTag]/edit
That would be a great help in the Moderators InfoTemplate :idea: - thx
Conor wrote:Confusing that "movie" changes to "dvds". That was all my fault when designing the second version in Ruby and not knowing about Ruby. The original was in PHP.
Well I'm easily confused so that confounded me. :?: :)
Waldbaer
Addicted to Bruji
Addicted to Bruji
Posts: 109
Joined: Wed Sep 05, 2012 6:23 pm

Re: Seaching doghouse using the dogTag number

Post by Waldbaer »

Such a link sounds useful indeed. I use your template quite often, please let me know (e.g. by answering here) when your update is ready. :)
User avatar
FineWine
Site Admin
Posts: 852
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

Re: Seaching doghouse using the dogTag number

Post by FineWine »

In the end I have chosen to code in 4 forms of finding and editing a movie in Doghouse using my Moderators Info View Template:

The first method is in the Title bar where if you click on the Bruji dog it will take you directly to the 'dogTag' listed Edit page.

Code: Select all

href="http://doghouse.bruji.com/dvds/[key:dogTag]/edit"> <img src="Images/BrujiDog.png" alt="BrujiDog" title="BrujiDog
The second method is if you click on the movie title in the Title bar it will take you directly to that dogTag listed movie in Doghouse.

Code: Select all

http://doghouse.bruji.com/movie/[key:dogTag]">[key:title]
The third method is if you click on the Doghouse image/icon in the footer bar it will take you to the Doghouse movie site and list ALL movies of that title in Doghouse and you can then choose which one to edit.

Code: Select all

"http://doghouse.bruji.com/dvds/doghouse?utf8=✓&keyword=[key:title]"
The forth method is if you click on the Doghouse number in the Info panel it will also take you directly to that dogTag listed movie in Doghouse.

Code: Select all

http://doghouse.bruji.com/movie/[key:dogTag]">[key:dogTag]
This may be a bit of an over-kill but you now have plenty of ways to get to a particular movie in Doghouse to either view or edit or both.

As at posting I have sent the updated Moderators Info View Template: to Conor.

Hope these changes are to everyone's likening. :D
Waldbaer
Addicted to Bruji
Addicted to Bruji
Posts: 109
Joined: Wed Sep 05, 2012 6:23 pm

Re: Seaching doghouse using the dogTag number

Post by Waldbaer »

Sounds very useful, all of them. It's many possibilities, but it does not sound like overkill, because everything is connected to its part in the interface. Great job! :)
User avatar
FineWine
Site Admin
Posts: 852
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

Re: Seaching doghouse using the dogTag number

Post by FineWine »

Waldbaer wrote:Such a link sounds useful indeed. I use your template quite often, please let me know (e.g. by answering here) when your update is ready. :)
Conor has uploaded the latest version to the Extra's page today.

Cheers and thx for using the template.
Post Reply