External link in navigation

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
wil_b

External link in navigation

Post by wil_b »

I have an external link in my navigation menu, which opens a new window. The navigation menu adds the standard footer to my website with 'Next page' and 'Previous page'. Suppose I am on the page where the NEXT page is my external link, clicking on the 'Next page' here results in going to my external link page, but it does not open in a new window in this case.

Is it possible to change this somewhere, so that the 'Next page' link opens my next page in a new window only if the next page is an external link?

Thanks in advance!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: External link in navigation

Post by jmcgin51 »

probably possible.  Would have to be some kind of logic like this

IF base URL != yourowndomain.com THEN
Next
ELSE
Next
END IF

Not sure of the details, but I think it can be done...
Post Reply

Return to “Developers Discussion”