Is there a way to change which page is the home page in a desktop?

Is there a way to change which page is the home page in a desktop?

]]>
« (Previous Post)

13 Commentsto Is there a way to change which page is the home page in a desktop?

  1. Anonymous says:

    < ![CDATA[

    Lighting Settings>All Settings>Configure Desktops>Select which one you want as home, click the little house at bottom.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Menu/lightning settings/all settings/configure desktops.



    Tap which desktop you want as home screen then press the house icon at the bottom of the screen.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Well, LL have an infinite canvas, and change the home page will mean change the position of all items.


    Maybe this can be a built-in feature in the future.


    But now the only thing you can do is move all the items yourself…


    …or, if you are using LLX I can make a simple script that will move them for you.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    I have already a script moving all items, i needed them for debugging some scripts.



    I’ll post soon.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Damaged Industries Jay M


    When someone says ‘pages’ here in LL we understand he is talking about a ‘piece of the infinite canvas with the size of the screen’.


    Silvia is asking how to change the home page in a desktop.


    Your suggestions says how to change the home desktop


    Don’t worry, I’m not complaining about you. Just teaching πŸ™‚


    I understand this is a bit confusing, but Pierre wrote this in the wiki, and he can’t be wrong πŸ˜›

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Here is my script:




    var d=LL.getEvent().getContainer();


    var items=d.getItems();


    var x=parseInt(prompt(“Value to go right (in pages) (use negative for left)”,0))||0;


    var y=parseInt(prompt(“Value to go down (in pages) (use negative for up)”,0))||0;


    if(x==0 && y==0)return;


    var dw=d.getWidth();


    var dh=d.getHeight();


    var cw=d.getCellWidth();


    var ch=d.getCellHeight();


    for(a=0;a


    {


    var item=items.getAt(a);


    if(item.getProperties().getBoolean(“i.onGrid”))


    {


    var cell=item.getCell();


    item.setCell(cell.getLeft()+dw/cw*x,cell.getTop() +dh/ch*y,cell.getRight() +dw/cw*x,cell.getBottom()+dh/ch*y);


    }


    else


    {


    item.setPosition(item.getPositionX()+dw*x,item.getPositionY()+dh*y);


    }


    }




    Remember: if you want to have the home page 1 left you have to move the items 1 right and so on.ο»Ώ

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Good one.


    However if the items are pinned horizontally or vertically they will disappear. You should check that.


    And also you should check if the dw/cw*x is an exact number. If not it will mean that the desktop don’t have an exact number of cells.



    I couldn’t resist myself to made it, and it is really the same! πŸ˜‰ however yours also move the items vertically, but mine checks all the things I mentioned.


    What about blend both to have a powerful script? I can’t now (time to sleep) but I will try to do tomorrow…unless you want to πŸ˜‰



    var cont = LL.getEvent().getContainer();



    var items=cont.getItems();


    var dist=cont.getWidth();


    var cellsFloat=dist/cont.getCellWidth();


    var cells=Math.round(cellsFloat)



    if(Math.abs(cellsFloat-cells)>0.00001)if(!confirm(“Warning, the cells don’t fill the screen as an exact number.\nDo you want to continue?”))return;




    var move = parseInt(prompt(“Which page do you want to be the home one? ( left ones are negative)”,Math.round(cont.getPositionX()/dist)));



    for(var i=items.getLength()-1;i>=0;–i){


    var item=items.getAt(i);


    var prop=item.getProperties()


    if(prop.getString(“i.pinMode”)[0]==’X’)continue;



    if(prop.getBoolean(“i.onGrid”)){


    var cell=item.getCell();


    item.setCell(cell.getLeft()-cells*move,cell.getTop(),cell.getRight()-cells*move,cell.getBottom());


    }else{


    item.setPosition(item.getPositionX()-dist*move,item.getPositionY());


    }



    }



    cont.setPosition(cont.getPositionX()-move*dist,cont.getPositionY(),cont.getPositionScale(),false);

    ]]>

  8. Anonymous says:

    < ![CDATA[

    You have my permission to improve or merge whatever you want πŸ˜‰

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Thanks guys! And thanks Triangulo for catching what I meant by page. πŸ˜‰ (Lol, triangle!)

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Second question. Where exactly do I insert this script?

    ]]>

  11. Anonymous says:

    < ![CDATA[

    Oh, yes.


    Copy paste the script as a new one (I already said the pros/cons of each one until I finally merge both)


    Check the ‘appear in lightning menu’


    In the desktop: long click, scripts, [this]

    ]]>

  12. Anonymous says:

    < ![CDATA[

    My bad πŸ˜›

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Thaks!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *