 |

thatscountry
User
Nov 6, 2006, 8:56 PM
Post #1 of 5
(320 views)
Shortcut
|
|
Omit 1st 3 articles in category headlines
|
Can't Post
|
|
I'm in the process of setting up my templates for a totally different look to my artist profiles sites. On the Category Index page, I have the latest 3 articles with thumbnail, title and short summary. Below that, I have a list of category headlines which include those 3 headlines as well. What I would like to do is omit the 1st 3 from the headlines but haven't got a clue how to code that on the categoryHeadlines.html page. Can someone help? *************** Marti Clayton That's Country
|
|
|  |
 |

thatscountry
User
Nov 7, 2006, 10:04 AM
Post #2 of 5
(307 views)
Shortcut
|
|
Re: [thatscountry] Omit 1st 3 articles in category headlines
[In reply to]
|
Can't Post
|
|
Any help would be appreciated *************** Marti Clayton That's Country
|
|
|  |
 |

Dave
Staff
/ Moderator

Nov 7, 2006, 12:12 PM
Post #3 of 5
(302 views)
Shortcut
|
|
Re: [thatscountry] Omit 1st 3 articles in category headlines
[In reply to]
|
Can't Post
|
|
Ok, here's a few ways to do that. 1) If you're just using your category headlines, you could edit that rule in "Publish Rules" and change it to only show results 4 to 10 instead of 1 to 10. Then republish that rule. 2) Another way would be to edit the articleLists/categoryHeadlines.html template and put a templateIf inside the articleRow templatecell that told it not to show results less than 4 <!-- templateCell : articleRow --> <!-- templateIf : $articleList.currentResultNumber$ >= 4 --> ... template cell content goes here ... <!-- /templateIf --> <!-- /templateCell : articleRow --> 3) And a third way would be to create another publish rule that just published headlines 4 to 10. That way you could use your original headlines file for something else. Would one of those work for you? Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

thatscountry
User
Nov 7, 2006, 12:32 PM
Post #4 of 5
(301 views)
Shortcut
|
|
Re: [Dave] Omit 1st 3 articles in category headlines
[In reply to]
|
Can't Post
|
|
That was staring me right in the face [which is quite red at the moment!]... I thought that was going to require hours of recoding and it was just a matter of changing the 1 to 4. Thanks Dave! It's working quite well. I absolutely love what you can do with am2 and nothing seems to be very hard, even for coding challenged people like myself!!! Thanks for a great program! *************** Marti Clayton That's Country
|
|
|  |
 |

Dave
Staff
/ Moderator

Nov 7, 2006, 3:48 PM
Post #5 of 5
(293 views)
Shortcut
|
|
Re: [thatscountry] Omit 1st 3 articles in category headlines
[In reply to]
|
Can't Post
|
|
You're welcome! And thanks for the kudos! :) Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|