Add new links
Ok I have a website template. We are trying to change the
buttons to point to new html pages like aboutus.html. Right now all
the buttons point to index.html and then index-1.html and
index-2.html and so on. I am unsure how to change this code to do
that. Please help. Thanks.
Don't buy templates.
Ideally, for something like this there should have been an
Array or an XML file allowing users such as yourself to edit the
list of pages to be linked to. This is pretty messy hence why you
should buy templates and call yourself a designer.
You can do 2 things:
1. make your pages index-#
2. get rid of the getURL call completely and add a getURL on
the frames labeled 's1', 's2' etc to go to the pages you want to
load.
yes, it's a hack but the price you pay for working with
templates that aren't very well thought out..
Similar Messages
-
Add new link on Quick Launch using visual studio
Hi,
How can I add new link on quick launch using visual studio?
I saw many link about developing quick launch or top link bar.
But they are using visual webpart to develop this function and can add
when the user add this webpart. How can I add automatically when I deploy the project.
Thanks in advance!
Best Regards, wendyusing System;
using System.Web.UI;
using System.Linq;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Navigation;
namespace SPQuickLaunchAddItemWebPart.VisualWebPart1
public partial class VisualWebPart1UserControl : UserControl
protected void Page_Load(object sender, EventArgs e)
CleanUpQuickLaunch(“My Header”);
AddQuickLaunchItem(“My Header”, “http://www.google.com/q=stuff”, “My Link Here”, “http://www.google.com”);
CleanUpTopNavigationBar(“My Header”);
AddTopNavigationBarItem(“My Header”, “http://www.google.com/q=stuff”, “My Link Here”, “http://www.google.com”);
AddTopNavigationBarItem(“My Header”, “http://www.google.com/q=stuff”, “My Link Here1″, “http://www.google.com”);
public static void CleanUpQuickLaunch(string header)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection quickLaunch = web.Navigation.QuickLaunch;
// try to get quick launch header
SPNavigationNode nodeHeader = quickLaunch.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found remove it
if (nodeHeader != null)
quickLaunch.Delete(nodeHeader);
public static void CleanUpTopNavigationBar(string header)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection topNavigation = web.Navigation.TopNavigationBar;
// try to get quick launch header
SPNavigationNode nodeHeader = topNavigation.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found remove it
if (nodeHeader != null)
topNavigation.Delete(nodeHeader);
public static void AddQuickLaunchItem(string header, string headerURL, string item, string url)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection quickLaunch = web.Navigation.QuickLaunch;
// try to get quick launch header
SPNavigationNode nodeHeader = quickLaunch.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found create it
if (nodeHeader == null)
nodeHeader = quickLaunch.AddAsFirst(new SPNavigationNode(header, headerURL, true));
nodeHeader.Update();
//try to get node item under header
SPNavigationNode nodeItem = nodeHeader.Children.Cast<SPNavigationNode>().Where(n => n.Title == item).FirstOrDefault();
//If item not found under heading then create it
if (nodeItem == null)
nodeItem = nodeHeader.Children.AddAsLast(new SPNavigationNode(item, url, true));
else
nodeItem.Url = url;
nodeItem.Update();
nodeHeader.Update();
public static void AddTopNavigationBarItem(string header, string headerURL, string item, string url)
using (SPSite site = SPContext.Current.Site)
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPNavigationNodeCollection topNavBar = web.Navigation.TopNavigationBar;
// try to get quick launch header
SPNavigationNode nodeHeader = topNavBar.Cast<SPNavigationNode>().Where(n => n.Title == header).FirstOrDefault();
//if header not found create it
if (nodeHeader == null)
nodeHeader = topNavBar.AddAsFirst(new SPNavigationNode(header, headerURL, true));
nodeHeader.Update();
//try to get node item under header
SPNavigationNode nodeItem = nodeHeader.Children.Cast<SPNavigationNode>().Where(n => n.Title == item).FirstOrDefault();
//If item not found under heading then create it
if (nodeItem == null)
nodeItem = nodeHeader.Children.AddAsLast(new SPNavigationNode(item, url, true));
else
nodeItem.Url = url;
nodeItem.Update();
nodeHeader.Update();
above code demonstrate how to add node inside the quick launch and top navigation.
you can also follow the below link.
http://myspexp.com/2012/04/30/adding-items-to-your-quick-launch-or-top-navigation-programmatically/
Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
Firefox won't let me use any of the links-I can't add new links by clicking on the + box. I can't delete or add links. I can't even open one of the links at the top of this page
I'm not sure what you mean by "the + box". Is that a feature on one of your toolbars?
-
Ability to add new links on Business Catalyst online editing
It would be really great if the office staff had the possibility to add new links via the "Edit" option in Business Catalyst. PLEASE add this function in the near future. It would greatly improve our productivity.
You can edit/modify site contents and then upload to BC, while uploading to BC you can either use the existing site if you already have published the site or you can go with a new trial site.
If you are referring to replacement of any site in BC with new contents then the same process for site update will work. I am missing out something or you are looking for something else , then please correct me.
Thanks,
Sanjit -
How to add new links to a page
Hello Community
In Sharepoint 2013 Server can you create:
A Link in the left navigtion bar or Quick Launch
when clicked it can open a new page and on that page there is an “Add New” type of
button.
Then on that page you can add as many links as the page will allow, each
of those links can contain a url
Thank you
ShabeautHi,
To add a new link on the left nav:
You can go to site settings> navigation> add a link under "current navigation".
For the second requirement:
You can create a "links" list and add it to that second page. This way you can have that "Add Links" option and add links.
Thanks,
norasampang -
Add new link to Portal Favorites in a JspDynpage using API?
Hi everyone!
I need to add a new link (like the current page in the portal) with java... but without using the menu tray bar.
Is there any java API which I can use Add a portal favorite?
Any Idea ??
Thanks you very much in advanceHi Nitesh,
Portal Favorites are read from the following KM folder:
/userhome/<userid>/Favorites/
So using KM APIs, try to add a link in to that folder and you can see it.
-Aarthi -
Add new link to Portal Favorites in a JspDynpage ?
Hi everyone!
I need to add a new link (like the current page in the portal) with java... but without using the menu tray bar.
Something like use a java API that use User Account information....
Any Idea ??
Thanks you very much in advance
LeslieHi Nitesh,
Portal Favorites are read from the following KM folder:
/userhome/<userid>/Favorites/
So using KM APIs, try to add a link in to that folder and you can see it.
-Aarthi -
How i will add new link in masthead iview
Hi,
i want to add a new link in masthead iview,
e.g. i want to add aboutus link .
so what could be the code/procedure for header.jsp.
Please help .
Thanks
SanjayHi Sanjay,
-The three main files in the masthead are HeaderiView.jsp,LogInRedirect.jsp and LogOffConfirmMsg.jsp
-The HeaderiView contains the masthead users see when they are in the portal.
-Once you added your link to the HeaderiView.jsp,upload the par file.
-Once the par file is uploaded to the portal,you need to create a masthead iview based on this par file.
-Then this iView will be used for masthead on the framework page.
-create a folder in portal catalog-right click the folder->create a iView from par->select your own masthead iView->choose next->choose default component and click next->Enter the properties like-iView name,iView ID,prefix,Save as -iView and click next>save.
Here is the important step :
Add the iView to the framework page,then only it will be visible to the end users.
Browse the ramework page being used by the portal in the portal catalog
Right click on he page->edit->Page Layout->Select masthead iView on the framework page and click remove.
now iViews(Right click)->Widgets_masthead->Add iView to page->Delta Link->Position the masthead.->Logoff and logon to the portal.
It should work fine for you now I guess.
Thank you.
Regards,
Karthick -
How to hide, disable or delete "Add a new Link"?
Hello Community
Using Sharepoint 2010 Server and the UI you can create a link on a page
and if you click the link a page comes up where you can add numerous links
with its corresponding url by clicking "Add new link" on the bottom.
The users shouldn't be able to create their own links and urls the user
should only be able to select link that was put on the page for them to select. Also there is
as checkbox associated with the link and on top of all of them there is a column
heading with a checkbox too and if you click the checkbox with the column heading the ribbon exposes
a tool to create a new item and create a new folder.
How can you prevent the user from creating their own link and exposing those selections
on the ribbon when the checkbox is selected on the heading?
Thank you
ShabeautHello John from Cinncinati
Okay.
Surrounding the Ribbon I added:
<SharePoint:SPSecurityTrimmedControl PermissionsString="ManagePermissions" runat="server">
</SharePoint:SPRibbon>
I was able to use it because now if a "List" is clicked on the page no Contextual Tab Group appears
which is where all of the List's properties are made available to the user.
It fitted in this scenario because although it removed the navigation button (the navigation button wasn't
needed here because that page was the entry point) it left the graphic design still intact.
With respect to a List, when you want to replace Quick Launch with your own links, from Site Actions,
More Options, "List" you can add a link which when clicked takes you to a page where you can create sort of
as many links as necessary one underneath another with their own url corresponding for each.
The problem is underneath the last link there is a "+" sign followed by "Add a new Link" but you don't want the user
to click on that "+" sign because this is your sort of "menu" of links that you gave the user to select from.
That means I still have one problem although the <SharePoint:SPSecurityTrimmedControl got rid of the
Contextual Tab Group properties, when the user clicks a link and see the list of links I provided the "+" sign is
still there so the user can still create their own links.
If we are on the same page now, do you have any idea how to get rid of that "+" sign with the "Add a new link" at
the bottom of the links?
Thank you
Shabeaut -
Why "New Item" in ribbon and "Add new item" in xsllistview link to different form
Hi all,
I have a question. I have a list with two new forms, one is created in SPD the other one is created in InfoPath (both forms are created by developer).
I don't know why the new form link to different page when I click "New Item" in ribbon and "Add new item" in list view.
1. Will open new form that created in InfoPath when click on "New Item" in ribbon.
2. Will open new form that created in SPD when click on "Add new item" in list view.One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
<br>
Or you could make a simple function to return the correct link based on the relevant parameters:<br>
<br>
create or replace function get_url (p_criteria in varchar2) return varchar2<br>
is<br>
lv_url varchar2(500);<br>
begin<br>
if p_criteria = 'Personal' then<br>
lv_url := 'http://host:port/pls/portal/etc...';<br>
end if;<br>
etc...<br>
return '<a href="' || lv_url || '">' || p_criteria || '</a>';<br>
end;<br>
<br>
Your report could then include the function as one of the columns in your report.<br>
Not very elegant but it should do the job.
Patrick. -
Add new document link not working in upgraded sharepoint 2013?
Hello there,
Upgraded SharePoint team sites from 2010 to 2013. add new document link not working for shared document in upgraded sharepoint 2013?. it is specially not working on machine where Office web apps set up with this sharePoint server and it
is working fine with environment Office web apps not configured with Sharepoint.
Looking resoluion /suggestion, thanks in advance.
Regards,
SushilHi Sushil,
According to your description, my understanding is that the add new document link was not working on machine where Office web apps set up with this SharePoint server after you upgraded SharePoint team sites
from 2010 to 2013.
For your issue, it can be caused by integrating Office Web Apps with upgraded SharePoint Site.
Firstly please make sure claims-based authentication is used by the SharePoint web application that is used to create the new document. Only web applications that use claims-based authentication can open
files in Office Web Apps. To determine the authentication provider for a web application, follow these steps:
1.In SharePoint 2013 Central Administration, click Manage web applications.
2.Select the web application that you want to check, and click Authentication Providers on the ribbon.
The authentication provider must be displayed as Claims Based Authentication for Office Web Apps to work correctly with the web application. To resolve this issue, you can delete the web application and recreate
it using claims-based authentication, or you can change the authentication method of the web application.
Secondly, make sure the WOPI zones match on the SharePoint 2013 and the Office Web Apps Server farm.
To do this, run the following command on the SharePoint Server:
Get-SPWopiZone
The result will be one of the following:.
internal-https
internal-http
external-https
external-http
Next, run the following command on the SharePoint Server.
Get-SPWOPIBinding
In the output, look for WopiZone: zone. If the results from Get-SPWopiZone don’t match the zone that is returned by Get-SPWOPIBinding, run the Set-SPWOPIZone -Zone cmdlet on the SharePoint Server to change
the WOPI zone to match the result from Get-SPWOPIBinding.
If not work, you can try to disconnect SharePoint 2013 from Office Web Apps Server and re-configure Office Web Apps for SharePoint 2013.
For more information, please refer to the article:
http://technet.microsoft.com/en-us/library/ff431687(v=office.15).aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
How can i add a new link to Portal favorites?
Hi,
I have created a portal application and configured it to a porta frame work page byy adding iViews and portal pages.
I would like to display an iView as a link in the portal favorites. I have added it to portal favorites as related link. But nothing is displayed in the portal favorites when i logged in as application user.
How can i add a link to the created iView just like the "DeveloperContent" link shown in portal favorites when we login as portal administrator?
Your help and suggestions solicited...
Best regards,
SudheeshHi Sudheesh,
The Related Links option is for Content Administrators to add links that they think will be useful for a certain page or iView...an end user can't add their own links to the Related Links iView. Also, you don't need Knowledge Management installed in the Portal for the Related Links iView to work. Also, Related Links will be available only on the pages/iViews that the Content Administrator has created them.
Read more about Related Links here:
http://help.sap.com/saphelp_nw04/helpdata/en/e3/1d37600aa111d7b84700047582c9f7/frameset.htm
Portal Favorites is a nice option for end users to decide which iViews or pages they would like to be available from every Portal page.
To open new iViews/pages in a new window, rather than in the current Content Area, adjust the Workprotect mode of the portal (either the user can do it for their preference or the Administrator can do it for everyone):
http://help.sap.com/saphelp_nw04/helpdata/en/15/4b673e214ad112e10000000a11405a/frameset.htm -
How can I add a link to the "New Tab" tab in Firefox?
When I open Firefox my home page tab and 2 "New Tab" tabs opens. On the New Tab page there are some links. I want to add a link to this page like before.
hello, you can drag and drop links from your bookmarks or history onto the new tab page and pin them there this way...
-
Edit Add New Item link in certain view of list in SharePoint Programmtically
this is my requirements
i have one list called List 1 and two content types on it
CT 1 and
CT 2 and create two views on the list
View 1 to display items of CT 1
View 2 to display items of CT 2
the creation of list and views is done via XML
now i need to change the URL of add new item link in every view to open its content type, i.e. when i was on view 1 i click on add new item, it will open new item form of CT 1 and hen i was on view 2 and click on add new item, it will open new item form
of CT 2
i do a lot of search on the internet but get the following code but it doesn't work for me, i already wrote it in event receiver
SPSecurity.RunWithElevatedPrivileges(delegate()
SPWeb web = properties.Feature.Parent as SPWeb;
web.AllowUnsafeUpdates = true;
SPList contractList = web.Lists.TryGetList("Contract");
SPLimitedWebPartManager webpartManager = web.GetLimitedWebPartManager("Lists/ContractList/SICET%202A%20Contract.aspx", PersonalizationScope.Shared);
foreach (System.Web.UI.WebControls.WebParts.WebPart item in webpartManager.WebParts)
if (item.GetType().Name == "XsltListViewWebPart")
XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)item;
Guid guid = new Guid(listViewWebPart.ViewGuid); // get the view details which is applied to web part
SPView sicet2AView = contractList.Views[guid];
sicet2AView.GetType().InvokeMember("EnsureFullBlownXmlDocument",
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod,
null,sicet2AView,null);
PropertyInfo nodeProp = sicet2AView.GetType().GetProperty("Node", BindingFlags.NonPublic | BindingFlags.Instance);
XmlNode node = nodeProp.GetValue(sicet2AView, null) as XmlNode;
XmlNode toolbarNode = node.SelectSingleNode("Toolbar");
//sicet2AView.ViewFields.DeleteAll();
if (toolbarNode != null)
string toolbarType = toolbarNode.Attributes["Type"].Value;
string linkText = "abdeen";
toolbarNode.Attributes["Type"].Value = "Freeform";
XmlAttribute positionNode = toolbarNode.OwnerDocument.CreateAttribute("Position");
positionNode.Value = "After";
toolbarNode.Attributes.Append(positionNode);
//toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan=""2"" class=""ms-partline""><IMG src=""/_layouts/images/blank.gif"" width=1 height=1 alt=""""></td> </tr> <tr> <td class=""ms-addnew"" style=""padding-bottom: 3px""> <img src=""/_layouts/images/rect.gif"" alt=""""> <a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com""]]></HTML><URL Cmd=""New"" /><HTML><![CDATA["" ONCLICK=""javascript:NewItem(']]></HTML><URL Cmd=""New"" /><HTML><![CDATA[', true);javascript:return false;"" target=""_self"">]]></HTML><HTML>" + linkText + @"</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG src=""/_layouts/images/blank.gif"" width=1 height=5 alt=""""></td></tr> </table>]]></HTML></Then></IfHasRights>";
toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com"">Test</a></HTML></Then></IfHasRights>";
sicet2AView.Update();
//listViewWebPart.ViewGuid = sicet2AView.ID.ToString("B").ToUpper();
//listViewWebPart.Visible = true;
webpartManager.SaveChanges(listViewWebPart);
web.Update();
but it doesn't work, my first trail is changing the text of the link then go to change the link any help plz
Mohamed AbdeenHi,
The “Add new item” button will redirect users to add new item with the default Content Type of the current list.
So a workaround can be like this: We can change the default Content Type of this list every time when users open this list view page, then the “Add new item” button will work
as you expected.
Here is a link with code demo about how to programmatically set a content type as default content type in a SharePoint 2013 List:
http://www.ashokraja.me/tips/How-to-programmatically-set-a-content-type-as-default-content-type-in-a-SharePoint-2013-List
We can put the code into a Visual Web Part and add it into your two views, then when users open a list view page, the code will be executed to change the default Content Type
of the current list.
To develop a custom web part, you can take a look at the links below with steps in detail for a start:
Creating Web Parts for SharePoint
http://msdn.microsoft.com/en-us/library/ee231579.aspx
SharePoint 2013 Create a Visual Web Part
http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
My client would like to be able to add new images to their site themselves and use them as hyper-links to external sites without having to replace an old image with the new one (or blank place holding images - far from ideal). Is there ANY way that this is possible? They do not wish to update and add new images/links regularly and it is certanly not intended to be used as a blog or way of being able to constantly keep content new and fresh otherwise I would set them up with a blog account and add that to the site. It is merely a way of adding links to other local businesses every once in a while.
Please see the page they wish to update... Friends. (Please excuse the layout... the customer will not be able to resize or edit the images themselves and wishes to add them as-is!)
Thanks in advance for any help. If anybody knows how I can ask an Adobe official mod, that would be great... that, or make a request for a future addition in an update?
Warm regards,
Ben GathercoleHi Andria,
Changing links is currently not possible with in-browser editing.
Please post this as a feature request in the following feedback form :
http://feedback.inbrowserediting.com/?url=
Regards,
Akshay
Maybe you are looking for
-
Hi How we can mange the cutovers strategies in this scenario If I am starting data migration is coming 10th and it will end 20th of this month and I am planning to take the datau2019s up to 10th. of this month So wt can I do the open sale
-
For Loop in Struts ?(without Collections)
Hi all, Pls tell me how can v use FOR LOOP IN JSP STRUTS without using scriplets and collections . suppose i want to display 20 times "hello world "in jsp .How can i display it using STRUTS as conventionally scriplets are not allowed in it. and Itera
-
Proxy Problem The proxy server is refusing connections
I run Windows XP. I did have a Cybot backdoor Activity attack intercepted by Norton Internet Security and I used the Norton NPE to remove it from the computer. I do not know if this caused the proxy problem or not. There is no proxy problem connectin
-
Spring & weblogic portal 9.2
I use spring 2.o Ioc in my portal 9.2 application. I inserted the following to the web.xml, <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> and put applicationContext.xml un
-
hi all, can anybody tell me waht are idocs and bdocs and what is der functionality. points will b rewarded thanks raj