Link to a View? (1 Viewer)

MrBobC

Portal Pro
February 3, 2009
52
2
Home Country
United States of America United States of America
So let us say that I have made a view for my daughter which has TV shows for her. When I enter into the plugin it shows all the shows, then you go to the side and pick the view you want to change it to. Is there a way to instead be able to go straight to that particular view from the home screen by way of a hyperlink? If not via hyperlink, is there a different way?
 

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Yes, you can use view:{name} as the hyperlinkParameter e.g:

    Code:
    <hyperlinkParameter>view:kids</hyperlinkParameter>
     

    MrBobC

    Portal Pro
    February 3, 2009
    52
    2
    Home Country
    United States of America United States of America
    Let us say then that this is the code for the control (I'm using 1.12 with StreamedMP)

    <control>
    <description>KID SHOWS1</description>
    <type>button</type>
    <id>1802</id>
    <posX>0</posX>
    <posY>-45</posY>
    <label>KID SHOWS</label>
    <width>480</width>
    <height>108</height>
    <textureFocus>-</textureFocus>
    <textureNoFocus>-</textureNoFocus>
    <hyperlink>9811</hyperlink>
    <hover>-</hover>
    <onright>7777</onright>
    <onleft>7777</onleft>
    <onup>1801</onup>
    <ondown>1703</ondown>
    </control>

    Changing the hyperlink line to:
    <hyperlink>9811 view:Kids</hyperlink>

    Doesn't work, so I'm not sure what the correct way to write it is. I'll keep trying, but if you know, please let me know.

    Thank You!
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    The StreamedMP BasicHome editor already supports this, if you don't want to use it that's fine but you can just use it as an example to see what it creates.

    If you look carefully on my post above you will notice im not using hyperlink but hyperlinkParameter, maybe this will be more clearer to you:

    Code:
    <hyperlink>9811</hyperlink>
    <hyperlinkParameter>view:kids</hyperlinkParameter>
     

    MrBobC

    Portal Pro
    February 3, 2009
    52
    2
    Home Country
    United States of America United States of America
    I appreciate your help, I didn't know it was built into the editor, it worked great!
     

    Users who are viewing this thread

    Top Bottom