question about a 'latest updates' include i'm working on

Asked by dorkass

I've been tryin to figure this out and wanted to see if it was even possible. I'm trying to create one div box that shows the latest updates over multiple categories, ie photoshop pics, game reviews, articles, etc. The problem I'm running in to is linking to the article. The only way i've come up with is to just have different div containers for each different category, thus a different shownews.php include so that each one can have the different $phpns['script_link'] embedded in each include of shownews.php. I'm wondering if it's possible somehow either through the template system or the pre-include variables to have the multiple update headlines to successfully link to each of their prospective pages, ie phoshop.php or article.php, etc. Lemme know if I didn't explain clear enough, it's kinda tricky what I'm tryin to do

Question information

Language:
English Edit question
Status:
Solved
For:
phpns Edit question
Assignee:
No assignee Edit question
Solved by:
dorkass
Solved:
Last query:
Last reply:
Revision history for this message
dorkass (dprkass) said :
#1

It would almost be perfect if i could somehow attach the category with it's prospective page on my site, such as article category always links to articles.php or reviews category always links to reviews.php

Revision history for this message
dorkass (dprkass) said :
#2

another thing i could do if it's possible somehow is dynamically include the article_href in the news post or title itself, so that I'll use the same template but point each individual article to its news post. I could use static links in the news posts if I have to. Just tryin to figure out how to best do this...

Revision history for this message
dorkass (dprkass) said :
#3

I think what I'll end up doing is just leave off dynamic links, and have the latest article title show up, but just put a manual link to the articles home page in my site in the subtitle... then just disable subtitle view on the articles home page shownews.php include. This is plenty good enough for me. I'm still interested to know anyone's thoughts on how else to do this though using the current system. It could be very interesting to get this working dynamically.