Page 1 of 1

Seaching doghouse using the dogTag number

Posted: Fri Oct 16, 2015 11:18 pm
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

Re: Seaching doghouse using the dogTag number

Posted: Sat Oct 17, 2015 4:31 am
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.

Re: Seaching doghouse using the dogTag number

Posted: Sat Oct 17, 2015 6:02 am
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. :?: :)

Re: Seaching doghouse using the dogTag number

Posted: Sat Oct 24, 2015 6:39 pm
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. :)

Re: Seaching doghouse using the dogTag number

Posted: Sun Oct 25, 2015 11:22 pm
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

Re: Seaching doghouse using the dogTag number

Posted: Mon Oct 26, 2015 3:21 am
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! :)

Re: Seaching doghouse using the dogTag number

Posted: Tue Oct 27, 2015 6:38 am
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.