Results 1 to 3 of 3

Thread: Smarty and custom field question

  1. #1
    Join Date
    Dec 2004
    Posts
    65

    Default Smarty and custom field question

    Hello,

    I have created a custom field called RSS, so site owners who have RSS syndication on their site can publish their rss feeds on their detail pages in my directory. Now my question is this: is there a smarty statement or instruction that will allow to display nothing if a site owner doesnt enter any rss feed url? Because right now, when no rss feed url is specified i get this message : Warning: parse_url(http://) [function.parse-url]: Unable to parse url - because the field is empty.

    Would appreciate your help! Thanks!

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Using the follow it will only display the RSS field if there is data

    <% if $RSS%>
    <% $RSS%>
    <% /if%>

  3. #3
    Join Date
    Dec 2004
    Posts
    65

    Default

    Thank you very much! That did the trick!

Similar Threads

  1. custom field question
    By sarahashwell in forum INDEXU DELUXE v1.x
    Replies: 1
    Last Post: 06-08-2008, 10:59 PM
  2. custom field
    By achintha in forum Blocks and Modification
    Replies: 0
    Last Post: 05-31-2008, 09:05 AM
  3. Custom Field
    By Millards in forum INDEXU DELUXE v1.x
    Replies: 6
    Last Post: 05-18-2008, 02:03 AM
  4. Custom field
    By giannisff in forum v5.x
    Replies: 1
    Last Post: 03-16-2008, 09:02 PM
  5. Custom Field
    By cegerxwinn in forum v5.x
    Replies: 3
    Last Post: 01-27-2007, 08:19 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
  •