Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
WebFeed Mods

 

 


noza
User

Aug 13, 2002, 12:53 AM

Post #1 of 6 (3360 views)
Shortcut
WebFeed Mods Can't Post

Hello, just learned how to add article pics to my webfeed, which I'm actually using to create my the site's home page. Thank you to a forum post Cool

Based on the above, I also added a bit of HTML to create a <-hr-> line between every article on the feed: http://www.azhumane.org/index_new.shtml

Here is what I now need help with:

The summaries are mostly too short to go next to the pics which now show. I would like to:

* Include part of the actual article follow with a "READ MORE" link

Or, if anyone has a better suggestion to create the home page including a summary of the headlines with article's pics.

Thank you in advance,

Pat

nozanoze.com


(This post was edited by noza on Aug 13, 2002, 12:55 AM)


Luke
Staff / Moderator


Aug 13, 2002, 4:54 PM

Post #2 of 6 (3339 views)
Shortcut
Re: [noza] WebFeed Mods [In reply to] Can't Post

One of the programmers here thinks he knows what you want to accomplish, and says he can come up with some JavaScript to do this. First, I just wanted to check and make sure I know exactly what you wanted to do.

It seems like you already have the summaries being output, I'm guessing you want to add the first few words of the "content" followed by a "read more" link.


For example:

Title of Article

Summary goes here.

First few words of content... [Read More]



Let me know if this is what you want to do and I'll have one of the programmers look into it.
Luke Holzken
Product Development


noza
User

Aug 13, 2002, 7:33 PM

Post #3 of 6 (3334 views)
Shortcut
Re: [Luke] WebFeed Mods [In reply to] Can't Post

Hi Luke, yes ! right on the money... but I wanted to include a bit more than just the first few words... may be the first paragraph or first five lines.

Thank you in advance for your feedback.


Chris
Staff


Aug 14, 2002, 6:05 PM

Post #4 of 6 (3317 views)
Shortcut
Re: [noza] WebFeed Mods [In reply to] Can't Post

Hi noza,

There's a function called "crop_text" built in to syndicate.js by default which has been commented out. The function's purpose is to display at most a certain number of characters of text, followed by ... if there's more. The function is designed so that it won't cut off the middle of a word. I've drawn up a sample syndicate.js file for you to use, adding at most 100 characters of an article's content to the end of its summary. I also added a "[more]" link to the bottom of every article. The file is available here:

http://www.interactivetools.com/staff/chris/artman_crop_text_in_webfeed/syndicate.js.txt

Use your browser to View Source, then save it over top of your existing syndicate.js file. Have a look through the file for the number "100" if you'd like to change the amount of content displayed. You'll have to click "publish all" in your Setup Options to see the results.

I hope this does the trick for you. Let me know if you have any more questions.
Chris


noza
User

Aug 14, 2002, 8:31 PM

Post #5 of 6 (3311 views)
Shortcut
Re: [Chris] WebFeed Mods [In reply to] Can't Post

Hi Chris,

Sounds perfect, owever I'm getting a 404 to the .txt file you created ?

Pat


Chris
Staff


Aug 15, 2002, 10:03 AM

Post #6 of 6 (3294 views)
Shortcut
Re: [noza] WebFeed Mods [In reply to] Can't Post

Ahh.. Sorry about that. I've fixed the link now. Smile
Chris