We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Customizing dashboard customizing | Forum

Curtis
Curtis Aug 14 '14
Hi,


I have two questions about the Dashboard customization for the end user:


1. As seen in Selection_011.png, is it possible to move that "Customize this page" button into the page sidebar or further down the page so it's not so obtrusive?


2. Can I get rid of the "Disable JavaScript" button in Selection_012.png and stop people from putting raw HTML in a widget for security purposes?


Thanks! :)

Attachments:
  Selection_011.png (5Kb)
  Selection_012.png (24Kb)
Curtis
Curtis Aug 21 '14
Bump
Curtis
Curtis Aug 25 '14
Bump #2
Alia Team
Alia Aug 26 '14
1. Try changing the position of this button (code bellow) in ow_system_plugins/base/views/componenets/drag_and_drop_entity_panel.html file

<div class="ow_center">
                {decorator name='button' langLabel='base+widgets_customize_btn' class='ow_ic_gear_wheel' id='goto_customize_btn'}
            </div>


If you would like to move "Finish Customizing" button to the bottom of the page you will need to edit ow_system_plugins/base/views/componenets/drag_and_drop_entity_panel_customize.html  as well:

 {decorator name='button' langLabel='base+widgets_finish_customize_btn' class='ow_ic_ok ow_positive' id="goto_normal_btn"}

2. Comment out or delete the code related to enabling and disabling JS in ow_system_plugins/base/views/componenets/drag_and_drop_entity_panel_customize.html

<form style="display: inline;">
                {if $disableJs}
                    <input type="hidden" name="disable-js" value="0" />
                    {decorator name='button' type="submit" langLabel='base+widgets_enable_js' class='ow_ic_unlock'}
                {else}
                    <input type="hidden" name="disable-js" value="1" />
                    {decorator name='button' type="submit" langLabel='base+widgets_disable_js' class='ow_ic_restrict ow_negative'}
                {/if}
            </form>


3. >>stop people from putting raw HTML in a widget for security purposes?

Custom HTML widgets work in the same way both for admin and for regular users. So if you disable raw html, you will disable it for everybody. Good place to start with making this modification is ow_system_plugin/base/components/custom_html_widget.php
Curtis
Curtis Aug 26 '14
Thanks again Aliia, I'll look at those.