
Donna
Staff
/ Moderator

Mar 12, 2010, 3:55 PM
Post #6 of 9
(9843 views)
Shortcut
|
|
Re: [musklick] Publishing two articles from different categories on one page
[In reply to]
|
Can't Post
|
|
Hi there, It looks like this is your scroll code right now:
<h1>LATEST MATCH</h1> <div class="flexcroll" id="mycustomscroll3"> <h2>HSV wins over Hertha BSC</h2> <p>In the 40th minute Marcell Jansen scores the match's only goal. A left footed shot from the centre of the box to the centre of the goal.</p> <p>Marcus Berg did not play because of sickness.</p> <p>Read more at the <a href="http://www.hsv.de/" target="_blank">HSV official web site</a></p> </div> <h1>NEXT MATCH</h1> <div class="flexcroll" id="mycustomscroll4"> <p>Marcus Berg and his HSV team mates will be up against RSC Anderlecht on Thursday 11th March.</p> </div> So, the fact that you have the two different div id's is where you'll run into trouble, because you need repeating code. Is it possible to change those id's to mycustomscroll1 and mycustomscroll2? That way, we could let Article Manager number it, like this:
<!-- template insert : $articleList$ --> <!-- templatecell : articleRow --> <!-- templateIf $articlelist.currentresultnumber$ == 1 --><h1>LATEST MATCH</h1><!-- /templateIf --> <!-- templateIf $articlelist.currentresultnumber$ == 2 --><h1>NEXT MATCH</h1><!-- /templateIf --> <div class="flexcroll" id="mycustomscroll$articlelist.currentresultnumber$"> <p>$article.content$</p> </div> <!-- /templatecell : articleRow --> Basically, it uses the "$articlelist.currentresultnumber$" placeholder to tell you what the current result number is, which will either be 1 or 2, since there are only two results. So, if you can work the rest of your layout around that, it'll work great. :) I also used the current result number to ask it whether you should display "latest match" or "next match". Depending on which number it is, it will show only the one that matches. Give that a try and let me know if it works. :) Donna -- support@interactivetools.com
|