Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1:
Add Latest Headlines to Homepage

 

 


Jobu
User

Sep 2, 2006, 7:14 AM

Post #1 of 13 (3166 views)
Shortcut
Add Latest Headlines to Homepage Can't Post

How do I add the latest 5 headlines to my homepage, and restrict the headlines to 30 characters? For example, if you scroll down on http://www.wiredbiz.com/, you will see we list the last 5 links of our directory and last 5 threads of our forum. How do we do the same thing with the articles?

Thanks!


ChetW
Staff


Sep 3, 2006, 4:21 PM

Post #2 of 13 (3128 views)
Shortcut
Re: [Jobu] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi,

Thanks for the post!

Are you trying to add the headlines section to your Article Manager index page or are you trying to add the headlines files to an index page that is external to Article Manager?

If you are trying to add the five most recent headlines on to a page external to Article Manager you could use a server side include to call in your headlines_bycat.shtml file. To do this follow the steps below:

- Add the following server side include to your index page in the spot where you want the five most recent headlines published:


Code
<!--#include virtual="/path/to/your/publish/headlines_bycat.shtml" -->



- When you are finished making your changes save your index page as a .shtml extension.

- Next we will limit the number of headlines that are displayed on your index page, to do this login to your Article Manager Admin area and select 'Setup Options' from the far right hand side of the screen.

- On the 'Setup Options' page there are five tabs select the one that reads 'Server', on the 'Server' page scroll down to the "Publish File Settings" section.

- Notice the "Top Headlines" field, change the per page value to 5 and save your changes. You may also want to re-publish your Article Manager content.

Does this help? If you have any further question please don't hesitate to ask!
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



Jobu
User

Sep 3, 2006, 4:34 PM

Post #3 of 13 (3126 views)
Shortcut
Re: [ChetW] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi Chris,

That doesn't work for two reasons.

As I said, I want to show the last 5 headlines ONLY... so my include file, if I do it that way, will not be headlines_bycat, but would have to be as follows (a different template).

Secondly, I want to cut the length of the headline to 30 chars plus an ellipsis if the headline is 33 or more chars longer. That's the reason I posted www.WiredBIZ.com and ask that you look at how the New Links and Hot Threads are displayed.


Code
  <LI><A HREF="linktoarticle">ArticleName</A></LI>



(This post was edited by Jobu on Sep 3, 2006, 4:38 PM)


Jobu
User

Sep 6, 2006, 8:31 PM

Post #4 of 13 (3066 views)
Shortcut
Re: [Jobu] Add Latest Headlines to Homepage [In reply to] Can't Post

I take it this can't be done easily?


ross
Staff / Moderator


Sep 7, 2006, 9:48 AM

Post #5 of 13 (3055 views)
Shortcut
Re: [Jobu] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi there.

Thanks for getting back in touch!

There is another file that you’ll want to take a look at here:

/artman/publish/headlines_.shtml

This one has the 10 most recent articles from any of your categories in one nice list. You can change the number down to 5 by going to the Server tab in Setup Options and scrolling down to the Publish File Settings. There will be a row in that table labeled Global Headlines; just change the per page value here to 5 instead of 10 and hit Publish All.

Now, the 30 characters part take a look at this post by Cliff:

http://www.interactivetools.com/forum/gforum.cgi?post=43820;search_string=truncate;t=search_engine#43820

While the example he uses is actually Listings Manager, the technique will work the same for Article Manager. In step 1 make sure to change that 50 to 30 and then in step 2 make sure to use the appropriate placeholder. Since you will be limiting the length on your headlines file, the template you’ll need to work on is /templates/headlines/default.html

Have a go and let me know how you make out Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




Jobu
User

Sep 7, 2006, 7:57 PM

Post #6 of 13 (3029 views)
Shortcut
Re: [ross] Add Latest Headlines to Homepage [In reply to] Can't Post


In Reply To
Hi there.

Thanks for getting back in touch!

There is another file that you’ll want to take a look at here:

/artman/publish/headlines_.shtml

This one has the 10 most recent articles from any of your categories in one nice list. You can change the number down to 5 by going to the Server tab in Setup Options and scrolling down to the Publish File Settings. There will be a row in that table labeled Global Headlines; just change the per page value here to 5 instead of 10 and hit Publish All.

