Doctype values not shown in website

I have created a new doctype in my module. And i have included the show in website field in that so that the entered details will be shown in the website. But it is not shown so i checked the py file of the doctype and it shows like this: `

from future import unicode_literals
import frappe
from frappe.model.document import Document

class PhotoItems(Document):
`Only this much code is shown .PhotoItems is my doctype name . Why is it so??? is there some permission needed for creating new doctype???


To enable show_in_website you will have to:

  1. Inherit WebsiteGenerator in your PhotoItems class (see
  2. Create a generator template file (see item.html)
  3. Mark that the doctype has a generator in (See


thank you it works

Now the page appears in the website, but i have included slide show in the website it is not showing instead in that place iam getting this {{ slideshow_header }} also in console iam getting the error : Uncaught TypeError: Cannot read property ‘offsetWidth’ of undefined.


Can you share your code on github?