Number of Films in Groups (1 Viewer)

Dachkennel

Portal Member
November 11, 2010
25
11
Home Country
Germany Germany
Hi there,

im very new into myfilm and curently into skinning it to fit my needs. So i also use for example:

Star Trek\Star Trek I
Star Trek\Star Trek II
...

to make several groups of films. I know that i can show the Groupname by:

#myfilms.user.mastertitle.groupname

Now my question is how do i show the numer of items/films in that group?


Thanks a lot,
Dachkennel

Hi again,

i figured out another problem. As i see in the MyFilmsList Layout.xml on that entry for example:

<control>
<description>Movie Cover Art</description>
<type>image</type>
<id>1</id>
<posX>31</posX>
<posY>254</posY>
<width>257</width>
<height>380</height>
<texture>#myfilms.coverimage</texture>
<visible>facadeview.list+control.isvisible(50)+!control.isvisible(34)</visible>
<animation effect="fade" time="250" delay="0">WindowOpen</animation>
<animation effect="fade" time="250" delay="0">WindowClose</animation>
</control>


the movie Cover should only come up, when its no list: !control.isvisible(34)

But its shown alway in listview anytime! So it seems that the skin doesnt even know if its a group or not. Am i right?
 

TLD

Portal Pro
October 26, 2007
954
387
Rainy Washington
Home Country
United States of America United States of America
As the Hierarchy name can be whatever you want you could just make the name:

Star Trek 2 movies\Star Trek I
Star Trek 2 movies\Star Trek II

and you would see "Star Trek 2 movies" in the list.
 

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    AW: Number of Films in Groups

    Hi there,

    im very new into myfilm and curently into skinning it to fit my needs. So i also use for example:

    Star Trek\Star Trek I
    Star Trek\Star Trek II
    ...

    to make several groups of films. I know that i can show the Groupname by:

    #myfilms.user.mastertitle.groupname

    Now my question is how do i show the numer of items/films in that group?

    Thanks a lot,
    Dachkennel
    I suppost using "#selecteditem2" should do the trick, this is the standard listcontrol item that is populated with those values.
    You might want to add the dependency to only show when hierarchy groups are selected ("#myfilms.user.mastertitle.groupname" not empty).

    Hi again,

    i figured out another problem. As i see in the MyFilmsList Layout.xml on that entry for example:

    <control>
    <description>Movie Cover Art</description>
    <type>image</type>
    <id>1</id>
    <posX>31</posX>
    <posY>254</posY>
    <width>257</width>
    <height>380</height>
    <texture>#myfilms.coverimage</texture>
    <visible>facadeview.list+control.isvisible(50)+!control.isvisible(34)</visible>
    <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    <animation effect="fade" time="250" delay="0">WindowClose</animation>
    </control>


    the movie Cover should only come up, when its no list: !control.isvisible(34)

    But its shown alway in listview anytime! So it seems that the skin doesnt even know if its a group or not. Am i right?
    See above - you can use condition on content of "#myfilms.user.mastertitle.groupname" - it is empty, if it is not a grouping and populated with group name otherwise.
     

    Users who are viewing this thread

    Top Bottom