Announcement

Collapse
No announcement yet.

How to change default Display Settings for Article Publishing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to change default Display Settings for Article Publishing

    This was really annoying me, so I hacked away at it until I figured it out... not sure if this belongs on .org instead of here, but figured more people would search here first (as I did).

    You need to edit the template: contententry_panel_articleoptions

    Find "display_settings" in this template once you have it open... then replace sections of the template as follows depending on the settings you want

    Note the changes to the vb:if condition sections as well as the vb:set checked sections:

    Enable Comments
    Default to Yes
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase enable_comments}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND !$conversation['allow_post']">
                                {vb:set checked, 'no'}
                            <vb:else />
                                {vb:set checked, 'yes'}
                            </vb:if>
                            {vb:template toggle_slider, name='allow_post', checked={vb:raw checked}}
                        </div>
                    </div>
    Default to No
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase enable_comments}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND $conversation['allow_post']">
                                {vb:set checked, 'yes'}
                            <vb:else />
                                {vb:set checked, 'no'}
                            </vb:if>
                            {vb:template toggle_slider, name='allow_post', checked={vb:raw checked}}
                        </div>
                    </div>


    Public Preview
    Default to Yes
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase public_preview}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND !$conversation['public_preview']">
                                {vb:set checked, 'no'}
                            <vb:else />
                                {vb:set checked, 'yes'}
                            </vb:if>
                            {vb:template toggle_slider, name='public_preview', checked={vb:raw checked}}
                        </div>
                    </div>
    Default to No
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase public_preview}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND $conversation['public_preview']">
                                {vb:set checked, 'yes'}
                            <vb:else />
                                {vb:set checked, 'no'}
                            </vb:if>
                            {vb:template toggle_slider, name='public_preview', checked={vb:raw checked}}
                        </div>
                    </div>


    Display Title
    Default to Yes
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_title}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND $conversation['hide_title']">
                                {vb:set checked, 'no'}
                            <vb:else />
                                {vb:set checked, 'yes'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_title', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>
    Default to No
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_title}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND !$conversation['hide_title']">
                                {vb:set checked, 'yes'}
                            <vb:else />
                                {vb:set checked, 'no'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_title', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>


    Display Author
    Default to Yes
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_author}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND $conversation['hide_author']">
                                {vb:set checked, 'no'}
                            <vb:else />
                                {vb:set checked, 'yes'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_author', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>
    Default to No
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_author}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND !$conversation['hide_author']">
                                {vb:set checked, 'yes'}
                            <vb:else />
                                {vb:set checked, 'no'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_author', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>


    Display Published Date
    Default to Yes
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_published_date}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND $conversation['hide_publishdate']">
                                {vb:set checked, 'no'}
                            <vb:else />
                                {vb:set checked, 'yes'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_publishdate', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>
    Default to No
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_published_date}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND !$conversation['hide_publishdate']">
                                {vb:set checked, 'yes'}
                            <vb:else />
                                {vb:set checked, 'no'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_publishdate', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>


    Display Pageviews
    Default to Yes
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_pageviews}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND !$conversation['display_pageviews']">
                                {vb:set checked, 'no'}
                            <vb:else />
                                {vb:set checked, 'yes'}
                            </vb:if>
                            {vb:template toggle_slider, name='display_pageviews', checked={vb:raw checked}}
                        </div>
                    </div>
    Default to No
    HTML Code:
                    <div class="l-row l-row__fixed--left h-padding-bottom-l">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_pageviews}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND $conversation['display_pageviews']">
                                {vb:set checked, 'yes'}
                            <vb:else />
                                {vb:set checked, 'no'}
                            </vb:if>
                            {vb:template toggle_slider, name='display_pageviews', checked={vb:raw checked}}
                        </div>
                    </div>


    Display Comment Count
    Default to Yes
    HTML Code:
                    <div class="l-row l-row__fixed--left">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_comment_count}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND $conversation['hide_comment_count']">
                                {vb:set checked, 'no'}
                            <vb:else />
                                {vb:set checked, 'yes'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_comment_count', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>
    Default to No
    HTML Code:
                    <div class="l-row l-row__fixed--left">
                        <div class="l-col__fixed-3 l-col__small--full h-padding-right-m">
                            <label class="b-form-input__label">{vb:phrase display_comment_count}</label>
                        </div>
                        <div class="l-col__flex-3 l-col__small--full">
                            <vb:if condition="$editPost AND !$conversation['hide_comment_count']">
                                {vb:set checked, 'yes'}
                            <vb:else />
                                {vb:set checked, 'no'}
                            </vb:if>
                            {vb:template toggle_slider, name='hide_comment_count', checked={vb:raw checked}, yesValue=0, noValue=1}
                        </div>
                    </div>

  • #2
    why not working for me ?
    http://www.horadot.co.za

    Comment

    Related Topics

    Collapse

    Working...
    X