Jump to:

5512 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Get Active Content ID

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

Page: 1
Go to End
Author Topic: 623 Views
  • izanagi
    Avatar
    Community Member
    2 Posts

    Get Active Content ID Link to this post

    Hello Community,

    i am pretty new to silverstripe but googling didn't helped me to solve this problem.
    I want to catch the ID of the clicked content (Database ID) in the .ss File (Article.ss).
    $Title etc. is defined in the Controller and catchable.
    Is there a easy way to do the same with the Content ID?

    Thanks !!!

    Greets

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: Get Active Content ID Link to this post

    I found that a little hard to follow... but if you want the Id of the page you are viewing, or the data you are itrating over in a <% control %> you can simply put $ID in the ss template and it will be shown...

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