SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Phoenix
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2011, 10:47 PM
Danielc2 Danielc2 is offline
Sage User
 
Join Date: May 2011
Location: Holliston, MA
Posts: 5
Need help with a custom view

I created a view to display all movies from a folder on my hard drive called Movies. In my Movies folder on my hard drive I have sub-folders for each movie. When I run this view, it returns a list of the folders. I would like it to return the list of movies, not the list of folders. It seems like the flat="true" option does this. However, when I set this option, video files are displayed from ALL of my video folders, not just my Movies folder.

Here is the view I created. Very similar to a lot of the examples that have already been posted. However, I'm sure everyone's folder structures vary:

Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd">
<vfs>
      <views>
            <view name="dcc.vfs.video.movies" label="DCC Movies" flat="false">
                  <option name="root" value="/Movies/"/>
                  <option name="children-only" value="true"/>
                  <description>Display movies only</description>
                  <tag value="video"/>
                  <view-source name="phoenix.view.default.videofolders"/>
                     <presentation>
                      <sort by="title">
                     <option name="folders-first" value="false"/>
                        </sort>
                      </presentation>
                      </view>
      </views>
</vfs>
Does anyone know of a good way to get this view to return a list of movies?

Last edited by Danielc2; 10-07-2011 at 09:24 AM. Reason: Added code tags around the code in the post.
Reply With Quote
  #2  
Old 10-07-2011, 05:34 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
The way I handle these is to use 2 queries. Use the first to isolate the folder you want and the other to apply any presentation you need. Something like this:

Code:
  <view name="dcc.vfs.video.import.movies" label="DCC Movies" flat="false" visible="false">
    <option name="root" value="/Movies/"/>
    <option name="children-only" value="true"/>
    <description>Display movies only</description>
    <tag value="video"/>
    <view-source name="phoenix.view.default.videofolders"/>
  </view>

  <view name="dcc.vfs.video.movies" label="DCC Movies" flat="true" visible="true">
    <view-source name="dcc.vfs.video.import.movies"/>
    <presentation>
      <sort by="title">
        <option name="sort-order" value="asc"/>
        <option name="ignore-all" value="true"/>
      </sort>
    </presentation>
  </view>
That will solve those issues.
Reply With Quote
  #3  
Old 10-07-2011, 09:21 AM
Danielc2 Danielc2 is offline
Sage User
 
Join Date: May 2011
Location: Holliston, MA
Posts: 5
Wrems, thank you so much! That is exactly what I needed. Works perfectly now.

I am loving Phoenix! It looks fantastic and is giving me the power to setup my media center UI exactly the way I want it setup.
Reply With Quote
  #4  
Old 10-07-2011, 07:53 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
That's the idea
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
Reply

Tags
folder, phoenix, views


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete a custom view I made? les_bloom Diamond 5 03-30-2011 06:25 PM
Bug? Diamond Custom View Options crusing Diamond 3 03-26-2011 04:11 PM
Custom View problem maybe? nyplayer Diamond 6 03-07-2011 05:38 PM
Custom - list view only Bizarroterl Sage My Movies 9 01-06-2011 02:57 PM
Custom Schedule View Surfing A Single Channel? joe123 SageTV Software 1 02-26-2006 06:02 PM


All times are GMT -6. The time now is 07:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.