close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

show if's

Thread began 2/06/2013 8:22 am by JamieEff | Last modified 2/06/2013 10:14 am by Jason Byrnes | 606 views | 1 replies |

JamieEff

show if's

Not sure if this is possible.

Basically I have created a table in a database called 'portfolio' Within that table I have created 4 columns 'PortfolioWebsite', 'PortfolioEmail', 'PortfolioSM' and 'PortfolioSEO'

These columns are either empty (by default) or filled with 1 if the insert or update page check box has been checked for that entry

Now, what I am trying to do is a show if based on the column content rather than whole recordset so that if the column has 1 in it, then the front end will display the icon, if the column is empty then the icon is not shown.

The code, without any show ifs at all) at the moment:

<span id="sprytrigger1"><a href="#"><img alt="Website Design" border="0" height="30" src="/uploads/images/portfolio/website-icon.jpg" width="30" /></a></span> 
<span id="sprytrigger2"><a href="#"><img alt="Email Marketing" border="0" height="29" src="/uploads/images/portfolio/email-icon.jpg" width="30" /></a></span>&nbsp;
<span id="sprytrigger3"><a href="#"><img alt="Search Engine Optimisation" border="0" height="30" src="/uploads/images/portfolio/search-icon.jpg" width="27" /></a></span>&nbsp;
<span id="sprytrigger4"><a href="#"><img alt="Social Media" border="0" height="30" src="/uploads/images/portfolio/social-icon.jpg" width="41" /></a></span>



or woould I need to create a recordset for each of these and use the relevant show if for that?

Cheers

Sign in to reply to this post

Jason ByrnesWebAssist

use the show if utility, on the server behaviors click the plus button and select Webassist -> Utilities -> Show region Utility, fro the If setting, click the lightning bolt icon and select one of the columns from your recordset. Leave the Is option set to Equals, for the value enter 1.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...