v151, Move 'Display' to Dashboard and remove Display page?

Asked by thumper

As the Dashboard page is nothing more than a Link's page we would like to move the entire contents of the 'Displays' page to the Dashboard. When we try just moving the code nothing shows.

How can we move these pages around then delete the Displays page? in both the PHP and the DB?

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

It would be better to add a new "Home Page" option to the user account admin. In lib/pages/user.class.php on or around L531 there is a Theme::Set call for "homepage_field_list" - add a new array to that list like array('homepageid' => 'display', 'homepage' => 'Display')

That should get you some of the way there...

The display menu item can be removed using the menu item security

Revision history for this message
thumper (thumperzute) said :
#2

Ok, found 2 locations in 'user.class.php' the array needed to be added, second about line 580 and it IS now a selection option.

   But when I login (after setting 'display' as the homepage) I get the Dashboard or '/index.php?pindex' where I would rather go directly to the '/index.php?p=display&' page.

   When I click 'Dashboard' the 'display' page is shown so it is correctly set as my homepage. Just doesn't login directly to the 'display' page which is what I'm trying to do.

   The above method also messes with page security, where as the 'display' page could be entirly hidden, not good. I would rather the contants of 'display' be on the 'dashboard' page then we could remove 'display' as it would now be on 'dashboard'.

   From our tests of just moving content code from one page to another, just doesn't appear possible.

Can you help with this problem?

Provide an answer of your own, or ask thumper for more information if necessary.

To post a message you must log in.