Page 1 of 1

CompanyDirectory Anchor '^ Top' not working

Posted: Wed May 28, 2008 9:38 am
by bfctradingpost
Hi all it's me again!

Setup:

CMS Made Simple 1.2.5 "Free Hill"
CompanyDirectory 1.1.3
Dependancies - CGExtensions 1.8
Operating System: Linux
PHP 4.x
MySQL 4.1

Problem:

Can't get '^ Top' anchor to function properly in a CompanyDirectory detail page.

Description:

I've been through the motions to set up the:

Code: Select all

{* Start relational links *}
	 <div class="hr"></div>
	 <div class="right49">
	 <p>{anchor anchor='maincontent' text='^ Top'}</p>
	 </div>
         <div class="left49">
         <p>{cms_selflink dir="previous" label="Previous page: "} <br />
         {cms_selflink dir="next"}</p>
         </div>
	 {* End relational links *}
on all of my layout templates.

They work on all of my pages except whilst viewing a CompanyDirectory detail page, where it takes me to the default page.

Any suggestions?

Cheers,

Patrick

Re: CompanyDirectory Anchor '^ Top' not working

Posted: Thu May 29, 2008 3:37 am
by Dr.CSS
You have a div called maincontent in that page...

If it takes you to the home page most times it's from not having a div with the correct id on the page...

Re: CompanyDirectory Anchor '^ Top' not working

Posted: Thu May 29, 2008 7:36 pm
by Dr.CSS
Your right, I tested it and when you view the detail of the company it adds all that to the Top link, not on the summary, has something to do with the link in the address bar for details getting added to the anchor link...

Sorry I don't know how to fix this...