PhotoStore Documentation


How to add, remove, or edit a top menu item.

Requirements: You will need some understanding in editing a file, some HTML knowledge, and the ability to transfer files to and from your website via FTP or web hosting control panel.

The top menu area of the PhotoStore is a template file that you can edit. The header.tpl file is located in the /assets/theme/XXXXXX/ directory of your store files. The XXXXXX is the template that you are currently using for your PhotoStore (for example if using the default template then the path would be /assets/themes/default/header.tpl). Download that file to your computer if you haven't already got a copy of it you can edit, make a backup of this file in case you mess it up. Now open the file in a text editor. Do not use microsoft word, use something like notepad, notepad ++, crimson editor, etc.. There are a lot of free ones that work very well.  After you have opened the header.tpl file for editing follow the processes below.

Add a New Menu Item:
To add a new menu item scroll down to around lines 50 to 74 and you will see all the code that makes up that menu (everything between the <ul> and </ul> tags).

<ul>
  {if $config.settings.news}<li id="navNews"><a href="{linkto page="news.php"}">{$lang.news}</a></li>{/if}
  {if $featuredTab}
   <li id="featuredNavButton">
    <a href="/wiki/content/90/278/en/how-to-add-remove-or-edit-a-top-menu-item.html">{$lang.featuredItems}</a>
    <ul class="dropshadowdark">
     {if $config.settings.featuredpage}<li id="featuredSubnavMedia"><a href="{linkto page="gallery.php?mode=featured-media&page=1"}">{$lang.mediaNav}</a></li>{/if}
     {if $config.settings.printpage}<li id="featuredSubnavPrints"><a href="{linkto page="featured.php?mode=prints"}">{$lang.prints}</a></li>{/if}
     {if $config.settings.prodpage}<li id="featuredSubnavProducts"><a href="{linkto page="featured.php?mode=products"}">{$lang.products}</a></li>{/if}
     {if $config.settings.packpage}<li id="featuredSubnavPackages"><a href="{linkto page="featured.php?mode=packages"}">{$lang.packages}</a></li>{/if}
     {if $config.settings.collpage}<li id="featuredSubnavCollections"><a href="{linkto page="featured.php?mode=collections"}">{$lang.collections}</a></li>{/if}
     {if $config.settings.subpage and $config.settings.subscriptions}<li id="featuredSubnavSubscriptions"><a href="{linkto page="featured.php?mode=subscriptions"}">{$lang.subscriptions}</a></li>{/if}
     {if $config.settings.creditpage}<li id="featuredSubnavCredits"><a href="{linkto page="featured.php?mode=credits"}">{$lang.credits}</a></li>{/if}
    </ul>
   </li>
  {/if}
  <li id="navGalleries"><a href="{linkto page="gallery.php?mode=gallery"}">{$lang.galleries}</a></li>
  {if $config.settings.newestpage}<li id="navNewestMedia"><a href="{linkto page="gallery.php?mode=newest-media&page=1"}">{$lang.newestMedia}</a></li>{/if}
  {if $config.settings.popularpage}<li id="navPopularMedia"><a href="{linkto page="gallery.php?mode=popular-media&page=1"}">{$lang.popularMedia}</a></li>{/if}
  {if addon('contr')}<li id="navContributors"><a href="{linkto page="contributors.php"}">{$lang.contributors}</a></li>{/if}
  {if $config.settings.promopage}<li id="navPromotions"><a href="{linkto page="promotions.php"}">{$lang.promotions}</a></li>{/if}
  {if $config.settings.aboutpage}<li id="navAboutUs"><a href="{linkto page="about.php"}">{$lang.aboutUs}</a></li>{/if}
  {if $config.settings.contact}<li id="navContactUs"><a href="{linkto page="contact.php"}">{$lang.contactUs}</a></li>{/if}
  {if $config.settings.forum_link}<li id="navForum"><a href="{linkto page="{$config.settings.forum_link}"}">{$lang.forum}</a></li>{/if}
</ul>

