Let's do this by example. Let's suppose we have a simple EE channel called "blog" with just five fields in:
- Headline
{headline}
- Body Text
{body}
- Blog Image
{blog_image}
- Footer Text
{footer_text}
- Footer Image
{footer_image}
If we define a two entries:
- Entry_1 -
{url_title}
entry_1, {headline}
"Entry 1", {body}
"Blah blah", {blog_image}
cats.jpg, {footer_text}
"Do more with cats", {footer_image}
cat_toy.jpg
- Entry_2 -
{url_title}
entry_2, {headline}
"Entry 2", {body}
"Rhubarb", {blog_image}
angry_cat.jpg, {footer_text}
"Avoid angry cats", {footer_image}
cat_spray.jpg
Then a simple template like this will display each entry and the footer will be different in each case (assume URL is of form /{url_title}
):
{exp:channel:entries channel="blog" url_title="{segment_1}" dynamic="no"}
<h4>{headline}</h4>
<p>{body}</p>
<img src="{blog_image}">
<hr>
<h2>Footer</h2>
<p>{footer_text}</p>
<img src="{footer_image}">
{/exp:channel:entries}
Feed this template with the URL /entry_1
and you'll get something like this...
Entry 1
Blah Blah
[cat picture]
Footer
Do more with Cats
[cat toy picture]
Feed this template with the URL /entry_2
and you'll get something like this...
Entry 2
Rhubarb
[angry cat picture]
Footer
Avoid angry cats
[cat spray picture]
This appears to be all that you are trying to achieve - in your example links the page templates appear to be identical in material terms - so you could have used the same template for both there.
If you want to get bonus marks, you could put the template code for the footer into a template partial entry - let's suppose we move the footer code to a template partial called 'footer' thusly
Template Partial Name - footer
Template Partial Code -
<hr>
<h2>Footer</h2>
<p>{footer_text}</p>
<img src="{footer_image}">
We could then modify the template generating our page to be a bit simpler - like this:
{exp:channel:entries channel="blog" url_title="{segment_1}" dynamic="no"}
<h4>{headline}</h4>
<p>{body}</p>
<img src="{blog_image}">
{footer}
{/exp:channel:entries}
This would give identical output, but you've moved the footer code elsewhere (and so could include it on other templates simply by adding {footer}
to them).
Separately it is straightforward to access more than one entry in a single template, but explaining that is certainly outside scope of this question...
HTH