Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » link to child page.

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: 731 Views
  • Daimz
    Avatar
    Community Member
    36 Posts

    link to child page. Link to this post

    I have built my portfolio using pages so I have a portfolio_holder and each item in it is stored as a page portfolio_page. So in my portfolo holder I have got this:

    <% control ReverseChildren %>
          <div id="port_box">
             <span>$portImage</span>
             <span class="port_type">
             <span class="port_title_type">Client:</span> $Client</span>
             <span class="port_type"><span class="port_title_type">Role:</span> $Role</span>
             <span class="port_type"><span class="port_title_type">Project:</span> $Task</span>
             <% if Content %><span class="port_type"><span class="port_title_type">Summary:</span> $Content</span><% end_if %>
          </div>

    <% end_control %>

    So this is basicly getting all the data form inside or the portfolio page and showing it. However I am wanting to start using showcases and being a bit more indepth with some of my items So i would like to be able to click on $portimage and got to the actual Portfolio_page. How could I do this?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: link to child page. Link to this post

    You can use $Link inside that control to get the links for the pages.

    731 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.