close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Menu links to wrong place

Thread began 1/26/2010 1:00 pm by Infotraveler | Last modified 1/26/2010 5:06 pm by neilo | 724 views | 4 replies |

Infotraveler

Menu links to wrong place

I think something has gotten screwed up. I used the CSS MenuWriter to attempt to add a menu item. Then the site started giving errors about not finding files. I then found out through the forum that CSS MenuWriter is NOT compatible with PowerStore 2 because some manual programming has been added in to the menu files. So I replaced all the CSSMenuWriter directory/ files with the original powerstore files and the web site began to work again. But now I can't seem to solve the menus pointing to the correct subdirectory. Is there more damage control necessary ?

The issue is with the Powerstore 2 menus pointing to the wrong directory. I have entered all the information into the Globals file and it used to work correctly. I changed the name of the subdirectory and also changed the information in the Globals file (as shown). Now the menus point to the top of the html root ( and not to the /pvartstudio/ subdirectory. Notice that the photo links go to the correct directory.

The URL for the developing store is [removed because issue has been solved and wish to remove from active search engines indexing]
Here is a copy of the first part of the Globals file:
-------------------------------------------------------
<?php
$WAGLOBAL_Root_URL ="[removed to keep out of search engine indexes"
$WAGLOBAL_Site_Name = "Store";
$WAGLOBAL_Address = "800 S. ";
$WAGLOBAL_City = "Red";
$WAGLOBAL_State = "CA";
$WAGLOBAL_Zip = "90";
$WAGLOBAL_Country = "US";
$WAGLOBAL_GoogleAPIKey = "REDACTED";
$WAGLOBAL_localRoot = "/";
$WAGLOBAL_remoteRoot = "/pv/";

---------------------------------------------------------

Thanks,

Steve

Sign in to reply to this post

neilo

Hi,

Try adding pvartstudio to your localRoot:

$WAGLOBAL_localRoot = "/pvartstudio/";
$WAGLOBAL_remoteRoot = "/pvartstudio/";

That seemed to make the difference when I had the store set up in a sub-folder, - though I'm not sure I understand why, I thought the remoteRoot took care of that.

Edit: This from the menu.php file:

php:
$WA_localRoot = "" .$WAGLOBAL_localRoot ."";
$WA_remoteRoot = "" .$WAGLOBAL_remoteRoot. "";
$WA_curURL = strtolower((isset($_SERVER["PHP_SELF"]))?$_SERVER["PHP_SELF"]:"");
$assumedRoot = $WA_remoteRoot;
if (strpos($WA_curURL,strtolower($WA_localRoot)) === 0 && (strlen($WA_localRoot) >= strlen($WA_remoteRoot) || strpos($WA_curURL,strtolower($WA_localRoot)) === 0)) {
  $assumedRoot = $WA_localRoot;
}



So adding 'pvartstudio' to the WAGLOBAL_localRoot should help (?)

Sign in to reply to this post

Infotraveler

Thank you, it worked !

Nelio,

Thank you for the suggestion. It Worked ! One wouldn't expect to also have to set the localRoot but I guess so. I wonder why ? Maybe the WebAssit programmers can check this a let us know why.

Thanks again.

Steve

Sign in to reply to this post

Dani Chankhour

The way the local and the remote url work is, if the local root url exists then it uses that, and if it does not exists then it uses the remote url. in your case the local url was set to "/" which did exists because it is the root. For example, you can trying putting an invalid path for the local root "/invalid" and then the remote url would be used.

Sign in to reply to this post

neilo

Hi Dani,

Thanks for the info.

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...