New link in dashboard

Asked by Sandro Casponi

How do I add a link in dasboard as the link of the manual that opens an iframe?

thanks

Sandro

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Paul van Dun
Solved:
Last query:
Last reply:
Revision history for this message
Paul van Dun (venigo) said :
#1

In your Xibo database the table menuitem you can add a new link. As example you could look at menuitemid 24..

Regards.

Revision history for this message
Best Paul van Dun (venigo) said :
#2

Could be something like:

INSERT INTO `menuitem` (`MenuItemID`, `MenuID`, `PageID`, `Args`, `Text`, `Class`, `Img`, `Sequence`) VALUES
(30, 2, 28, 'yourlink', 'yourtitle', 'help_button', 'youricon', 10);

Revision history for this message
Sandro Casponi (sc-sincromedia) said :
#3

I watched the menuitem id 24, I've added a new link in the table and see the new link in the dashboard. But the link points to instead of http://192.168.1.202/ds/index.php?p=anteprima&http://192.168.1.202/slide/slide1.php http://192.168.1.202/ds/slide/slide1. php.

tanks

Revision history for this message
Sandro Casponi (sc-sincromedia) said :
#4

Thanks Paul van Dun, that solved my question.

Revision history for this message
Sandro Casponi (sc-sincromedia) said :
#5

The problem is solved link. Thank you. But the link does not open in the iframe. I can do?

Sandro

Revision history for this message
Paul van Dun (venigo) said :
#6

What kind of iframe? Inside the xibo layout? Make a new page in template\pages and make it like:

<?php
/*
 * Xibo - Digitial Signage - http://www.xibo.org.uk
 * Copyright (C) 2006,2007,2008 Daniel Garner and James Packer
 *
 * This file is part of Xibo.
 *
 * Xibo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * Xibo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>

  <div>

<IFRAME SRC="yourfile.php" WIDTH="100%" HEIGHT="100%" FRAMEBORDER="0" STYLE="background: transparent;"> </IFRAME>

  </div>

--

The modify the sql.

Revision history for this message
Dan Garner (dangarner) said :
#7

You just need to copy the class details from the menu item table so they are exactly the same as the existing manual link.