# How to specify static\_template page\_content in custom plugin

**URL:** <https://discuss.openedx.org/t/how-to-specify-static-template-page-content-in-custom-plugin/8082>\
**Category:** Site Operations Help\
**Tags:** how-to, tutor, nutmeg\
**Created:** [August 15, 2022, 11:44pm UTC](https://discuss.openedx.org/t/how-to-specify-static-template-page-content-in-custom-plugin/8082 "2022-08-15T23:44:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmgonzales](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@lmgonzales](https://discuss.openedx.org/u/lmgonzales)\
**Post date:** [August 15, 2022, 11:44pm UTC](https://discuss.openedx.org/t/how-to-specify-static-template-page-content-in-custom-plugin/8082/1 "2022-08-15T23:44:41Z")

</div>

Hi everyone,  
I’m running tutor 14.0.2 with nutmeg. I’m writing to inquire if there is a way to add or modify the site\_configuration settings via a custom plugin so that I can specify the page\_content variables in the static\_template mako files.

In this post ([How to edit FAQ](https://discuss.openedx.org/t/how-to-edit-faq/3695)), there is mention of adding the static\_template\_[filename]\_content to /admin/site\_configuration/siteconfiguration/ on the lms. However, with my tutor installation, this directory structure does not exist.

The directory structure I have is:  
tutor/data  
tutor/env

Tutor plugins sit in a tutor\_plugins directory at the same level as tutor/ and custom themes are located in tutor/env/build/openedx/themes/customtheme/

For simplicity, is it possible to specify the following in my custom plugin so that when the FAQ page loads, it reads this content into the page\_content variable in that FAQ template:  
{“static\_template\_faq\_content”: “

example faq content

”}

Thank you for any insights you can provide.

---

<div class="post-metadata">

**Author:** ![lmgonzales](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@lmgonzales](https://discuss.openedx.org/u/lmgonzales)\
**Post date:** [August 16, 2022, 1:39am UTC](https://discuss.openedx.org/t/how-to-specify-static-template-page-content-in-custom-plugin/8082/2 "2022-08-16T01:39:23Z")

</div>

I couldn’t figure out how to add the content to the site\_configuration settings, but the other way to do this is in the custom theme directory, create the static page you want to add the content to and then add in the block names and content. So for the FAQ page:

1. Create the faq.html file here: tutor/env/build/openedx/themes/customtheme/lms/templates/static\_templates/

2. Make the contents of the file as follows:

```auto
<%page expression_filter="h"/>
<%! from django.utils.translation import ugettext as _ %>
<%inherit file="faq.html" />

<%block name="pageheader">
    This is the page header
</%block>

<%block name="pagecontent">
    This is the page content
</%block>

```

The key is to inherit the static\_templates file you want to inject the pageheader and pagecontent blocks into (in this case **\<%inherit file=“faq.html” /\>** ) and then just add those block content pieces to your custom file.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [November 14, 2022, 1:39am UTC](https://discuss.openedx.org/t/how-to-specify-static-template-page-content-in-custom-plugin/8082/3 "2022-11-14T01:39:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
