We have a site that pulls news entries into a page, displaying one at a time with pagination at the top. The page doesn’t refresh when the next and prev buttons are clicked, so does anyone have an idea how I can still manage to change the page title depending on the currently displayed article? Here is the pagination code I am using:
{paginate}
{if {total_pages} > 1}
{if previous_page}
<a href="http://{auto_path}">< previous | </a>
{/if}
{if next_page}
<a href="http://{auto_path}"> next ></a>
{/if}
{/if}
{/paginate}Here is the title code I was trying to use, just to see if it was even possible:
{exp:channel:entries channel="{channel}" limit="1"}
<title>{if segment_3}{title} | {section} | {site_name}{if:else} {section} | {site_name}{/if}</title>
{/exp:channel:entries}Thank you in advance for any suggestions!