|
Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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> Last edited by Danielc2; 10-07-2011 at 09:24 AM. Reason: Added code tags around the code in the post. |
#2
|
||||
|
||||
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> |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
That's the idea
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
Tags |
folder, phoenix, views |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |