External pages
Posted: Tue Nov 24, 2009 2:12 pm
Hi there, I stumbled across this very useful guide whilst designing a website. I've implemented example 2(Original article), and it works, fantastic.
It's not however doing quite what I'd like it to, but what I'd like it to do is more a cross of example 3 and 2. On the website I'm designing, I have a "featured" block, followed by 4 "recent articles"
I was wondering if there was a way of displaying an 'announcement' (The top most topic) in the featured block, and then the rest of the 'news' forum in the recent article's block. The way I've got it split at the moment is basically, in the template file:
The loop specification probably isnt the best way to do it, but eh, it works.
I'm fairly inept when it comes down to writing php, but I have/do program, so if you explain something, I'll probably get it.
It's not however doing quite what I'd like it to, but what I'd like it to do is more a cross of example 3 and 2. On the website I'm designing, I have a "featured" block, followed by 4 "recent articles"
I was wondering if there was a way of displaying an 'announcement' (The top most topic) in the featured block, and then the rest of the 'news' forum in the recent article's block. The way I've got it split at the moment is basically, in the template file:
Code: Select all
<!--Featured Block-->
<!-- BEGIN announcements(0,0) -->
Title: {announcements.TOPIC_TITLE}<br />
Post author: {announcements.POST_AUTHOR}<br />
Post date: {announcements.POST_DATE}<br />
Last post text: {announcements.POST_TEXT}<br />
Post link: {announcements.POST_LINK}
<!-- END announcements -->
<!--Recent articles block-->
<!-- BEGIN announcements(1,4) -->
Title: {announcements.TOPIC_TITLE}<br />
Post author: {announcements.POST_AUTHOR}<br />
Post date: {announcements.POST_DATE}<br />
Last post text: {announcements.POST_TEXT}<br />
Post link: {announcements.POST_LINK}
<!-- END announcements -->
I'm fairly inept when it comes down to writing php, but I have/do program, so if you explain something, I'll probably get it.