# Setka content on AMP pages in Drupal

## Setka Drupal Module AMP support

[Setka Editor Drupal Module versions 8.x-1.2](https://www.drupal.org/project/setka_editor) offers AMP support to allow conversion of the content generated in Setka Editor into AMP format.&#x20;

Google AMP or AMP (Accelerated Mobile Pages) format is an open-source HTML framework developed by the AMP Open Source Project. It was originally created by Google.&#x20;

[Learn more about AMP Project here](https://amp.dev/)

## How to set up the AMP Module with Setka&#x20;

1. Makes sure you've installed [AMP Module](https://www.drupal.org/project/amp) versions 8.ч-3.0-alpha1&#x20;
2. Install [AMP CSS Tree Shaking Module](https://www.drupal.org/project/amp_cts). This Module helps to reduce the styles that are not being used on the page to fit the AMP limit for the CSS file size (50 000 bytes). This means that you'll have only the necessary styles on the page.&#x20;
3. Make sure your Setka Editor Module is updated to versions 8.x-1.2 or higher.
4. Activate Setka Editor AMP on `admin/modules` page&#x20;
5. Make sure you've activated AMP for all content types where you are using Setka Editor. Navigate to `/admin/config/content/amp` **.** You’ll see is the list of your site’s content types. Set which content types should have AMP versions.&#x20;
6. To enable a particular content type for AMP, click on the **Enable AMP in the Custom Display Settings** link. On the next page, open the **Custom Display Settings** fieldset. Check the AMP box, then press Save.&#x20;
7. Then press the **Configuring AMP view mode** link for that content type. On that page, you can select which fields should display and the field formatters that each will use.
8. Then change the body field to use the AMP Text field formatter.&#x20;

{% hint style="warning" %}
Setka Module for Drupal 7 currently doesn't support AMP though we plan to add it in the future.&#x20;
{% endhint %}

{% hint style="info" %}
[Learn more about AMP in Drupal](https://www.lullabot.com/articles/how-to-try-out-amp-with-drupal)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://setka.gitbook.io/help-center/integrations/setka-and-drupal/setka-content-on-amp-pages-in-drupal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
