Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi

We have recently developed a website in couch. However the page is loading up from the middle of the screen.

http://www.craft.net.in/office/potence/ ... kformname0

The strange part is on some computers this displays perfectly while on other it loads up from the centre of the screen.

Any reason this may be happening.

Alok
Hi Alok,

If you examine the URL you posted, you'll notice that it has a 'fragment identifier' #kformname0 appended - that is making the page to scroll to a form anchor by that name in the page (and hence the issue). Try removing the fragment and accessing the URL and the page will load normally.

I see that several links on the page have similar fragment identifiers hardcoded into them. I suggest you clean up those links.

Hope this helps.
To display the products we are using the following code

<cms:if k_success >
<cms:redirect "product-display.php?name=<cms:show k_page_name />" />
</cms:if>

Using this code the "#kformname0" is automatically getting generated. Is there any way around this.
I don't think that part of the code will output anything other than what you specified.

The only place where Couch automatically tries to add an anchor is with your <cms:form> tag (so that on submission, the visitor gets back to the form, in case it is situated below the fold).

To turn this off, please add anchor='0' to all your forms on the page e.g.
Code: Select all
<cms:form anchor='0'
...

Hope this helps.
4 posts Page 1 of 1