Jump to:

5554 Posts in 1742 Topics by 1227 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: 646 Views
  • izanagi
    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 !!!


  • swaiba
    Forum Moderator
    1796 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...

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.