seitime-frappe/frappe/docs/user/guides/portal-development/context.md
2015-11-09 19:12:32 +05:30

8 lines
255 B
Markdown

# Adding to context
You can add more data for the pages by adding a `.py` file with the same filename (e.g. `index.py` for `index.md`) with a `get_context` method.
def get_context(context):
context.data = frappe.db.sql("some query")
{next}