Page 1 of 1

Simple question about same email address appearing

Posted: Tue Apr 23, 2013 2:50 pm
by foley13
Hi,
I'm finishing off a site that someone else built and I need to some help. This will probably be simple to fix but I cant figure this out and I'm new to cms made simple.

if you view this site http://visualiser2.flyingatom.co.uk/joh ... 2//europe/ you will see that every email address is the same but in the admin area the emails are different so the email your seeing must be hardcoded somewhere but I can't find where.

Can anyone guide me in the right direction on how to fix this and where this email address could be hardcoded?

Thankyou.

Re: Simple question about same email address appearing

Posted: Tue Apr 23, 2013 7:30 pm
by velden
What module is used for this 'list'?

Guess it has a 'summary' template attached that iterates over all the items and takes care of the layout. That would be the first place to look for a hard-coded address.

Re: Simple question about same email address appearing

Posted: Wed Apr 24, 2013 7:59 am
by foley13
I have no idea what module is used for this. The emails are in their own page that just has this

Code: Select all

<h1>{title}</h1>
{CompanyDirectory category='Middle East'}
each page is using a template called generic which is made up of this:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{metadata}

<title>{title} :: {sitename}</title>
<link href="css/screen.css" type="text/css" rel="stylesheet" />
<__script__ type="text/javascript" src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></__script>

<__script__ type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></__script>
<__script__ type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></__script>
{literal}
<__script__ type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
    jQuery('.slideshow').cycle({
  fx: 'fade',
  speed: 1000,
  timeout: 5000
 });
});
</__script>
{/literal}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
</head>

</__body>

<div id="wrapper">

<div id="container">

<div id="navCol">

<div id="logo">{cms_selflink dir="start" text="$sitename logo" class="logo"}</div><!-- end logo -->

<div id="nav">
{menu template='navigation.tpl' number_of_levels='2'}
</div><!-- end nav -->

<div id="shopOnlineLink">
<a href="#">Shop Online</a>
</div><!-- end shopOnlineLink -->

<div id="contactDetailsBox">

{global_content name='contactDetailsBox'}

</div><!-- end contactDetailsBox -->

<div id="socialMedia">

<div class="facebook"><a href="http://www.facebook.com/john.foster.758399" target="_blank"></a>
</div>

<div class="twitter"><a href="http://www.twitter.com/@KingOfWool" target="_blank"></a>
</div>

<div class="clear"></div>

</div><!--end socialMedia-->

</div><!-- end navCol -->

<div id="innerPage">

<div id="mainCol">

<div id="innerBanner">
<h1>{title}</h1>
<div class="slideshow">
{content_image block='Top Banner' dir='../images/banners'}
{content_image block='Top Banner 2' dir='../images/banners'}
{content_image block='Top Banner 3' dir='../images/banners'}
</div>
</div><!-- end innerBanner -->

<div id="colLeft">

{content} 

</div><!-- end colLeft -->

<div id="colRight">

</div><!-- end colRight -->

<div class="clear"></div>

</div><!-- end mainCol -->

</div><!-- end innerPage -->

<div class="clear"></div>

</div><!-- end container -->

<div id="footer">

<div id="footerInner">

<div id="footerLeft">
{global_content name='footerLeft'}
</div><!-- end footerLeft -->

<div id="footerRight">
{global_content name='footerRight'}
</div><!-- end footerRight -->

<div class="clear"></div>

</div><!-- end footerInner -->

</div><!-- end footer -->

</div><!-- end wrapper -->

{literal}
<__script__ type="text/javascript">
$(function() {

// enable circular scrollables with a click handler
$(".scroll").scrollable({ circular: true, speed: 1000, }).autoscroll(7000).click(function() {
	$(this).data("scrollable").next();		
});
});
</__script>
{/literal}

<__body>
</__html>
I can see in that code there is a block called {global_content name='contactDetailsBox'} but I cannot find this in the admin section.

Thankyou for any help

Re: Simple question about same email address appearing

Posted: Wed Apr 24, 2013 2:51 pm
by velden
CompanyDirectory is a module as far as I know. I suppose it must live somewhere in the admin area and has it's own templates.

Global content blocks live in Content -> Global Content Blocks. But those are normally used for 'blocks' that live on every page/template. Like a footer.

Re: Simple question about same email address appearing

Posted: Wed Apr 24, 2013 8:58 pm
by paulbaker
Go in to Content -> Company Directory and inspect all the templates (summary ones in particular). You should see the template that is used to create the page and in there will probably be a hard-coded email. And hopefully a commented out email field which you can un-comment.

Re: Simple question about same email address appearing

Posted: Fri Apr 26, 2013 11:38 am
by foley13
Hi paulbaker
Thankyou,I have managed to find the template and yes the email address was hardcoded in. I have now added the {$entry->contact_email} and everything is working as it should. Thankyou for your help.