Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Changing the way Recent Headlines are displayed

 

 


KrazyKat
User

Jul 8, 2006, 6:45 AM

Post #1 of 11 (2396 views)
Shortcut
Changing the way Recent Headlines are displayed Can't Post

I would like the right-hand column to show only headlines from my Health News category, no matter which category on the left has been selected. Is this the part of my index/default template that I change?

<!-- INCLUDE TOP HEADLINES (from each category) -->
<!--#include virtual="$publishdir_virtualpath$$file_headlines_bycat$" -->

And if so, what do I change it to?

Thanks! Smile


ross
Staff / Moderator


Jul 9, 2006, 9:04 AM

Post #2 of 11 (2390 views)
Shortcut
Re: [KrazyKat] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi there once more Smile.

Thanks again for posting!

The first thing to do here will be to find out the category number of the Health News category. To do that, go to your Category Editor and click modify for the Health News category. Now, up in the URL you are going to see something like this:

/exec/admin.cgi?cat_edit=7

The 7 there is going to be your category number. Once you have your category number, you’ll be adding this to your templates:


Code
<!-- INCLUDE TOP HEADLINES (from each category) -->  
<!--#include virtual="$publishdir_virtualpath$cat_headlines_7.shtml" -->


Just make sure to use your category number in there and to republish your articles after the change is made.

Give this a whurl and let me know what you think 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: http://www.interactivetools.com/consulting/



(This post was edited by ross on Jul 10, 2006, 11:48 AM)


KrazyKat
User

Jul 9, 2006, 4:38 PM

Post #3 of 11 (2382 views)
Shortcut
Re: [ross] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi Ross,

This one does not quite work the way we want it to either. We had earlier modified the headlines_bycat template and so now that the default template is no longer referencing that file, the changes we made to the right-hand column are now not showing up. As well, instead of having 30 headlines in the right-hand column (which is what we want), only 10 appeared. (I've changed it back to the way it was originally.)

Thanks again Smile


ross
Staff / Moderator


Jul 10, 2006, 11:50 AM

Post #4 of 11 (2358 views)
Shortcut
Re: [KrazyKat] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi.

I actually managed to forget a quotation at the end of my code example. That’s probably going to be the reason it wasn’t working for you. Sorry about that.

I updated my code though so could you give it another shot and let me know how you make out? 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: http://www.interactivetools.com/consulting/



KrazyKat
User

Jul 11, 2006, 11:46 AM

Post #5 of 11 (2345 views)
Shortcut
Re: [ross] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi Ross,

I actually had figured out that the quotation mark was missing, but it still isn't doing what I want it to do even after putting the code in correctly.

Right now, my default template displays Recent Headlines based on the headlines_bycat file. We've made some changes to that file, so (for example) it says "Latest Headlines" and also does not have the category name listed underneath, just the headlines.

When I modify the default template to tell it to just display the headlines from category 2 (which is my "Health News" category), it changes the way that part looks... instead of saying "Latest Headlines" it says "Health News" and instead of there being the 30 most recent headlines, there are only 10. (We want to display 10 headlines on the main category page, but 30 in the right-hand column, which is how it works now.)

Thanks! Smile


ChetW
Staff


Jul 12, 2006, 1:29 PM

Post #6 of 11 (2334 views)
Shortcut
Re: [KrazyKat] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi KrazyKat,

Thanks for the update. :)

It's good to hear that you have things set-up the way you like and that everything is working for you!

If you have any furhter questions please don't hesitate to ask.
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


KrazyKat
User

Jul 12, 2006, 2:22 PM

Post #7 of 11 (2329 views)
Shortcut
Re: [ChetW] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi Chet,

Actually it is NOT working the way I want it to.

The problem: I want to have ONLY headlines from ONE category ("Headline News") displayed on the right-hand side (no matter which category on the left is chosen).

I tried Ross' suggestion, and although it does indeed only display the headlines from "Headline News" in the right-hand column, there are two problems with the fix.

1. It changes the header of the right-hand column, which I do NOT want it to do.

2. It only displays ten headlines in the right-hand column, instead of 30.

Right now, the look of the right-hand column is based on my customised template headlines_bycat.

So when I change this line in my default template:

<!--#include virtual="$publishdir_virtualpath$$file_headlines_bycat$" -->

To this:

<!--#include virtual="$publishdir_virtualpath$cat_headlines_2.shtml" -->

it changes the formatting of the right-hand column.

I'm not sure which additional file I would need to change to get this working the way I want it to (perhaps the cat_headlines_2 file? or is that automatically generated?)

Your help is appreciated! Smile


ChetW
Staff


Jul 13, 2006, 3:30 PM

Post #8 of 11 (2316 views)
Shortcut
Re: [KrazyKat] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi KrazyKat,

I have viewed your site and it appears that this problem has been solved, did you manage to fix this yourself?

If I am missing the problem what you may want to do is send in a support request with ftp information. This way I can get a closer look at what is going on.

The support request fourm is here:
https://www.interactivetools.com/support/email_support.cgi
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


simonwh
User

Jul 14, 2006, 6:05 AM

Post #9 of 11 (2307 views)
Shortcut
Re: [ChetW] Changing the way Recent Headlines are displayed [In reply to] Can't Post

There's a dollar sign missing in the middle of that SSI call:

<!--#include virtual="$publishdir_virtualpath$cat_headlines_2.shtml" -->

Should be:

<!--#include virtual="$publishdir_virtualpath$$cat_headlines_2.shtml" -->


MikeB
Staff / Moderator


Jul 15, 2006, 10:06 AM

Post #10 of 11 (2270 views)
Shortcut
Re: [KrazyKat] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Hi KrazyKat,

Thanks for posting! Smile

It looks to me like the syntax of your include is correct and it sounds like the articles themselves are being included on the site.

That said, the layout is going to be different when you change your include because the headlines_bycat template file was previously being used and now the template you'll want to look at will be /artman/templates/headlines/default.html.

In this template you should be able to set the header of this column and modify any other details so it has the same layout as the file you're currently using. This way when you include cat_headlines_2.shtml the layout will be the same as it currently is.

Also, to set this category to display 30 headlines on the right rather than just 10 you'll want to log into Article Manager and click "Category Editor". You'll then want to click "Modify" for your Headline News category and you'll want to modify the "Articles per page" setting. Just be sure to click the radio button beside "Custom" and set the amount of articles and headlines to what you'd like. The amount of articles controls how many articles you'll see when you go to the category index page and the "headlines" option controls how many headlines you'll see on the right hand side.

I hope this helps and if you have any other questions feel free to let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]

(This post was edited by MikeB on Jul 20, 2006, 9:31 AM)


KrazyKat
User

Jul 20, 2006, 7:33 AM

Post #11 of 11 (2146 views)
Shortcut
Re: [MikeB] Changing the way Recent Headlines are displayed [In reply to] Can't Post

Thanks Mike, that worked out great!

Smile