Class ViewPost

java.lang.Object
org.fenixedu.cms.domain.component.ViewPost
All Implemented Interfaces:
CMSComponent

public class ViewPost extends Object implements CMSComponent
Component that obtains the necessary info about a Post
  • Constructor Details

    • ViewPost

      public ViewPost()
  • Method Details

    • handle

      public void handle(Page page, TemplateContext local, TemplateContext global)
      fetches a post based on the 'q' parameter of the request and saves that post on the local and global context as 'post'
      Specified by:
      handle in interface CMSComponent
      Parameters:
      page - the page where the component will be rendered.
      local - local context for the component.
      global - global context where the component is being rendered.