Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Strange Question about $variable

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 709 Views
  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Strange Question about $variable Link to this post

    I'm new and I'm just trying to better understand everything so I apologize for the simple question.

    When I use a variable in a page such as: $Breadcrumbs

    Is the $Breadcrumbs actually referencing the class that has been built?

    I'm trying to put a login at the top of the page and I'm working through understanding who to best accomplish this.

    I've attached a pic of what it will look like.

    Thanks for your thoughts,

    Terry

    Attached Files
  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Strange Question about $variable Link to this post

    Hi Terry

    $Breadcrumbs is a function in sapphire/core/model/SiteTree.php which returns the breadcrumbs trail. $Variable is either a function in the model/controller or a field attached to the current page or one of its decendents.

    To use the login form simply add $LoginForm to your template. To style it you might want to wrap it in a div with a unique ID so that you can easily target the elements in that specifig login form.

  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Re: Strange Question about $variable Link to this post

    Is there somewhere that reveals all the functions? I saw some documentation early that looked like it might what I'm looking for.

    Again, this is very helpful. I'm really enjoying working with SilverStripe.

    Terry

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Strange Question about $variable Link to this post

    Hi Terry

    Here's a list of the built in controls:
    http://doc.silverstripe.com/doku.php?id=built-in-page-controls

    A lot of them aren't explained, but at least they're listed on the bottom of the page.

    709 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.