Hi All! I would like to question about the anchor.
At the beginning, I added the metadata tag to {metadata showbase=true} and the anchors work fine.
As I would like to use the relative path and pretty URLs, I added {metadata } to my template.
And now all the anchor links doesn't work.
Could any body help??Thanks in advance!! =]
Anchor doesn't work after added {metadata <base href="..."/>} to the template
Re: Anchor doesn't work after added {metadata <base href="..."/>} to the templat
You need to take this out of the tag enclosure and put it in the Global Metadata field in Site Admin>Global Settings...
NOTE: the space is important after the address and before the />...
NOTE: the space is important after the address and before the />...
Re: Anchor doesn't work after added {metadata <base href="..."/>} to the template
Thanks Mark!
I have tried to add to the Global Settings
and deleted {metadata } in the template.
However, it makes all the images unlinked.
The links change to be "http://192.168.8.12/uploads/images/logo.gif".
But actually the links are supposed to be "http://192.168.8.12/cms/uploads/images/logo.gif".
And the anchor is still misslink. For example, the link is suppose to be
"http://192.168.8.12/cms/faq/basic-concepts/#BC2" and it is now "http://192.168.8.12/#BC2".
I have tried to add to the Global Settings
and deleted {metadata } in the template.
However, it makes all the images unlinked.
The links change to be "http://192.168.8.12/uploads/images/logo.gif".
But actually the links are supposed to be "http://192.168.8.12/cms/uploads/images/logo.gif".
And the anchor is still misslink. For example, the link is suppose to be
"http://192.168.8.12/cms/faq/basic-concepts/#BC2" and it is now "http://192.168.8.12/#BC2".
-
- Forum Members
- Posts: 44
- Joined: Wed Oct 12, 2005 8:50 pm
Re: Anchor doesn't work after added {metadata <base href="..."/>} to the templat
In your config.php file, does the following entry have "cms" as one of the folder names?
Code: Select all
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/foldername/foldername/foldername_html/foldername';
Re: Anchor doesn't work after added {metadata <base href="..."/>} to the template
Thanks Timothy!
I have the line "$config['root_path'] = '/var/www/html/cms'; " in the config.php.
I have the line "$config['root_path'] = '/var/www/html/cms'; " in the config.php.
Re: Anchor doesn't work after added {metadata <base href="..."/>} to the templat
You did leave the {metadata} tag in, right?...
Re: Anchor doesn't work after added {metadata <base href="..."/>} to the template
Hi Mark!
In the template, the {metadata} tag is still here.
Should I delete it?
In the template, the {metadata} tag is still here.
Should I delete it?