Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create generic _show function for simple content types #2

Open
BigBlueHat opened this issue Oct 27, 2011 · 1 comment
Open

Create generic _show function for simple content types #2

BigBlueHat opened this issue Oct 27, 2011 · 1 comment
Assignees
Labels
Milestone

Comments

@BigBlueHat
Copy link
Owner

shows/html/map.js contains the most generic content item templating so far. That's likely reusable (with some tweaks) for contact's and possibly many others.

@ghost ghost assigned BigBlueHat Oct 27, 2011
@BigBlueHat
Copy link
Owner Author

This is really about dealing with item preview. The item menu needs to preview the item. However, the template used is page conditional--though there should be one basic one for all types.

Ideally, there should be a default template available with the type~{name} document, but that's not currently how it is...they're only in the template~{name} documents.

Next steps:

  • provide default Handlebars templates in the type~{name} docs
  • only use template~{name} type templates for overrides
  • store the type of the item in page_items (so we can include them in the map/reduce)

Know troubles:

  • what if the type of the item changes?...we don't actually allow that currently...maybe we never should...

@BigBlueHat BigBlueHat modified the milestone: Next Nov 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant