View more context



I'm thinking of saving the URL params to a Session variable and then using that for filtering the getList().


I guess you could do that... just seems odd you'd have to do that... have you tried w/SS 3.7? maybe if that was an issue it was patched


Can't. Massive project with a lot of other dependencies...


maybe try the session then... tough spot for sure... once you start setting session vars you'll have extra things to check for and what not


Is there any way to define a variable in the template file? I want to make my code condition base. i.e. <% if($ClassName == "HomePage") %> <%-- define variable here and I can use it in other HTML element --%> <% end_if %>


I can imagine that being possible through global template method, tapping into the current controller and storing the value there… then it might be available in the next blog, in theory, but would need testing… ss templates are not designed to handle dynamic code in that way


@customPhpDev that belongs to your PageController. I'd make a helper method with a descriptive name and make a getter for that Variable.

  1. public function doSomething() {
  2. return $this instance of HomePage_Controller;
  3. };
  5. public function getMyVariable() {
  6. return $this->doSomething()
  7. ? 'value'
  8. : null;
  9. }

absolutely agree - templates aren’t for computation, they are for display and simple logic paths


I'm working on changes to a 3.6.1 site and I can't seem to find the functionality that is supposed to add the class ss_broken to broken links in the TinyMCE editor. Was that not in that version of SS?