Code: Select all
<control type="button" id="90163">
<include>ButtonHomeSubCommonValues</include>
<label>Documentary</label>
<onclick>ActivateWindow(VideoFiles,Documentary,return)</onclick>
</control>
Code: Select all
<control type="button" id="90163">
<include>ButtonHomeSubCommonValues</include>
<label>Documentary</label>
<onclick>ActivateWindow(VideoFiles,Documentary,return)</onclick>
</control>
I think you're right about that (from the wiki):xbs wrote:AFAIK Video Library is for Movies and TV Shows... not sure if you can have Documentaries in Library mode.
That is exactly what Ive done XBS. Added a source and browsed to my documentaries folder. Named it Documentary. But when I go into movies>Documentary its just a blank window.xbs wrote:In Videos files > add Source (with documentaries) and name the source Documentary.Code: Select all
<control type="button" id="90163"> <include>ButtonHomeSubCommonValues</include> <label>Documentary</label> <onclick>ActivateWindow(VideoFiles,Documentary,return)</onclick> </control>
Byron,byron wrote:I think you're right about that (from the wiki):xbs wrote:AFAIK Video Library is for Movies and TV Shows... not sure if you can have Documentaries in Library mode.
Library.HasContent(string)
Returns true if the XBMC libraries have the content from string. Valid Strings are (Video, Music, Movies, TVShows, MusicVideos, MovieSets)
I wasn't thinking about that, but I just tried the above method with one of my SMB shares and it worked fine, thanks for straightening it out![]()
@ Truman...I might have misunderstood what you were looking for, but if you want this on the "Videos" submenu, just restore the original file and add the above button (with an unassigned id like 90199) to HomeSubMenuVideos instead. On the plus side you have it scanned into your library now
xbs wrote:Main menu Movies points toi.e. Movies nodeCode: Select all
<onclick>ActivateWindow(VideoLibrary,Movies,return)</onclick>
Videos submenu Movies points toi.e. Movies title (node)Code: Select all
<onclick>ActivateWindow(VideoLibrary,MovieTitles,return)</onclick>
To add a documentary button to main menu you need to add a button in home.xml pointing to 'VideoFiles,Documentary'.
Next you need to add a video source named it Documentary (folder name/path can be anything).
It's much easier to add the Documentary folder/path to FavouritesCode: Select all
<onclick>ActivateWindow(VideoFiles,Documentary,return)</onclick>
Code: Select all
<control type="label"> <!-- [DEBUG.LABEL] -->
<posy>690</posy>
<posx>0</posx>
<width>1280</width>
<height>28</height>
<align>center</align>
<aligny>center</aligny>
<font>font.12.bold</font>
<textcolor>white</textcolor>
<label>FolderPath: $INFO[Container.FolderPath] | FolderName: $INFO[Container.FolderName]</label>
</control>
Code: Select all
<onclick>XBMC.ActivateWindow(VideoLibrary,videodb://1/1/22/)</onclick>
My 13 year old son actually suggested how to fix the text over run. He said maybe the words too long so I changed the label to docos and its good now. But will use your file again as I would rather it say Documentarys.byron wrote:@truman...try downloading that again and reinstalling it and see if that works, I also fixed the text over run.
@dom...that's pretty slick, I wanna pick your brain on that one
Dom DXecutioner wrote:here's a suggestion...
assuming that you're using the library mode and you have scanned the items to your library; you can then place a "debug" label in your MyVideoNav.xml like so:
then navigate to your library hub and select movies, then genres and then documentary... at this point you will be shown all of your movies in the documentary genre; the debug label will show the path within the database, which begins with videodb://, as displayed in the screenshot i've attached...Code: Select all
<control type="label"> <!-- [DEBUG.LABEL] --> <posy>690</posy> <posx>0</posx> <width>1280</width> <height>28</height> <align>center</align> <aligny>center</aligny> <font>font.12.bold</font> <textcolor>white</textcolor> <label>FolderPath: $INFO[Container.FolderPath] | FolderName: $INFO[Container.FolderName]</label> </control>
the next step will be to make the OnClick of the button as follows:and you should be good to go... you can do this with any genre in your library!Code: Select all
<onclick>XBMC.ActivateWindow(VideoLibrary,videodb://1/1/22/)</onclick>
just my 2 cents
Ive already replaced IncludeshomeSubMenuItem with the original one just to take it back to basics again.byron wrote:so did that work? I was thinking you should also replace the IncludesHomeSubMenuItem with the original as well. Keep in mind that I was not using this in library mode
You ask and will not have a Solution!Truman wrote:Ive already replaced IncludeshomeSubMenuItem with the original one just to take it back to basics again.byron wrote:so did that work? I was thinking you should also replace the IncludesHomeSubMenuItem with the original as well. Keep in mind that I was not using this in library mode
I added your updated home.xml file and it now displays Documentarys properly in the home menu. Bu unfortunately I still cant get it to link to my actual documentarys.
Thanks anyway for trying to help out.
You ask and will not have a Solution!Truman wrote:Ive already replaced IncludeshomeSubMenuItem with the original one just to take it back to basics again.byron wrote:so did that work? I was thinking you should also replace the IncludesHomeSubMenuItem with the original as well. Keep in mind that I was not using this in library mode
I added your updated home.xml file and it now displays Documentarys properly in the home menu. Bu unfortunately I still cant get it to link to my actual documentarys.
Thanks anyway for trying to help out.
xbs wrote:It's much easier to add the Documentary folder/path to Favourites