base tag question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
wesyah234
Forum Members
Forum Members
Posts: 60
Joined: Tue Mar 07, 2006 4:30 am

base tag question

Post by wesyah234 »

Is there an easy fix for this?

I'm using an rss feed that creates # style footnotes (anchors) to link down to the bottom of the current page.

the page is here:
http://www.firstcongregationalwaukesha. ... page=bible

and the page generates a base of
http://www.firstcongregationalwaukesha.org/newsite/

causing the # links to go to:
http://www.firstcongregationalwaukesha.org/newsite/#f1
for example, which breaks because it comes back to the homepage.

what I really need is for the footnote links to be like this:
http://www.firstcongregationalwaukesha. ... e=bible#f1

as far as I know about html, I either need a base like this:
http://www.firstcongregationalwaukesha. ... page=bible

or no base tag at all (but I don't know what else might break if I mess with the base tag, so I'm looking for advice first!)

Can anyone help?

Thanks!
User avatar
myshko
Forum Members
Forum Members
Posts: 102
Joined: Wed Feb 07, 2007 2:36 pm

Re: base tag question

Post by myshko »

You can remove the base tag with: {metadata  showbase="false"} in your template.

I don't think removing the base tag will cause too many problems. I take it out as it usually causes more issues having it in.

EDIT: On second thoughts, removing the base could cause linking problems. I forget as I link everything relatively from the root of my sites using an initial trailing slash if needed. I don't like using absolute refs at all if possible.

If your links aren't relative, they could point to the wrong location if base is removed which could cause problems with stylesheets and internal links.

It's easy enough to test though, if you have a dev / staging site?

D
Last edited by myshko on Sun May 27, 2007 5:45 pm, edited 1 time in total.
wesyah234
Forum Members
Forum Members
Posts: 60
Joined: Tue Mar 07, 2006 4:30 am

Re: base tag question

Post by wesyah234 »

That's exactly what it needed. thanks for the help!
Post Reply

Return to “CMSMS Core”