close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Removing side navigation menu & replacing with other content

Thread began 4/17/2012 5:31 am by KJT | Last modified 4/18/2012 1:52 am by KJT | 1918 views | 6 replies |

KJT

Removing side navigation menu & replacing with other content

I would like to remove the side navigation menu and replace it with other content such as customer support information, delivery info etc.

I do not have a php coding experience and it seems very complex to use my usual tactic of have a go and see if that works.

Can you advise me how to do this? Or do I need to purchase a support ticket to be helped with this?

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/themes folder, open the folder for the theme you are using


in your theme folder, open the Templates/page.dwt.php

in the default template, the code for the left menu is:

php:
<div id="leftColumn1" class="ps_sidenav sidebar accordion">

            <?php echo($WASideMenu->Body); ?>
    </div>



you can replace the left menu with what ever you like by editing that:

php:
<div id="leftColumn1" class="ps_sidenav sidebar accordion">

            custom content in the left column
    </div>
Sign in to reply to this post

KJT

I appreciate the quick reply.

I tried to find what you advised but I cannot find the 'Templates/page.dwt.php' in my root folder and I also did a source code search for the code and I cannot find that in the entire site www.portlandtrading.net.

I have main.dwt.php, admin.dwt.php and install.dwt.php files.

Sign in to reply to this post

Jason ByrnesWebAssist

look in:
webassist/themes/<your theme>/Templates/page.dwt.php


if you did the install on the remote server, you will need to download the template file from the remote server.

Sign in to reply to this post

KJT

I looked on the local and remote server and I do not have this folder and file - does this apply to Powerstore 3, because I have not upgraded to Powerstore 4?

Sign in to reply to this post

Jason ByrnesWebAssist

you did not mention you where using version 3, so assumed version 4.


in version 3, the left column is generated in the Templates/main.dwt.php file bu this code:

php:
<div id="leftColumn1">

    <?php
if (!function_exists("getCatAccordian")) {
function 
getCatAccordian($StartWith=0,$prevLevels=0)  {
  
$retHTML "";
  
$retScript "";
  
mysql_select_db($GLOBALS['database_PowerStoreConnection'], $GLOBALS['PowerStoreConnection']);
  
$query_SubCategoryList "SELECT * FROM ps3_categories WHERE CategoryParent = ".$StartWith " ORDER BY CategoryName";
  
$SubCategoryList mysql_query($query_SubCategoryList$GLOBALS['PowerStoreConnection']) or die(mysql_error());
  
$totalRows_SubCategoryList mysql_num_rows($SubCategoryList);
  
$row_SubCategoryList mysql_fetch_assoc($SubCategoryList);
  
$spaceStr '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
  if (
$row_SubCategoryList)  {
  
$retHTML .= '<div id="Accordion'.$row_SubCategoryList["CategoryID"].'" class="Accordion" tabindex="0">' "\n";
  
$retScript .= 'var Accordion'.$row_SubCategoryList["CategoryID"].' = new Spry.Widget.Accordion("Accordion'.$row_SubCategoryList["CategoryID"].'", { useFixedPanelHeights: false, defaultPanel: -1 });' "\n";
  
  while (
$row_SubCategoryList)  {
      
$suboptions getCatAccordian($row_SubCategoryList["CategoryID"],($prevLevels));
      
$retScript .= $suboptions[1];
      
$retHTML .= '  <div class="AccordionPanel" >' "\n";
      
$retHTML .= '   <div class="AccordionPanelTab" onclick="doHighlighlight(this);updateContant(\'Products_Results.php?Search=1&ProductCategoryID[]='.$row_SubCategoryList["CategoryID"].'\')">'.(($prevLevels>0)?substr($spaceStr,0,12*$prevLevels):'') .$row_SubCategoryList["CategoryName"].'</div>' "\n";
      if (
$suboptions[0]!="")  {
      
$retHTML .= '    <div class="AccordionPanelContent" >' "\n";
      
$retHTML .=        $suboptions[0];
      
$retHTML .= '    </div>' "\n";
      }
      
$retHTML .= '  </div>' "\n";
      
$row_SubCategoryList mysql_fetch_assoc($SubCategoryList);
  }
  
  
$retHTML .= '</div>' "\n";
  }
  return array(
$retHTML,$retScript,$totalRows_SubCategoryList);
}
}
?> 
<?php
     $Accordian 
getCatAccordian();
      
     echo(
$Accordian[0]);    
     
     

?>
    </div>






change that to this:

php:
<div id="leftColumn1">

    custom content in the left column 
    </div>
Sign in to reply to this post

KJT

Great! Thanks for the help.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...