Register   Login
     
  Latest Posts  
RE: Article URL Rewriting Question?
by marta@interdigital.es on 11/21/2008 11:10 PM
RE: AutoFill fields by selection Type
by nickdotnet on 11/21/2008 10:15 PM
RE: Subscription setup questions?
by nassoa on 11/21/2008 7:46 PM
RE: Redirecting non-DNN generated urls
by slonecke@dhw.idaho on 11/21/2008 6:49 PM
RE: sub types
by Jessynoo on 11/21/2008 6:45 PM
RE: Subscription setup questions?
by nassoa on 11/21/2008 5:59 PM
Subscription setup questions?
by nassoa on 11/21/2008 5:43 PM
Edit Comments
by swebster on 11/21/2008 5:35 PM
RE: Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 11/21/2008 5:26 PM
Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 11/21/2008 5:12 PM
  Forums  
Subject: Conditionally Display Image.
Prev Next
You are not authorized to post a reply.

Author Messages
Larry OliverUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:33

12/18/2006 4:01 PM  

Scott,

I have had a request from a client to display an image rather that text.  The image would display only when the check box was checked.

Examples:

a PriceReduced.gif would be displayed  when the Price Reduced check box is checked

a Sold.gif  would be displayed  when the Sold check box is checked

 Is this currently possible?

Thanks for the great module.  It works great.


Have a great day!
Larry
jamie edwardsUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:77


12/18/2006 8:37 PM  
I have had the same request. :)
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12442


12/19/2006 1:52 AM  
If I added some condional logic to the template, would this help?


[EXPRESSION:FEATURED:TRUE]
Display Image
[/EXPRESSION:FEATURED:TRUE]

So that would show Display Image when a custom field called featured displayed true.

Or if you can think of better syntax?

Scott McCulloch
Site Administrator
Larry OliverUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:33

12/19/2006 6:03 AM  

That would work great for my purposes. I am assuming that anything between the EXPRESSION block would display only when the condition was true.

[EXPRESSION:FEATURED:TRUE]


Write some text here or whatever else i need to show conditionally mabe it is a block of information that only make sense when the checkbox is checked.

[/EXPRESSION:FEATURED:TRUE]

 


Have a great day!
Larry
Javier AntoUser is Offline
Gold Membership

Posts:50

3/09/2007 7:52 AM  
Hello,


i think that some type of conditional IF THEN ELSE will be very useful for all purposes

this is a fragment of code in XMOD

[xmod:if name="imagen5"]
    [img width="300" src="/Portals/[xmod:field name="ptlid"/]/vehiculos/[xmod:field name="imagen5" /]"/]
[/xmod:if]


This checks if the field imagen5 contains anything if true then puts the html else nothing

i'm interested in this functionality not only for images, for all customized fields. I want to show custom fields depending if contains anithing. If the field is empty i don't want show.

AlbertramsbottomUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:404


5/08/2007 1:08 AM  
Here is my thought.

I need to be able to mark propeties as "sold pending Contract" and just "sold" the sold properties would stay for a set period of time.

Cheers

www.classcampers.com
www.worldscheapesthomes.co.uk
www.beebiplayer.co.uk
www.internetinsurancequotes.co.uk
www.vwbussales.co.uk
AlbertramsbottomUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:404


5/08/2007 1:09 AM  
Here is my thought.

I need to be able to mark propeties as "sold pending Contract" and just "sold" the sold properties would stay for a set period of time.

Cheers

www.classcampers.com
www.worldscheapesthomes.co.uk
www.beebiplayer.co.uk
www.internetinsurancequotes.co.uk
www.vwbussales.co.uk
Antonios ValamontesUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:40


5/08/2007 4:10 AM  
Create a custom Multiple Dropdown field named [STATUS] then Value[For Sale|Pending Contract|Offer Made|Sold|]

Add this code on your LAYOYT FILES|List/Item or Detail|Item

<script type="text/javascript">
var x = "[CUSTOM:STATUS]"
if(x=="For Sale") {
document.write("For Sale") }
else
if(x=="Pending Contract") {
document.write("Pending Contract") }
else
if(x=="Offer Made") {
document.write("Offer Made") }
else
if(x=="Sold") {
document.write("Sold") }
else
document.write("For Sale")
</script>

Note: Leave the "[" and "]" out of the value field

Adonis Valamontes
GreekeMedia.com
GreekBusinessUSA.com
Greek Radio Toolbar
Antonios ValamontesUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:40


5/08/2007 4:15 AM  
Some of the conditional issues can be resolved temporarely with a simple javascript, the more important need is to see the Search option seperated from the main module to be able to link  the search to multiple Agent Modules in the DNN and finally to be able to create sub-types this will make the Property Agent more flexible...


Just my 2 cents worth!

Adonis Valamontes
GreekeMedia.com
GreekBusinessUSA.com
Greek Radio Toolbar
You are not authorized to post a reply.
Forums > Modules > Property Agent > Conditionally Display Image.



ActiveForums 3.7