Make VIEW action showed in popup

edited October 2016 in Modules
Hello Mr.admin
inside administration area
in my custom module , I want to show VIEW action in a popup without left menu
thanks in advance

Comments

  • edited October 2016
    The Admin can be rendered with different modes.
    http://docs.getfuelcms.com/libraries/fuel_admin

    $this->fuel->admin->set_display_mode(Fuel_admin::DISPLAY_COMPACT_TITLEBAR);

    Below are the list of provided constants that can be used for the different display modes (e.g. Fuel_admin::{display_mode})
    DISPLAY_NO_ACTION = Display mode that has no action panel (panel with all the buttons) DISPLAY_COMPACT = Display mode that has no left menu, or top DISPLAY_COMPACT_NO_ACTION = Display mode that has no left menu, action panel or top DISPLAY_COMPACT_TITLEBAR = Display mode that has no left menu, action panel or top but does have the titlebar DISPLAY_DEFAULT = Default display mode that shows all panels

    Regarding the modal window, there is a javascript function under the fuel/modules/fuel/assets/js/global.js file called fuel.modalWindow. It's signature is the following:
    fuel.modalWindow = function(html, cssClass, autoResize, onLoadCallback, onCloseCallback){

    Here is an example implementation in javascript code:
    var html = '<iframe src="' + iframe_url + '" class="inline_iframe" frameborder="0" scrolling="no" style="border: none; width: 850px;"></iframe>'; var $modal = fuel.modalWindow(html, "embedded_list_item_modal", true, "", function(){ // on load callback code goes here... });

    You would need to include your javascript code in the page. Below is some documenation on different methods to do that:
    http://docs.getfuelcms.com/general/javascript
Sign In or Register to comment.