internal link [solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
samj
Forum Members
Forum Members
Posts: 30
Joined: Mon Feb 28, 2011 4:31 am

internal link [solved]

Post by samj »

Cause: (in config.php) $config['url_rewriting'] = 'mod_rewrite';
change to $config['url_rewriting'] = 'none';
--------------------------------------------------------------------------

Can not get a link to another page from home-page to work;
first, I created a new page in the top dir called "news",
then i created an internal link through the admin panel (Content/Pages/...) =>not working
then I created <a href=''news">, <a href=''news.htm">, <a href=''news.html">, etc in the home page =>not working.
Both, the "news" page and the link to the "news" page are visible in the menu. => not working
Typing the address into the address bar is also not working.

In all cases I end up in http://localhost/xampp/, instead of
http://localhost/mysite/. (home page resides under http://localhost/mysite/ and loads correctly.

Xampp/vista/home dev./fully open system/everything default
Install path:C:/xampp/htdocs/mysite/
cmsms v1.9.4.1

thanks
Last edited by samj on Tue Mar 22, 2011 9:01 pm, edited 1 time in total.
Marijus

Re: internal link

Post by Marijus »

try:

Code: Select all

<a href="{cms_selflink href='news' }">News</a>
and check Page Alias maybe there not news...
samj
Forum Members
Forum Members
Posts: 30
Joined: Mon Feb 28, 2011 4:31 am

Re: internal link

Post by samj »

thanks, tried, but no link yet
alias is set to news.

homepage renders under localhost/mysite/
news link shows up under localhost/xampp/

... somehow the filepath...??

also, for some reason, the address bar does nor show a filename when rendering the home page, just the directory and localhost.

thanks
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: internal link

Post by Nullig »

Check the paths in your config.php file.

Nullig
samj
Forum Members
Forum Members
Posts: 30
Joined: Mon Feb 28, 2011 4:31 am

Re: internal link

Post by samj »

Not sure what to look for, but this is it:

$config['root_url'] = 'http://localhost/mysite';

$config['ssl_url'] = 'https://localhost/mysite';

$config['root_path'] = 'C:\xampp\htdocs\mysite';

$config['admin_dir'] = 'admin';

$config['previews_path'] = 'C:\xampp\htdocs\mysite\tmp\cache';

$config['uploads_path'] = 'C:\xampp\htdocs\mysite\uploads';

$config['uploads_url'] = $config['root_url'] . '/uploads';

The odd thing is that the menu links to "home-page" according to the address bar work, they are loaded under localhost/mysite/ without a filename appended, such as index.htm, or index.php.
The link from the same menus to "news-page" end up under localhost/xammp/(no-filename) according to the address bar, which is one directory UP from where it is supposed to be. It seems something is looking at the wrong directory, maybe.
Install Path: C:\xammp\htdocs\mysite\

thanks
samj
Post Reply

Return to “Layout and Design (CSS & HTML)”