UtopiaSoftware Forums

Full Version: Problem with HEADLINES
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there!

I'm using the last version of UNP.

Everything's working fine at the moment, but i encountered a problem with the headlines. I think I know how to fix it, but I can't find the file containing the piece of code to change.

The thing is that when I click on any of the headlines, it goes to the index page of the site instead of the news page. I've noticed that when I roll over any of the links, the status bar displays the following (supposing the ID of the news to display is 5):

www.website.com/#unpnews5

I'm guessing it should actually be www.website.com/unp/news.php#unpnews5 (supposing the name of the folder containing UNP is called unp).

I'm not completely sure but I think I should change the outcoming code for the link to display and add "unp/news.php" before the string that gets the ID of the news???

If that's the case, where should I do that? I can't see anything in the headlines.php file. If not, could you let me know how to fix this little problem?

Thanks a lot!!
elMediano Wrote:Hi there!

I'm using the last version of UNP.

Everything's working fine at the moment, but i encountered a problem with the headlines. I think I know how to fix it, but I can't find the file containing the piece of code to change.

The thing is that when I click on any of the headlines, it goes to the index page of the site instead of the news page. I've noticed that when I roll over any of the links, the status bar displays the following (supposing the ID of the news to display is 5):

www.website.com/#unpnews5

I'm guessing it should actually be www.website.com/unp/news.php#unpnews5 (supposing the name of the folder containing UNP is called unp).

I'm not completely sure but I think I should change the outcoming code for the link to display and add "unp/news.php" before the string that gets the ID of the news???

If that's the case, where should I do that? I can't see anything in the headlines.php file. If not, could you let me know how to fix this little problem?

Thanks a lot!!

I thought this was a problem also when I was looking and messing with the headlines but I relized its not a issue. But if you want to change it you would go into the headlines_displaybit template file and see where it says {$siteurl} change that to show the correct Path to your news. Else it will revert to your Index page thinking thats where your news will be.
Thanks a lot for your help!

I just changed the "Site URL" in the settings sections. I had it as the website's index page, cos I thought it was the typical option in which you introduce the site URL for reference. But it actually says "The URL to the main site where the news will be displayed"... quite clear!! Now my headlines generate the correct links.
Happy to hear that it is working for you now.
Reference URL's