To add a new  menu go ahead copy one of the existing items (<li> - </li>). Like for example lets copy the about us (see gray area above):
<li id="navAboutUs"><a href="{linkto page="about.php"}">{$lang.aboutUs}</a></li>
In this example lets modify this to link to a blog:
<li id="navBlog"><a href="http://www.---my--blog--site--.com">Blog</a></li>
In the example above you can change navXXXXX to what ever you want, set the URL (a href) to what ever you wish to link to, and then put the actual text into the link. You could get technical and add it to the language file and then add the new langauge variable here, but we will not cover than in this how to. Now that we have changed it we need to add this line into the menu where we want it. In this example we will put it at the end which would make it show on the site as the last item on the right of menu. So the entire structure would look like:
<ul>
  {if $config.settings.news}<li id="navNews"><a href="{linkto page="news.php"}">{$lang.news}</a></li>{/if}
  {if $featuredTab}
   <li id="featuredNavButton">
    <a href="/wiki/content/90/278/en/how-to-add-remove-or-edit-a-top-menu-item.html">{$lang.featuredItems}</a>
    <ul class="dropshadowdark">
     {if $config.settings.featuredpage}<li id="featuredSubnavMedia"><a href="{linkto page="gallery.php?mode=featured-media&page=1"}">{$lang.mediaNav}</a></li>{/if}
     {if $config.settings.printpage}<li id="featuredSubnavPrints"><a href="{linkto page="featured.php?mode=prints"}">{$lang.prints}</a></li>{/if}
     {if $config.settings.prodpage}<li id="featuredSubnavProducts"><a href="{linkto page="featured.php?mode=products"}">{$lang.products}</a></li>{/if}
     {if $config.settings.packpage}<li id="featuredSubnavPackages"><a href="{linkto page="featured.php?mode=packages"}">{$lang.packages}</a></li>{/if}
     {if $config.settings.collpage}<li id="featuredSubnavCollections"><a href="{linkto page="featured.php?mode=collections"}">{$lang.collections}</a></li>{/if}
     {if $config.settings.subpage and $config.settings.subscriptions}<li id="featuredSubnavSubscriptions"><a href="{linkto page="featured.php?mode=subscriptions"}">{$lang.subscriptions}</a></li>{/if}
     {if $config.settings.creditpage}<li id="featuredSubnavCredits"><a href="{linkto page="featured.php?mode=credits"}">{$lang.credits}</a></li>{/if}
    </ul>
   </li>
  {/if}
  <li id="navGalleries"><a href="{linkto page="gallery.php?mode=gallery"}">{$lang.galleries}</a></li>
  {if $config.settings.newestpage}<li id="navNewestMedia"><a href="{linkto page="gallery.php?mode=newest-media&page=1"}">{$lang.newestMedia}</a></li>{/if}
  {if $config.settings.popularpage}<li id="navPopularMedia"><a href="{linkto page="gallery.php?mode=popular-media&page=1"}">{$lang.popularMedia}</a></li>{/if}
  {if addon('contr')}<li id="navContributors"><a href="{linkto page="contributors.php"}">{$lang.contributors}</a></li>{/if}
  {if $config.settings.promopage}<li id="navPromotions"><a href="{linkto page="promotions.php"}">{$lang.promotions}</a></li>{/if}
  {if $config.settings.aboutpage}<li id="navAboutUs"><a href="{linkto page="about.php"}">{$lang.aboutUs}</a></li>{/if}
  {if $config.settings.contact}<li id="navContactUs"><a href="{linkto page="contact.php"}">{$lang.contactUs}</a></li>{/if}
  {if $config.settings.forum_link}<li id="navForum"><a href="{linkto page="{$config.settings.forum_link}"}">{$lang.forum}</a></li>{/if}
<li id="navBlog"><a href="http://www.---my--blog--site--.com">Blog</a></li>

</ul>
 Now save the changes and upload this file back to your site replacing the existing one, and when you view the site there will be a link to the blog in the top menu to the far right.

Remove a Menu Item:
IMPORTANT! just about all of these items can be removed from within the manager settings -> look & feel -> pages area. Just uncheck the pages you wish to remove. 
To physically remove a menu item scroll down to around lines 50 to 74 and you will see all the code that makes up that menu (everything between the <ul> and </ul> tags).

<ul>
  {if $config.settings.news}<li id="navNews"><a href="{linkto page="news.php"}">{$lang.news}</a></li>{/if}
  {if $featuredTab}
   <li id="featuredNavButton">
    <a href="/wiki/content/90/278/en/how-to-add-remove-or-edit-a-top-menu-item.html">{$lang.featuredItems}</a>
    <ul class="dropshadowdark">
     {if $config.settings.featuredpage}<li id="featuredSubnavMedia"><a href="{linkto page="gallery.php?mode=featured-media&page=1"}">{$lang.mediaNav}</a></li>{/if}
     {if $config.settings.printpage}<li id="featuredSubnavPrints"><a href="{linkto page="featured.php?mode=prints"}">{$lang.prints}</a></li>{/if}
     {if $config.settings.prodpage}<li id="featuredSubnavProducts"><a href="{linkto page="featured.php?mode=products"}">{$lang.products}</a></li>{/if}
     {if $config.settings.packpage}<li id="featuredSubnavPackages"><a href="{linkto page="featured.php?mode=packages"}">{$lang.packages}</a></li>{/if}
     {if $config.settings.collpage}<li id="featuredSubnavCollections"><a href="{linkto page="featured.php?mode=collections"}">{$lang.collections}</a></li>{/if}
     {if $config.settings.subpage and $config.settings.subscriptions}<li id="featuredSubnavSubscriptions"><a href="{linkto page="featured.php?mode=subscriptions"}">{$lang.subscriptions}</a></li>{/if}
     {if $config.settings.creditpage}<li id="featuredSubnavCredits"><a href="{linkto page="featured.php?mode=credits"}">{$lang.credits}</a></li>{/if}
    </ul>
   </li>
  {/if}
  <li id="navGalleries"><a href="{linkto page="gallery.php?mode=gallery"}">{$lang.galleries}</a></li>
  {if $config.settings.newestpage}<li id="navNewestMedia"><a href="{linkto page="gallery.php?mode=newest-media&page=1"}">{$lang.newestMedia}</a></li>{/if}
  {if $config.settings.popularpage}<li id="navPopularMedia"><a href="{linkto page="galler