SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: fix if then

  1. #1
    SitePoint Addict
    Join Date
    Aug 2004
    Location
    vi
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation fix if then

    How do I edit this so that it does not show the ContentType = "Parts", but everything else. currently it displays everything. I do not want parts to show up.HELP!

    [CODE]
    <%if request("ContentType")="" then%>
    <A href='content.do?CatType=<%=CatType%>' class='ParentFont'><%=CatType%> </A>
    <%end if%>

  2. #2
    SitePoint Addict darkwater23's Avatar
    Join Date
    Nov 2005
    Location
    Omaha, NE
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this what you are looking for?

    <&#37;if request("ContentType")<>"Parts" then%>
    <A href='content.do?CatType=<%=CatType%>' class='ParentFont'><%=CatType%> </A>
    <%end if%>

  3. #3
    SitePoint Addict
    Join Date
    Aug 2004
    Location
    vi
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That did not help at all the Parts section is still displaying in sitemap.

  4. #4
    SitePoint Addict
    Join Date
    Aug 2004
    Location
    vi
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, you helped guide me on the right path of code:

    this was correction:

    <&#37;IF CatType <> "WebParts Instances" OR CatType = "" THEN %>


Bookmarks

Posting Permissions

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