Skip to content

Commit

Permalink
Update default layout and Media content widget
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Jul 23, 2024
1 parent 744efb4 commit 39757b0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/json/article_layouts/default.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion framework/elements/article_content/article_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
extract($displayData);
$item = $options['article'];
if ($item->article->params->get('access-view')) {
$item->render('');
$position = $params->get('position', 'above-title');
$item->render($position);
}
13 changes: 12 additions & 1 deletion framework/elements/article_content/article_content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,16 @@
<icon>fa-solid fa-photo-film</icon>
<category>ASTROID_ELEMENT_CATEGORY_SYSTEM</category>
<element_type>article</element_type>
<multiple>false</multiple>
<multiple>true</multiple>
<form>
<fields>
<fieldset name="general-settings" label="TPL_ASTROID_GENERAL_SETTINGS_LABEL" addfieldpath="/libraries/astroid/framework/fields">
<field astroidgroup="general" type="astroidlist" name="position" label="ASTROID_POSITION" default="above-title">
<option value="above-title">ASTROID_ARTICLE_POSTION_ABOVE_TITLE</option>
<option value="before-content">ASTROID_ARTICLE_POSTION_BEFORE_CONTENT</option>
<option value="after-content">ASTROID_ARTICLE_POSTION_AFTER_CONTENT</option>
</field>
</fieldset>
</fields>
</form>
</element>

0 comments on commit 39757b0

Please sign in to comment.