generated from readthedocs/tutorial-template
-
Notifications
You must be signed in to change notification settings - Fork 70
added themes section TEDU-131 #113
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
Merged
RCheesley
merged 8 commits into
mautic:main
from
favour-chibueze:TEDU-131-add-themes-section
Feb 22, 2023
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e7ad9e8
added themes section
favour-chibueze b9fabd4
Merge branch 'main' into TEDU-131-add-themes-section
favour-chibueze c5c5f6d
Merge branch 'main' into TEDU-131-add-themes-section
favour-chibueze 083102c
Merge branch 'main' into TEDU-131-add-themes-section
favour-chibueze 95c1d0f
Merge branch 'main' into TEDU-131-add-themes-section
RCheesley 0bdbe38
Merge branch 'main' into TEDU-131-add-themes-section
favour-chibueze f1952d9
resolve suggestions
favour-chibueze 889b14c
Vale fixes, update content
RCheesley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| from . import link | ||
|
|
||
| link_name = "create a Theme" | ||
| link_text = "create a Theme" | ||
| link_url = "https://developer.mautic.org/#themes" | ||
|
|
||
| link.xref_links.update({link_name: (link_text, link_url)}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| from . import link | ||
|
|
||
| link_name = "themes developer documentation" | ||
| link_text = "themes developer documentation" | ||
| link_url = "https://developer.mautic.org/#theme-directory-structure" | ||
|
|
||
| link.xref_links.update({link_name: (link_text, link_url)}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,48 @@ | ||
| .. vale off | ||
|
|
||
| Code Mode | ||
| Code mode | ||
| ########## | ||
|
|
||
| .. vale on | ||
| .. vale on | ||
|
|
||
| Code Mode is an option available in the Email and Landing Page edit Form. It allows you to create/insert/edit your content in HTML code. It's helpful for situations where you don't want to use a Mautic Theme and you want to use an HTML Theme copied from a third party Theme builder, or if you prefer editing HTML code directly. | ||
|
|
||
| The other option to edit Landing Page/Email content is to use the built-in drag-and-drop GrapesJS Builder. Read more in the :doc:`/builders/email_landing_page` section. | ||
|
|
||
| Select the Code mode | ||
favour-chibueze marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ******************** | ||
|
|
||
| If you want to work with existing HTML, select code mode from the Theme selector. To open the code mode Builder, click the advanced tab which appears. | ||
|
|
||
| .. image:: images/code-builder.png | ||
| :width: 600 | ||
| :alt: Screenshot of code mode builder | ||
|
|
||
| Limitations | ||
| =========== | ||
|
|
||
| If you use a Mautic Theme to create the Landing Page/Email and you subsequently want to edit the HTML code, you should think carefully about doing this. | ||
|
|
||
| Once you switch from a Theme to Code Mode, content becomes HTML and you can't switch back to the Theme again. | ||
|
|
||
| Selecting a Theme replaces the content with that of the default Theme, so you'll lose your modifications. | ||
|
|
||
| Instead, to make small code changes to an existing Theme, it's recommended to use the code mode built into the GrapesJS Builder. | ||
|
|
||
| .. image:: images/theme-list.png | ||
| :width: 600 | ||
| :alt: Screenshot of code mode | ||
|
|
||
| .. vale off | ||
|
|
||
| Edit the HTML content in the code mode Builder | ||
| ============================================== | ||
|
|
||
| .. vale on | ||
|
|
||
| In code mode, you can see the HTML content in the text area under the Advanced tab. There is no preview at this time. | ||
|
|
||
| Mautic tokens | ||
| ============= | ||
|
|
||
| You can use the tokens in the code mode Builder by typing them directly into your code. For example when you type ``{contactfield=firstname}``. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.