0 Members and 1 Guest are viewing this topic.

Display New Page In Footer?
« on: March 01, 2017, 05:00:24 PM »
I have creating a page with page management but cannot see how to display this in the footer with other menu items ie: Privacy, Terms of Use etc.
Could anyone help please?

*

Pharg

  • *****
  • 3,042
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Display New Page In Footer?
« Reply #1 on: March 01, 2017, 08:51:05 PM »
Hi ukdenny,

Find the footer.tpl in your template your using and edit it.

Add your new page name like the links in it.

Example as it shows in the footer.tpl
Code: [Select]
{if $config.enable_mod_rewrite == 'Y'}
<a href='privacy.html' class='footlink'>{lang mkey='site_links' skey='privacy'}</a> &nbsp;&nbsp;
<a href='terms_of_use.html' class='footlink'>{lang mkey='site_links' skey='terms_of_use'}</a> &nbsp;&nbsp;
<a href='services.html' class='footlink'>{lang mkey='site_links' skey='services'}</a> &nbsp;&nbsp;
<a href='faq.html' class='footlink'>{lang mkey='site_links' skey='faq'}</a> &nbsp;&nbsp;
<a href='articles.html' class='footlink'>{lang mkey='site_links' skey='articles'}</a> &nbsp;&nbsp;
{else}
<a href='index.php?page=privacy' class='footlink'>{lang mkey='site_links' skey='privacy'}</a> &nbsp;&nbsp;
<a href='index.php?page=terms_of_use' class='footlink'>{lang mkey='site_links' skey='terms_of_use'}</a> &nbsp;&nbsp;
<a href='index.php?page=services' class='footlink'>{lang mkey='site_links' skey='services'}</a> &nbsp;&nbsp;
<a href='index.php?page=faq' class='footlink'>{lang mkey='site_links' skey='faq'}</a> &nbsp;&nbsp;
<a href='index.php?page=articles' class='footlink'>{lang mkey='site_links' skey='articles'}</a> &nbsp;&nbsp;
{/if}

You would add a new page like this after the articles:
Code: [Select]
{if $config.enable_mod_rewrite == 'Y'}
                <a href='NEWPAGE.html' class='footlink'>{lang mkey='site_links' skey='NEWPAGE'}</a> &nbsp;&nbsp;
{else}
              <a href='index.php?page=NEWPAGE' class='footlink'>{lang mkey='site_links' skey='NEWPAGE'}</a> &nbsp;&nbsp;
{/if}

If you haven't added the New Page Name to the lang file, then just replace this to get a link name.
Code: [Select]
{lang mkey='site_links' skey='NEWPAGE'}

Change to:
Code: [Select]
NewPage

Example: It might be called Links so it would look like this:

Code: [Select]
{if $config.enable_mod_rewrite == 'Y'}
                <a href='links.html' class='footlink'>Links</a> &nbsp;&nbsp;
{else}
              <a href='index.php?page=links' class='footlink'>Links</a> &nbsp;&nbsp;
{/if}

There is two because one is for the SEO turned on the other is when the SEO is off in the admin.

If you turn on the SEO you will also have to add the Page Name example: Links to the .htaccess to make the page work or it won't load.

You will also have to rename .htaccess.txt to .htaccess to have the SEO on after turning it on in the admin area.

It would go like this for Links:
Code: [Select]
RewriteRule ^links.html$ index.php?page=links
I hope this helps and makes sense ;)
« Last Edit: March 01, 2017, 09:03:28 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

Re: Display New Page In Footer?
« Reply #2 on: March 03, 2017, 03:10:59 PM »
Many thanks Phill