Pages: [1]
  Print  
Author Topic: UTILITY:Run pages standalone  (Read 2323 times)
TyZ
Gaia User
**
Posts: 59


Temple - http://templelibrary.googlecode.com/

tyz
WWW
« on: October 19, 2009, 12:07:50 AM »

Want to run your Gaia pages standalone with all assets and SEO copy?

Check out my "GaiaStandAloneRunner" at: http://www.tyz.nl/2009/10/18/gaia-run-pages-standalone/

Including example and source code.

Have fun!
Logged
liflaf
Gaia Fan
***
Posts: 78


« Reply #1 on: October 23, 2009, 02:50:44 AM »

Goed werk, TyZ!

I haven't tried it yet but it could proof to be very useful
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3863


gaiaframework
WWW
« Reply #2 on: October 23, 2009, 12:12:47 PM »

What I do is set a keyboard shortcut for Gaia Publish Project (I use CTRL+RIGHT).  Then, I go to the Gaia Publish tab, uncheck all the pages except the one I'm working on, and then collapse the Gaia Framework panel.  Then, I just use CTRL+RIGHT to test my page.  Super quick.
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
TyZ
Gaia User
**
Posts: 59


Temple - http://templelibrary.googlecode.com/

tyz
WWW
« Reply #3 on: October 24, 2009, 02:03:09 AM »

But you have to change the publish tab every time you switch to a different page. And you still have to click trough your gaia project to the page you want to see (if the page is not the first page)
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3863


gaiaframework
WWW
« Reply #4 on: October 25, 2009, 01:21:25 PM »

How often are you switching pages and that's what the defaultChild attribute is for.
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
TyZ
Gaia User
**
Posts: 59


Temple - http://templelibrary.googlecode.com/

tyz
WWW
« Reply #5 on: October 27, 2009, 02:45:10 AM »

I switch a lot between pages. And I do not want to change the site.xml for debugging purposes. If you forget to change it back and deploy the project you could break the live site (I know you should always check the site.xml before deploying, but when working with multiple developers on a project with a tight deadline mistakes are easely made).

And with my "GaiaStandAloneRunner" you could define a "debug-site.xml" with all kinds of debug-data without changing the "live-site.xml". Which makes it easely to test with other data.

And if you are still using CS3 (like some of my co-workers do) it is not possible to set keyboard shortcuts for the Gaia panel.

An other reason for us to make the page work standalone is that designers and animators can easely test there design/animations, without having to change the site.xml. (Some designers will never learn how XML works ;-) )
Logged
Undercoder
Gaia User
**
Posts: 11


« Reply #6 on: December 07, 2009, 04:24:37 AM »

I like testing pages in standalone mode but in my last project i needed to listen for afterPreload event and setup submenu in home page based on site.xml content.
I've did some rewrites, add some functionality and now it can be done. You can  listen to/and hijack: afterPreload, beforeTransitionIn, afterTransitionIn, afterComplete, beforeTransitionOut, afterTransitionOut. You can use it like in gaia by calling Gaia.api functions.

Now GaiaStandAloneRunner take 4 parameter.
Code:
new GaiaStandAloneRunner(this, "xml/site.xml", Pages.HOME,onInitComplete);
onInitComplete is called when gaia is setup and you can listen for api events.
Code:
private function onInitComplete():void{
releaseGaia = Gaia.api.afterPreload(afterPreload,true,false);
}

Check out the code: http://dc-graphics.pl/pociag/gaia/standalone_extended.zip
This code needs to be cleaned. Some of the functions in API should be blocked in standalone mode (like goto). When I find more time I'll do some more cleaning and testing.
« Last Edit: December 07, 2009, 04:28:06 AM by pociag » Logged
dave stewart
Gaia Fan
***
Posts: 81



WWW
« Reply #7 on: December 18, 2009, 11:57:52 AM »

And if you are still using CS3 (like some of my co-workers do) it is not possible to set keyboard shortcuts for the Gaia panel.

  • Edit > Keyboard Shortcuts... > Commands > Gaia Test Project
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3863


gaiaframework
WWW
« Reply #8 on: December 18, 2009, 02:39:51 PM »

That command only works in CS4.
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc