Dynamic SharePoint Navigation Link - sharepoint-2007

Inside of SharePoint under site settings >> look and feel >> Navigation you have the ability to throw down some link entries for navigation. My question is is there any simple way short of writing a feature, to somehow make the links dynamic so that they will append the query string of the current page that is being viewed?
Edit:
When you navigate to a web page the URL can have arguments, this is known as the query string. SharePoint is no different you can have URL's that you point your browser to along with a query string. The pages in SharePoint typically have a quick launch left nav area where it renders out a static list of pre-defined URL's. What I want to do is have these static links be dynamic in that they copy the query string and append it to the static url that I defined from the page that is currently being viewed which may or may not have a query string.

I think you're asking for something that it's impossible. The only way you could do something of that is creating a new provider and configure it on the menu. This new provider could check some kinds of items in the Navigation option and returns the url you want it.

Related

Can I use a URL link to pre-select the value of a drop down menu?

This is the webpage: http://dnr.alaska.gov/ssd/recoff/sag/BookandPageSearchMenu.cfm
I would like to be able to pre-select the District drop down menu using the URL that goes to that page.
Something like:
http://dnr.alaska.gov/ssd/recoff/sag/BookandPageSearchMenu.cfm?District=Palmer-311
But that doesn't work.
Is this possible using the URL?
If the web page is set up with a script to parse the URL and set the select box accordingly, yes. It is not possible on a random page lacking such built-in capability (which is likely the vast majority of pages).

Add to Favorites link (is it possible these days?)

I'm in a corporate environment. We have an internal web site with lots of pages that shows data for various employees based on a selected date from a drop-down list. When they favorite a page, the selected date is in the URL so that gets favorite'd as well. I need to make it so when they add a page to their favorites, the date portion of the url is removed so they always come back to the latest date available. I know the AddFavorite functionality doesn't work anymore. It's looking like I am going to have to make a link that redirects them to the current page without the date part of the url so they can favorite that. But that just seems clunky.
tl;dr I need to make a Favorite This Page link that removes the date part of the url. Is it possible without the use of the javascript AddFavorite function?

Joomla - Wrong url path from google results

I have a strange problem in one Joomla website.
If i access from homepage and then navigate into the site it works correct, but if i go in some internal page from google results it shows uncorrect page layout, because the url is not correct.
This is the correct url
Correct page from homepage
and this the uncorrect url that Google finds Uncorrect page from Google
in this second page is showed rating module (that i never used) instead of an article, as you can see in links.
Someone can help me?
EDIT: I'm using Joomla 2.5 version. Every menu item is category blog type, and must show all articles of one category. Each category have 2 articles. In the uncorrect link seems that it access to single article, adding the rating that i have hidden in each article
Which version are you using?
if you can turn on SEF option in the global settings in joomla admin. Then you need to make sure all your articles are in menus. then if you link them on different pages it should keep the url the same.
The way you have it at the moment with all the x=123&... get params pages will show for what ever ids you change the menu to.
The reason you are seeing an uncorrect layout is the two different Itemid parameters (the right url has 127 while the wrong one has 104). The rest of the difference in the urls will be ignored by Joomla.
Solution: Find your menu item with id 104 (look at the menu ids on the right of the menu items view), then check which modules appear on the page from there. There may be modules in non-visible positions.
One of these modules is publishing the links with the wrong ids. If it's a Joomla core (like a search module) you can usually force the Itemid either in the module or in the component's configuration. Else you need to fixsome third party code.
Only once you have solved the multiple-itemid should you turn on SEF, otherwise you'd get the same problem only more difficult to trace.
sh404 could help you with this, I'd give it a try on a test site to see if it gets you out of trouble faster.

Hide website filenames in URL

I would like to hide the webpage name in the url and only display either the domain name or parts of it.
For example:
I have a website called "MyWebSite". The url is: localhost:8080/mywebsite/welcome.xhtml. I would like to display only the "localhost:8080/mywebsite/".
However if the page is at, for example, localhost:8080/mywebsite/restricted/restricted.xhtml then I would like to display localhost:8080/mywebsite/restricted/.
I believe this can be done in the web.xml file.
I believe that you want URL rewriting. Check out this link: http://en.wikipedia.org/wiki/Rewrite_engine - there are many approaches to URL rewriting, you need to decide what is appropriate for you. Some of the approaches do make use of the web.config file.
You can do this in several ways. The one I see most is to have a "front door" called a rewrite engine that parses the URL dynamically to internally redirect the request, without exposing details about how that might happen as you would see if you used simple query strings, etc. This allows the URL you specify to be digested into a request for a master page with specific content, instead of just looking up a physical page at that location to serve.
The StackExchange sites do this so that you can link to a question in a semi-permanent fashion (and thus can use search engines with crawlers that log these URLs) without them having to have a real page in the file system for every question that's ever been asked (we're up to 9,387,788 questions as of this one).

DotNetNuke URL's After Menu Change

I am not particularly familiar with DotNetNuke, so please correct me if I am using any wrong terminology.
I have a client who has a bunch of links that are hardcoded in an HTML module. The URL's looks like the following:
http://www.siteurl.org/level1/level2/level3/level4/pageName.aspx
So the URL for the page is basically made from how the menu is constructed. When I change any order in the menu, this breaks the hardcoded links. Is there a way to use something like an ID instead for the URL so no matter what my menu looks like, the page will be resolved properly?
You could use an ID for the pages, linking to
http://www.siteurl.org/default.aspx?tabid=## where ## is the ID for each page.
Now the key will be to find the proper IDs which you could do by looking at the HTML source of the Admin/Pages page.
That being said, the proper thing to do, would be to not MOVE or RENAME pages, this breaks all the old URLS (as you're experiencing) as well as those pages/urls in any search indexes.
A better way, though more work, would be to create a new page at the new PATH (where you move things to) and then redirect the old page to the new page (in the page settings). This requires quite a bit of work, but is the best way currently to handle old URLs, I have a video example of this at http://www.dotnetnuke.com/Resources/Video-Library/Viewer/VideoId/213/Renaming-A-Page-In-DotNetNuke-.aspx

Resources