Data Display if/else conditonals showing all rules insted of single rule and other bugs...

Permalink Browser Info Environment
1) If I setup multiple rules, and use a series of "if/else" conditionals within a single containing div all conditionals will appear when I select the top most rule/condition.
<div class="bioSocialLinks">
<if name="Select Facebook" comparison="contains" value="Facebook">
<div class="bioDiv facebookLink"><field name="Facebook URL (do not include http:// - example:http://www.mysite.com)" placeholder="facebook" /><a href="http://{{facebook}}" target="_blank"></a></div>
<else></else>
 </if>
<if name="Select Twitter" comparison="contains" value="Twitter">
<div class="bioDiv twitterLink"><field name="Twitter URL (do not include http:// - example:http://www.mysite.com)" placeholder="twitter" /><a href="http://{{twitter}}" target="_blank"></a></div>
<else></else>
 </if>
<if name="Select LinkedIn" comparison="contains" value="LinkedIn">
<div class="bioDiv linkdinLink"><field name="LinkedIn URL (do not include http:// - example:http://www.mysite.com)" placeholder="linkedIn" /><a href="http://{{linkedIn}}" target="_blank"></a></div>
<else></else>
 </if>
<if name="Select Google+" comparison="contains" value="Google+">
<div class="bioDiv googlePlusLink"><field name="Google+ URL (do not include http:// - example:http://www.mysite.com)" placeholder="googlePlus" /><a href="http://{{googlePlus}}" target="_blank"></a></div>


1b) If I setup multiple rules, and use a series of "if/else" conditionals within separate containing divs all conditionals will appear when I select the bottom most rule/condition:
<div class="bioSocialLinks">
<if name="Select Facebook" comparison="contains" value="Facebook">
<div class="bioDiv facebookLink"><field name="Facebook URL (do not include http:// - example:http://www.mysite.com)" placeholder="facebook" /><a href="http://{{facebook}}" target="_blank"></a></div>
<else></else>
 </if>
</div>
<div class="bioSocialLinks">
<if name="Select Twitter" comparison="contains" value="Twitter">
<div class="bioDiv twitterLink"><field name="Twitter URL (do not include http:// - example:http://www.mysite.com)" placeholder="twitter" /><a href="http://{{twitter}}" target="_blank"></a></div>
<else></else>
 </if>
 </div>
<div class="bioSocialLinks">
<if name="Select LinkedIn" comparison="contains" value="LinkedIn">
<div class="bioDiv linkdinLink"><field name="LinkedIn URL (do not include http:// - example:http://www.mysite.com)" placeholder="linkedIn" /><a href="http://{{linkedIn}}" target="_blank"></a></div>


2) Also, the conditionals would not work with "is equal to" in the dataDisplay template. I had to use '"contains" even though "is equal to" was the only comparison available in the rules.

I spent about three hours testing and retesting various combinations today. And about an hour making the attached image and submitting the trouble ticket.

I'm supposed to have this form completed by Monday for my client.

1 Attachment

Type: Discussion
Status: In Progress
kimstone
View Replies:
kimstone replied on at Permalink Reply
kimstone
Hmmmm...I wonder what your methodology is in choosing which support request to respond to. It seems somewhat arbitrary. I see you've responded to other requests since I posted this one. It's somewhat disheartening after my company has purchased your addon a few times (different c5 user accounts)...and also considering the amount of time invested/bled into trying to understand your add-on and to communicate with you.

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Advanced Forms (1.13.1), Black Magic Data (1.6.1), Data Display (2.7.1.4), Dynamic Iframe (1.7), eCommerce (2.8.7), Extended Google Map (3.2.4), Front End Fileset Tools (1.0.1), Front End File Uploader (2.2.2), Login (1.1.1), Login Redirect (1.3), Magic Data (2.9.8), Magic Data Symbols1 (2.7.2), Magic Data Templates1 (2.1), Mega Menu (1.5.27), Paypal Website Payment Pro Gateway (2.0), Pro Forms (6.9.0), Register User Pro (1.3.13), Registrant Group (1.1), Sorcerer's Gallery (1.0), Sortable Fancybox Gallery (1.17), Uhuru Theme (1.1), Ukao Menu (1.5.2), User Info (1.97), Whale Nivo Image Slider (1.0.4).

# concrete5 Overrides
blocks/content, blocks/login, blocks/jb_megamenu, blocks/date_archive, languages/da_DK, languages/nb_NO, languages/ru_RU, languages/tr_TR, languages/ro_RO, languages/fi_FI, languages/sl_SI, languages/zh_TW, languages/it_IT, languages/cs_CZ, languages/es_MX, languages/sv_SE, languages/es_PE, languages/vi_VN, languages/nl_NL, languages/sk_SK, languages/es_ES, languages/pt_PT, languages/he_IL, languages/fa_IR, languages/ja_JP, languages/zh_CN, languages/ar, languages/el_GR, languages/fr_FR, languages/es_AR, languages/de_DE, models/attribute, single_pages/page_not_found.php, single_pages/register.php, single_pages/page_forbidden.php, single_pages/login.php, themes/uhuru

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.3.28

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, enchant, ereg, exif, filter, ftp, gd, gettext, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, suhosin, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 256M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 256M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
suhosin.cookie.max_array_depth - 100
suhosin.cookie.max_array_index_length - 64
suhosin.cookie.max_name_length - 128
suhosin.cookie.max_totalname_length - 256
suhosin.cookie.max_value_length - 10000
suhosin.cookie.max_vars - 2000
suhosin.executor.include.max_traversal - 8
suhosin.executor.max_depth - 0
suhosin.get.max_array_depth - 50
suhosin.get.max_array_index_length - 64
suhosin.get.max_name_length - 256
suhosin.get.max_totalname_length - 256
suhosin.get.max_value_length - 512
suhosin.get.max_vars - 2000
suhosin.log.phpscript.is_safe - Off
suhosin.memory_limit - 32M
suhosin.post.max_array_depth - 100
suhosin.post.max_array_index_length - 64
suhosin.post.max_name_length - 256
suhosin.post.max_totalname_length - 256
suhosin.post.max_value_length - 65384
suhosin.post.max_vars - 2000
suhosin.request.max_array_depth - 100
suhosin.request.max_array_index_length - 64
suhosin.request.max_totalname_length - 256
suhosin.request.max_value_length - 65384
suhosin.request.max_varname_length - 128
suhosin.request.max_vars - 2000
suhosin.session.max_id_length - 128
suhosin.upload.max_uploads - 25

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:33.0) Gecko/20100101 Firefox/33.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.