Results 1 to 4 of 4

Thread: Using If to separate entrybit based off fields

  1. #1
    Join Date
    Sep 2006
    Posts
    28

    Default Using If to separate entrybit based off fields

    I can't get it to work but would it be poissible to lets say

    <vb:if condition="$entry['field1'] == 'stuff'">

    entrybit code here (Shows only bits where field1 is equal to stuff

    </vb:if>

    <br />
    <br />

    <vb:if condition="$entry['field1'] == 'stuff2'">

    entrybit code here (Shows only bits where field1 is equal to stuff2)

    </vb:if>

    Basically I have trying to show items based of field values in different tables but on the same page. When I use the above code the first one works, but I cant get it to execute twice and show the second.

    Thoughts?

  2. #2
    Join Date
    Sep 2006
    Posts
    28

    Default

    bump

  3. #3
    Join Date
    Mar 2004
    Location
    MA
    Posts
    146

    Default

    Try:

    Code:
    <vb:if condition="$entry['field1'] == 'stuff'">
    This equals "stuff"
    <vb:else />
    <vb:if condition="$entry['field1'] == 'stuff2'">
    This equals "stuff2"
    </vb:if>
    </vb:if>
    That is untested but would be how I would first approach what you are trying to do.

  4. #4
    Join Date
    Sep 2006
    Posts
    28

    Default

    didnt work.

    Basically this but for vbdynamics not links

    http://www.vbadvanced.com/forum/show...y+custom+field

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search fields based on category
    By tavenger5 in forum "How Do I..." Questions
    Replies: 3
    Last Post: 10-23-2010, 12:20 PM
  2. Icons with Lean entrybit
    By ibaker in forum Bugs & Issues
    Replies: 3
    Last Post: 07-13-2009, 05:51 PM
  3. disable WYSIWYG for entrybit
    By connectr in forum "How Do I..." Questions
    Replies: 2
    Last Post: 03-12-2009, 10:57 AM
  4. Tags in entrybit?
    By Webnower in forum "How Do I..." Questions
    Replies: 2
    Last Post: 08-28-2008, 10:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •