Results 1 to 6 of 6

Thread: Feed Disappearing with use of .definetemplate

  1. #1
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Feed Disappearing with use of .definetemplate

    1) Script Title: gAjax RSS Feeds Displayer v2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...sdisplayer.htm

    3) Describe problem: I'm having a problem arranging the content of the feed. I want to display the label and date before the tittle and description. I attempted to call on the .definetemplate in order to rearrange the content display, but the feed just disappears. When I take the

    .definetemplate("{label}{date}<br />{title}<br />{description}")

    out, my feed is fine. Any suggestions? Thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,025
    Thanks
    16
    Thanked 315 Times in 313 Posts
    Blog Entries
    13

    Default

    Make sure you include the id of your RSS at the start of that line;
    Code:
    myRSSid.definetemplate("{label}{date}<br />{title}<br />{description}")
    If you need more help, please post a link to your page.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply, but the id seems to be alright.

    http://www.tylerchurst.com/

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,025
    Thanks
    16
    Thanked 315 Times in 313 Posts
    Blog Entries
    13

    Default

    I don't know if it will help but try changing all instances of "Newsfeed" to "newsfeed" and replace "example2" in the first line with "newsfeed" too.

    Also, try matching the fields inside the displayoptions line and the definetemplate line - at the moment you have "date" in one but "datetime" in the other.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  5. #5
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried all of it, but still nothing. I don't understand why it's being so stubborn haha.

  6. #6
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,025
    Thanks
    16
    Thanked 315 Times in 313 Posts
    Blog Entries
    13

    Default

    The order of the script and/or other scripts on the page could be affecting things.

    What I tend to do in cases like this is start with a blank web page that just contains the DD script you want. Get that setup and working how you like (don't worry about styles for now) and then gradually add back the rest of your web page. Build it back up a few lines of html and scripts at a time and test in a browser between saves.

    This usually helps pinpoint the problematic areas.

    I'm sorry I can't be of much more help today - I injured my back recently and am stuck in bed on an iphone.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

Similar Threads

  1. Replies: 3
    Last Post: 08-29-2012, 06:34 PM
  2. Replies: 0
    Last Post: 10-19-2011, 04:35 PM
  3. RSS Feed Reader (gfeedfetcher) isn't updating second feed
    By kellyrnh in forum Dynamic Drive scripts help
    Replies: 15
    Last Post: 08-13-2011, 07:16 AM
  4. Disappearing <div> while using gradualfader
    By jiventura89 in forum JavaScript
    Replies: 0
    Last Post: 07-27-2010, 10:58 AM
  5. disappearing gallery
    By rzogheb in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 02-27-2007, 08:30 AM

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
  •