Need to add a button inside Sitefinity
I need to add a button that links to a custom administration panel beside the logout button or someplace like that.
How i can do this?
Hi,
it's inside Sitefinity header on template. You can see it at Administration > Backend Pages > Manage Also Templates (on right).
You have to replace header by one of yours.
Original Header.ascx:
<%@ Control Language="C#" %>
<%@ Import Namespace="Telerik.Sitefinity.Localization"%>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.Backend" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
div
class
=
"sfTopBar"
>
<
sf:SitefinityHyperLink
ID
=
"goToSiteButton"
runat
=
"server"
NavigateUrl
=
"~/"
Text='<%$Resources:Labels, GoToTheSite %>' Target="_blank" CssClass="sfInlineBlock sfLiveSite" Tooltip="<%$Resources:Labels, GoToTheSiteTitle %>"></
sf:SitefinityHyperLink
>
<
sf:SitefinityHyperLink
ID
=
"goToHelpButton"
runat
=
"server"
NavigateUrl
=
"~/Sitefinity/Administration/HelpAndResources"
Text='<%$Resources:PageResources, HelpAndResources %>' CssClass="sfMoreDetails sfHelpLnk" />
<
div
class
=
"sfInlineBlock sfLoggedUser"
>
<
p
class
=
"sfUserName"
>
<
asp:Label
ID
=
"UserName"
runat
=
"server"
/>
</
p
>
<
ul
class
=
"sfUserInfo"
>
<
li
class
=
"sfFirst"
>
<
sf:SitefinityHyperLink
ID
=
"profileLink"
ToolTip
=
"Change your profile"
Text="<%$ Resources:PageResources, Profile %>"
runat="server" NavigateUrl="javascript:alert('<%$Labels,InProcessOfImplementationNoHtml%>');" /></
li
>
<
li
>
<
sf:SitefinityHyperLink
ID
=
"logoutButton"
NavigateUrl
=
"~/Sitefinity/Login/DoLogout"
ToolTip="<%$Resources:Labels, Logout %>"
Text='<%$Resources:Labels, Logout %>' runat="server" /></
li
>
</
ul
>
</
div
>
</
div
>
How i can modified the .aspx of the template?
You can't but when you enter into the template, you can put your own widget to replace the existing header.
Can i grab the original widget with thunder? Thanks for the quick answer.
Hi,
I don't user thunder so I can't say. Maybe an admin can answer.