Page 1 of 1

Custom page

PostPosted: Mon Oct 29, 2012 5:33 am
by m23k
Hi All

What is the recommended way of doing this please?

I want an extra page to appear on the nav menu called "Stats". - I am trying to add this to "Dataface_NavMenu.html" but it seems messy, it doesn't highlight when on that page. I guess I'm doing this wrong at least.

I want this to go to a custom page where I've pulled lots of stats together from records in the database. - I've created an action here so far.

Thanks!

Re: Custom page

PostPosted: Mon Oct 29, 2012 5:59 am
by m23k
Answering this myself :)

Basically, follow the how to make a dashboard page, but don't make it the default!

Shame there isn't a 'nicer' way than creating a dummy table though.

Love Xataface though, thank you!

Re: Custom page

PostPosted: Mon Oct 29, 2012 8:07 am
by shannah
A custom page is basically the same as a custom action. You don't need to add a dummy table. You can access your custom action in the URL by specifying -action=youractionname. As far as getting it into the top menu, in 1.3.x the dummy table is a shortcut to do this. In 2.0, you can actually add any action to the top tables menu by giving it the "top_left_menu_bar" category.

I have attached some documentation on actions (though this is targeted at 2.0) in case this helps.