Register
or
Login
(
Why?
)
Home
Modules
Aggregator - Tabbed Modules
Aggregator - Skins
Aggregator - FAQ
Aggregator - Demos
Nested Tabs
Targeting Other Aggregators
Localization of Tabs
Active Hover
Multiple Modules Per Tab
Token Replacement in Tab Titles
Linking Directly To A Tab
RSS Tabs
Tab Layouts
Default Tab and Remembering Selected Tab
Module Wrapping
Pager Styles
jQuery Accordion
jQuery Tabs
jQuery Tabs with Rotation
jQuery Featured Content Slider
Height and Width Settings
Coda Slider
jShowOff
Aggregator - Documentation
Aggregator - Testimonials
Inject Anything
Inject Anything - Demos
You Tube Videos
DNN Token Replacement
Custom Token Replacement
Inject Anything - Documentation
Module Rotator
Module Rotator - Demos
Module Rotator - FAQ
SQLView Pro
SQLView Pro - Demos
Grid Report
XSL Report
Template Report
Parameters
Drilldown
Advanced Template - Google Chart
Advanced Grid
Skin Samples
Multiple Parameters
SQLView Pro - Documentation
Welcome
Welcome - Demos
Hide Based on Page Views
Hide Based on Page Views (Session Only)
Including a Hide Button
Including a Keep Hidden checkbox
Including a Keep Hidden Link
Showing alternate text instead of hiding
Showing an unhide button
Welcome - Documentation
CSS Include
SQLView
SQLView - Demos
Google Analytics
Articles
Archive
Support
Forums
Email Support
Store
Download
Videos
Press Center
Questions? support@dnnstuff.com
You are here
Support
Forums
Search:
Unanswered
Active Topics
Forums
Search
Members
Forums
>
Commercial Modules
>
SQLView Pro
Logic token not working as I expect
Last Post 11 Jun 2010 07:47 AM by
Richard Edwards
. 5 Replies.
Sort:
Oldest First
Most Recent First
Check this box to subscribe to this topic.
Prev
Next
You are not authorized to post a reply.
Author
Messages
eoghano
New Member
Posts:12
10 Jun 2010 05:10 AM
The Logic tokens do not seem to be working for me as I expected. For example if I put the following into a template, the text between the Logic Tokens is rendered even when the FBURL has a value. [IFFBURL VALUE=""]This text is rendered even when the Facebook URL field has a value: [FBURL][/IFFBURL] Is there something amiss with my syntax? As far as I can see it follows the syntax described on the logic token wiki: http://wiki.dnnstuff.com/Tokens_Logic.ashx
Richard Edwards
DNNStuff Founder
Advanced Member
Posts:902
10 Jun 2010 09:29 AM
Hi Eoghan,
The token [IFFBURL VALUE=""][FBURL][/IFFBURL] should only render the [FBURL] token if the value of that field is an empty string. I'm assuming you want to render it only if there is something in the FBurl field?
Try doing this:
[IFNOTFBURL VALUE=""][FBURL][/IFNOTFBURL]
That will render the [FBURL] field, if the field is not an empty string.
Richard Edwards
DNNStuff Founder
eoghano
New Member
Posts:12
10 Jun 2010 10:02 AM
I tried that already but if it is not an empty string the [IFNOTFBURL...] token is - for me at least - not rendering the FBURL field. In fact to get the URL appearing on the page I have had to resort to: [IFFBURL VALUE=""][FBURL][/IFFBURL] Basically the [IF...] and [IFNOT...] tokens both do the opposite thing to what I expect. Any ideas?
Richard Edwards
DNNStuff Founder
Advanced Member
Posts:902
10 Jun 2010 10:56 AM
Ok, I just did a quick test and can see a problem with the parsing code. I'll have to run some more tests with the logic replacement to see what's going on. Stay tuned.
Richard Edwards
DNNStuff Founder
eoghano
New Member
Posts:12
10 Jun 2010 11:06 AM
Great Richard. I remain tuned in...
Richard Edwards
DNNStuff Founder
Advanced Member
Posts:902
11 Jun 2010 07:47 AM
Just wanted to update this thread. I sent Eoghan a new build of the dnnstuff utilities assembly and it's working as it's supposed to now. The fix will come out in the next SQLView Pro release in a couple weeks.
Richard Edwards
DNNStuff Founder
You are not authorized to post a reply.
General
--DNNStuff
--Announcements
--Testimonials
Commercial Modules
--Aggregator
----Skins
--Inject Anything
--Module Rotator
--Welcome
--SQLView Pro
Enhancement Requests
--Aggregator Enhancement Requests
--Inject Anything Enhancement Requests
--Welcome Enhancement Requests
--Module Rotator Enhancement Requests
--SQLView Pro Enhancement Requests
--New Module Requests
Free Modules
--SQLView
--CSS Include
--Google Analytics
Forums
>
Commercial Modules
>
SQLView Pro
Active Forums 4.1
Forums
::
Email Support
Page generated in 0.5781213 seconds. Make your site scream at PowerDNN!
You need to be logged in to:
post in forums
manage your account
download free content
ask for support
download your purchases
receive discounts
Welcome to DNNStuff!
X