Custom page

A place for users and developers of the Xataface to discuss and receive support.

Custom page

Postby m23k » Mon Oct 29, 2012 5:33 am

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!
m23k
 
Posts: 19
Joined: Sun Oct 28, 2012 10:53 am

Re: Custom page

Postby m23k » Mon Oct 29, 2012 5:59 am

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!
m23k
 
Posts: 19
Joined: Sun Oct 28, 2012 10:53 am

Re: Custom page

Postby shannah » Mon Oct 29, 2012 8:07 am

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.
Attachments
actions.pdf
Actions Chapter
(958.4 KiB) Downloaded 479 times
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved