Advertisement
vanjwilson

WebGUI custom content handler

Apr 4th, 2013
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ...
  2.  
  3. $var->{seo_title} = $record->{seo_title};
  4. $var->{synopsis} = $record->{meta_description};
  5.  
  6. my $scratch = WebGUI::Session::Scratch->new($session);
  7. $scratch->set('title', $var->{seo_title});
  8.  
  9. # append vars for specific record
  10. %{$var} = (%{$var}, %{$record});
  11.  
  12. my $thingDataId = $record->{thingDataId};
  13. return $thingyObj->processStyle(
  14. $thingyObj->processTemplate($var,$DETAILTEMPLATE)
  15. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement