wet-boew / wet-boew-drupal

Drupal variant of the Web Experience Toolkit (WET)
137 stars 74 forks source link

How to integrate the Splash page in the WetKit #878

Closed ssari closed 11 years ago

ssari commented 11 years ago

I couldn’t get in the issue #280 if the WetKit has a solution for the splash page, and I couldn’t find any option for that.

Hey! @sylus, how did you implement it in the StatsCan?

My first idea was to modify the html.tpl.php template adding the following condition, but I’m not sure where $splash should be defined. <?php if ($splash) ?> <?php print $page_splash; ?> <?php else; ?> <?php print $page_top; ?> <?php print $page; ?> <?php print $page_bottom; ?> <?php endif; ?>

I also tried the Splashify module, but it is not working.

Has someone else find a solution for this?

RobJohnston commented 11 years ago

We just have a plain old HTML page sitting at the root of the site and the order set in the web server is to serve splash.html before index.php, or splash_site1.html in the case of multisite. Cheap hack.

ssari commented 11 years ago

Thanks Rob. BTW, nice picture!

That seems the best solution for now. I'll leave open the issue, in case someone has some idea of how to implement in the wetkit.

So summarizing.

sylus commented 11 years ago

Honestly for a splash page I agree that it makes complete sense to me to just use the web server or if using varnish leverage the vcl. You can change the paths to look at /profiles/wetkit/libraries/wet-boew so don't have to download two separate repo's.