Class ViewPost

    • Constructor Detail

      • ViewPost

        public ViewPost()
    • Method Detail

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