How to detect in template when the page is embedded

darrenlambert

Joined: 2007-10-12
Posts: 2
Posted: Fri, 2007-10-12 14:30

I am using a modified siriux theme in my Drupal 4.7 integration. I would like to hide some things in the album.tpl page when the theme is used in the Drupal embedded page, but not when the theme is used in the standalone Gallery2 app.

Is there a simple 'if' statement I can use to detect if the template is being used in an embedded page?

Here is an example. In the page below I want to remove the lower set of breadcrumbs in this embedded page, but not from the page when used in the standalone G2 app, as I need the breadcrumbs for navigation then.
http://www.darrenlambert.com/gallery/europe2006/

Thanks, Darren

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-10-12 16:53

{if $isEmbedded}stuff{/if}
should work

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
darrenlambert

Joined: 2007-10-12
Posts: 2
Posted: Fri, 2007-10-12 17:02

Thanks Dave. Works a treat and couldn't be easier.