Page 1 of 1

Problem 1: internal links wrong, Problem 2: how to change {sitename}?

Posted: Fri Sep 15, 2006 6:18 pm
by 10010110
Hi there,

OK, I'm sure I did everything as necessary:

Code: Select all

{cms_selflink dir='anchor' anchorlink='formwrap' text='fill out this form'}
So this is supposed skip to the form when the user clicks the link. And actually it's doing the right thing... but not quite. Instead of showing the right URL, e.g.:

Code: Select all

http://mysite.com/page.htm#formwrap
it is showing a different page in the URL, e.g.:

Code: Select all

http://mysite.com/otherpage.htm#formwrap
thus, linking to a different page (and not finding the #formwrap) and I don't quite understand this as it seems like the CMS has just chosen the page name randomly from the list of my pages. This occurs on several pages not just one.
From what I read this could be a bug due to pretty URLs but switching them off ain't an option because my boss insists on having SE friendly URLs. Are there other options (except of hard coding the URLs in the source code) or did I do something wrong?

Second problem: Somehow during the installation it hasn't saved the site name I inserted and it's displaying the default site name ("CMS Made Simple Site"). How can I change that afterwards? Haven't found anything.

Thanks a lot for your attention. :)

Re: Problem 1: internal links wrong, Problem 2: how to change {sitename}?

Posted: Fri Sep 15, 2006 6:25 pm
by tsw
which version?

in 1.0 check the anchor tag

and the sitename is in site admin -> global settings

Re: Problem 1: internal links wrong, Problem 2: how to change {sitename}?

Posted: Sat Sep 16, 2006 8:34 am
by 3dcandy
There was a bug in the templates in 0.13....sitename wasn't displayed correctly!
If you look in the templates, you can find the code

Re: Problem 1: internal links wrong, Problem 2: how to change {sitename}?

Posted: Sat Sep 16, 2006 4:35 pm
by 10010110
Sorry, I'm using the latest version (1.0.1 "Oahu").
@tsw: There are two different kinds of "anchors": The first is a regular named anchor () and the second kind is a regular ID in any element. Actually the latter one is the method I prefer as it is the current way of linking within a document (since the name attribute is deprecated). But it ain't workin' for any of the two versons...

And thanks for the sitename hint. Haven't seen it there. :)


I've also got a mod rewrite question but I'm gonna post this in another thread.

[edit]YAY, I've solved it!  :D I have to insert the page attribute into the selflink. Stange actually, 'cause I believe I've read that the page attribute and the dir attribute are mutually exclusive... ???[/edit]

Edit #2: Ah, now I see, tsw... you were talking about the actual smarty {anchor} tag!? Didn't notice that. Is that new since 1.0? Well, now I know. But I'm still a little puzzled about the first edit...