Simple question about same email address appearing

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
foley13
Forum Members
Forum Members
Posts: 10
Joined: Mon Apr 08, 2013 9:51 am

Simple question about same email address appearing

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Simple question about same email address appearing

Post 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.
foley13
Forum Members
Forum Members
Posts: 10
Joined: Mon Apr 08, 2013 9:51 am

Re: Simple question about same email address appearing

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Simple question about same email address appearing

Post 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.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Simple question about same email address appearing

Post 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.
foley13
Forum Members
Forum Members
Posts: 10
Joined: Mon Apr 08, 2013 9:51 am

Re: Simple question about same email address appearing

Post 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.
Post Reply

Return to “The Lounge”