Advanced Conditional Region 2.0(free extension)

Advanced Conditional Region will allow you to show a selection of your page only when a specific condition is true. This way you can easily hide portions of your page that are not to be displayed.

* Check a nice use case with the Advanced Multi Uploader here.
Overview

Why use the Advanced Conditional Region extension?

  • To show if a new user is logged in or not, if the user is logged in show Welcome (Username) and if the user is not logged in show Welcome Visitor.

  • You can show the top purchase for a specific user or product.

  • Show an image only when it is available, otherwise show a default image.

  • If you have different security levels on your site, show different functionality on the page depending on the user level off the user. For example one user can edit and delete articles, another only view.

  • Show or hide administrator features depending on user clearance.

How to use the Advanced Conditional Region extension?

  • First select the piece of the page that you would like to be optional, then open the Advanced Conditional Region behavior from the Server Behaviors panel | DMXzone | Advanced Conditional Region.This will open the UI.

  • Enter the expression that you are checking. Like a querystring.

Tip: Would you like to add a condition from dynamic info, click on the thunderbolt and select the piece that you need.

Requirements
Type: Server Behavior
Product: Dreamweaver MX, UltraDev 4, Dreamweaver MX 2004, Dreamweaver 8, Dreamweaver CS3, Dreamweaver CS4, Dreamweaver CS5/CS5.5 and CS6
Server Model: ASP VBScript, ColdFusion (DWMX), JSP, PHP MySQL, PHP PHAkt 1, PHP PHAkt 2, ASP JScript


History

Version 1.0.1

  • Improved support for PHP

George Petrov

George PetrovGeorge Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. His expertise in countless languages and technologies gives inspiration and teach valuable lessons on his website – DMXzone.com which is most popular for its over high-quality Dreamweaver extensions and templates.

See All Postings From George Petrov >>

Place your review about Advanced Conditional Region 2.0(free extension)




You must me logged in to write a review
Reviews
very usful
May 31, 2010 by Greta Garberini

could there be an } else { option in one of the next versions? Anyway, its already good to have it as is!

Thanks
October 1, 2006 by Patrick Sambas
Thanks for the extension!
RE: RE: Saved my life!
January 13, 2006 by Jay Luther
I am trying to use this with a repeat region behavior. It works great for those instances when the first record contains data, but if some records are null and some aren't I am running into problems. What I am doing is I have a results page with a table that has column headings such as name, address1, address2, city etc. If address 2 has some records with data and some without, this doesn't work correctly. Any ideas?
Please Help
September 16, 2005 by Matt Penn
What am I doing wrong here? I'm trying to set up the script so that if the "listingsBeds" field is empty, then don't display the region. ------------------------- <% if (listings.Fields.Item("listingBeds").Value <> "") { // Adv Conditional Region %> <%=(listings.Fields.Item("listingBeds").Value)%> Bed <% } // listings.Fields.Item("listingBeds").Value <> "" %> ----------------------------
See all 20 Reviews