Page 1 of 1
anchor tags
Posted: Sun Feb 26, 2006 7:16 pm
by climberusa
Hi, I'm bukding my first cmsms site and love it. I have run into a problem though. In my content I have anchors in my heading tags so some of my links can direct the user to the specific content. What's happening though is bizarre. When I click on a link it takes me to that section but hides all of the content above it and hides my menu. You ca see it here:
http://www.asjalaska.com/greenacres/ind ... ape_Design click on one of the links on the left under "Landscape Design". Is ther something I'm missing?? I appreciate your help!
Jeff
Re: anchor tags
Posted: Sun Feb 26, 2006 8:17 pm
by jelle
It could be I am naive (don't bother i like it that way), but I cannot see anything funny with that page, nor can I find any nchors in anyeader tags. The section links on the left side lead to the correct section and scroll the content down so that the section start is at the top of the window. Why is that behaviour incorrect do you think?
Re: anchor tags
Posted: Sun Feb 26, 2006 9:06 pm
by jeff
Well, I just changed them from to and so forth with the same results. After you clicked 'why should 1?' did you scroll back up and still have the navigation on teh left? I 've tested this in both firefox and ie with the same results.
Re: anchor tags
Posted: Sun Feb 26, 2006 10:35 pm
by jelle
Yes, see. In FF, the whole content rolls up it seems. I think some of that javascript is responsible, as the html looks very clean. try to find out if you really need the javascript and flash to present a site for a landscaper. I think not, as it is mainly information you want to give, not an artistic site.
As for what actually happens: I don't know, sorry. In konqueror it looks ok though.
Re: anchor tags
Posted: Mon Feb 27, 2006 12:08 am
by Jeff
Hmm, you're probably right. I'm betting it's the moofx library. As far as the site goes, I'm just puting it together. The designer and customer settled on flash. The javascript can go away though.
Re: anchor tags
Posted: Mon Feb 27, 2006 12:13 am
by Jeff
No, that didn't solve anything. I removed ALL javascript from the page and cleared the cache with no change in behavior. It's acting like the content block is in a frame or has overflow declared in css or something. This is truely bizarrre. Anyone?
Re: anchor tags
Posted: Mon Feb 27, 2006 12:16 am
by Jeff
Ok, I figured it out. I was using some crazy css to make equal length columns. I removed it and it's fixed. Thanks for taking the time to respond.
Re: anchor tags
Posted: Mon Feb 27, 2006 5:42 pm
by jelle
Apart from the fact it didn't work, css to get equal length columns sounds interesting. any hints/pointers on that?
Re: anchor tags
Posted: Mon Jun 12, 2006 10:37 pm
by kwbrayton
jelle wrote:
Apart from the fact it didn't work, css to get equal length columns sounds interesting. any hints/pointers on that?
I'm brand new to CMSMadeSimple and so far, ;DI LOVE IT

. However, I'm having the same struggle with anchor tags as was described in this thread. I have done very little tweaking of any of the CSS or Templates that came with the system. I'm at a loss to even know where to begin looking in the CSS files for the problem (if that's where the problem is). It looks to me like the page alias is not being strung together for an anchor link. Is this CSS or a Template issue?
Any help pointing me in the correct direction would be appreciated!
Here is a sample page:
http://www.checkcollectionsguide.com/cm ... s/articles
Ken Brayton
www.checkcollectionsguide.com/cms/
Re: anchor tags
Posted: Mon Jun 12, 2006 10:44 pm
by climberusa
I had this problem several times. It seems that with the clean urls or mod-rewrite (or both) the anchor tags need to be put in with the {cms_selflink} tag
for example:
{cms_selflink dir="anchor" anchorlink="maincontent" text="skip to content" id="skiplink" title="Skip to the main content"}
"maincontent" is the id given to the part of the page you are linking to.
then add it like this:
Now, there may be other/better ways of getting this, but this is what I've done. Hope it helps.
Re: anchor tags
Posted: Mon Jun 12, 2006 11:06 pm
by kwbrayton
Gotcha, and thanks! Seems a bit of a pain though. I've been doing a lot of cut and paste from my original source into the Source section of the Editor. This will take a lot of hand tweaking to modify! But heck, that's only my biggest complaint so far! Otherwise, I'm loving this!