-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Append other link to page links in BaseLinkBlock (#344)
* Append other link to page links in BaseLinkBlock * Write to error log in azure pipelines
- Loading branch information
Showing
11 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,10 @@ | ||
* **Page link** - Reference a page within the CMS. | ||
|
||
* **Document link** If a Page is not selected, reference a Document within the | ||
CMS | ||
|
||
* **Other link** - If a Page or Document is not selected, the value of this | ||
field will be used as-is. If a Page is selected, then the value of this field | ||
will be appended to the Page URL. This is useful for linking to fragments or | ||
element IDs. For example: Page ``/about/`` with Other link ``#team`` would | ||
then link to ``/about/#team``. |
This file contains 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,24 @@ | ||
Button Block | ||
============ | ||
|
||
The button block renders an HTML anchor styled as a button. This can be used to | ||
link to pages, documents, or external links. | ||
|
||
|
||
Field Reference | ||
--------------- | ||
|
||
Fields and purposes: | ||
|
||
.. include:: baselink.rst | ||
|
||
* **Button Title** - The text to show on the button. You can insert simple HTML | ||
here as well, such as ``Learn <b>More</b>``. | ||
|
||
* **Button Style** - The appearance of the button. This is a choice loaded from | ||
``CODERED_FRONTEND_BTN_STYLE_CHOICES`` Django setting and is inserted as a | ||
CSS class in the HTML. | ||
|
||
* **Button Size** - The size of button. This is a choice loaded from | ||
``CODERED_FRONTEND_BTN_SIZE_CHOICES`` Django setting and is inserted as a CSS | ||
class in the HTML. |
This file contains 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,17 @@ | ||
Image Link | ||
========== | ||
|
||
The image link block renders an image as an HTML anchor. This can be used to | ||
link to pages, documents, or external links. | ||
|
||
|
||
Field Reference | ||
--------------- | ||
|
||
Fields and purposes: | ||
|
||
.. include:: baselink.rst | ||
|
||
* **Image** - The image to be shown as the content of the anchor. | ||
|
||
* **Alt text** - Alternate text to show to search engines and screen readers. |
This file contains 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,13 @@ | ||
Blocks | ||
====== | ||
|
||
.. note:: | ||
This section is a Work in progress. There are many more blocks included in | ||
CodeRed CMS than those listed below. More documentation will be added over | ||
time before the project reaches an stable 1.0 release. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
button | ||
imagelink |
This file contains 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ Features | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
blocks/index | ||
import_export | ||
mailchimp | ||
page_types/index | ||
|
This file contains 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