Create Ecommerce WDK
  • Getting Started
  • Tutorials
  • Tags
  • Support
  • Change Log
Login

Tutorials

  • Uploading & Using Files
  • Requirements & Restrictions
  • Setting your version
  • How it Works
  • The Basics
  • The Header
  • Colours
  • Creating a Template
  • Download Example Template
  • Using Icons
  • The Footer
  • Advanced Colour Functions
  • Using Menus
  • Header Images
  • Side Columns & Content Width
  • Conditional Tags
  • Using jQuery
  • Converting to WDK
  • Extras & Finishing Touches
  • Pagebuilder

Conditional Tags

Creates WDK offers conditional tags equivalent to php if statements.

<!--WDK:if-->
<!--WDK:else-->
<!--WDK:endif-->

Usage

Here is a list of the ways you may use our tags and their pseudo equivalents.

<!--WDK:if:statement-->
<!--WDK:ifnot-->
<!--WDK:else-->
<!--WDK:elseif:statement-->
<!--WDK:elseifnot:statement-->
<!--WDK:endif-->

Complete Conditional Tag List

  • Tag: <!--WDK:if:pageFilenameIs:value-->
  • Tag: <!--WDK:if:pageFilenameStartsWith:value-->
  • Tag: <!--WDK:if:pageFilenameEndsWith:value-->
  • Tag: <!--WDK:if:pageFilenameContains:value-->
  • Tag: <!--WDK:if:firstMenuItem-->
  • Tag: <!--WDK:if:currentMenuItem-->
  • Tag: <!--WDK:if:lastMenuItem-->
  • Tag: <!--WDK:if:menuItemPageType:value-->
  • Tag: <!--WDK:if:headerX-->
  • Tag: <!--WDK:if:headerX:isPng-->
  • Tag: <!--WDK:if:headerX:isJpg-->
  • Tag: <!--WDK:if:headerX:isGif-->
  • Tag: <!--WDK:if:hasShop-->
  • Tag: <!--WDK:else-->
  • Tag: <!--WDK:endif-->

Last Updated: 3 April 2015

  • Latest News
  • Features & Pricing
  • Build Before You Buy
  • Web Designer's Kit
  • Partners

© Copyright 2001 - 2014 Create. All Rights Reserved.