Now, the 30 characters part take a look at this post by Cliff:

http://www.interactivetools.com/forum/gforum.cgi?post=43820;search_string=truncate;t=search_engine#43820

While the example he uses is actually Listings Manager, the technique will work the same for Article Manager. In step 1 make sure to change that 50 to 30 and then in step 2 make sure to use the appropriate placeholder. Since you will be limiting the length on your headlines file, the template you’ll need to work on is /templates/headlines/default.html

Have a go and let me know how you make out Smile.

OK, but how do I get rid of the "<h3>$cat_name$: Latest Headlines</h3>" for my SSI call but leave it in everywhere else?


Jobu
User

Sep 14, 2006, 6:25 PM

Post #7 of 13 (2965 views)
Shortcut
Re: [ross] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi Ross,

No dice on this?


ChetW
Staff


Sep 15, 2006, 10:57 AM

Post #8 of 13 (2957 views)
Shortcut
Re: [Jobu] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi,

Thanks for the update!

You could create a unique template that is used just for your character limited headlines. To do this you would make a copy of your "default.html" headlines html template this file can be found in your /templates/headlines/ directory, give this new template a distinct name like "charlimited_headlines.html".

Remove this section of code from the new template file:


Code
<h3>$cat_name$: Latest Headlines</h3>



Save your changes and upload your new template file into the /templates/headlines directory, you should Know have both a default.html template and your new charlimited_headlines.html file inside the /headlines/ folder.

Next you will change your SSI's to also look for a specific template to do this change this:


Code
<!-- #include virtual="/path/to/your/publish/headlines_.shtml"-->



to this:


Code
<!-- #include virtual="/path/to/your/search.cgi?search=1&perpage=5start=1&template=headlines/charlimited_headlines.html"-->



The above code will include the five most recent headlines based on the newly created "charlimited_headlines.html" template file. :)

Give this a try and feel free to ask if you have any other questions. :)
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



Jobu
User

Sep 16, 2006, 5:52 PM

Post #9 of 13 (2949 views)
Shortcut
Re: [ChetW] Add Latest Headlines to Homepage [In reply to] Can't Post

Sorry, this doesn't work.

When I run the command as follows, I get Program Message TemplateCell : Template cell 'next' is not defined!


Code




EDIT _ I had to include the "next" code in the template to make it work.



Still trying to get the character limits to work.


(This post was edited by Jobu on Sep 16, 2006, 5:57 PM)


Jobu
User

Sep 16, 2006, 6:17 PM

Post #10 of 13 (2945 views)
Shortcut
Re: [ChetW] Add Latest Headlines to Homepage [In reply to] Can't Post

So when I call the file from my browser, I get a proper output (http://www.wiredbiz.com/cgi-bin/artman/exec/search.cgi?search=1&perpage=5start=1&template=headlines/charlimited_headlines.html).

When I include the SSI, I get the following instead of the output. I am running SSI calls elsewhere, so it's not a problem with my server. Any ideas? I have triplechecked and my path is right on the SSI call (/cgi-bin/...)


Code



ross
Staff / Moderator


Sep 17, 2006, 11:58 AM

Post #11 of 13 (2938 views)
Shortcut
Re: [Jobu] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi

Thanks for the update!

I think there might have been part of your last post that didn’t quite make it. If you could post up an example of what’s happening when you try the SSI, that will make it much easier for me to track down the problem.

I look forward to hearing from you again Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




Jobu
User

Sep 17, 2006, 12:05 PM

Post #12 of 13 (2936 views)
Shortcut
Re: [ross] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi Ross,

When I make the SSI call, I just get a bunch of jumbled output. Weird symbols like boxes, etc. If I directly access the URL, I see the output I am supposed to get, but when I call the link it's just random symbols.


ross
Staff / Moderator


Sep 17, 2006, 2:29 PM

Post #13 of 13 (2927 views)
Shortcut
Re: [Jobu] Add Latest Headlines to Homepage [In reply to] Can't Post

Hi again Smile.

I am actually thinking the problem here is going to be related to how your server handles include statements and cgi scripts. I have seen it in the past, but I’d like to run a couple tests just to be sure.

Would you mind sending me some FTP details so I can get onto your server?

https://www.interactivetools.com/support/email_support.cgi

I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4