plz help

plz help

  •   I  have something like <CSControl:SiteUrl runat="server" UrlName="Home"> where do I change the url to point to some other location. What is the configuraton file this would be in to make my change????

  • To change the url to point elsewhere, just change the UrlName of the SiteUrl control to be the name of the url you want to direct to.  All these names are defined in the siteurls.config file so you can use that to work out the UrlName you need.

  •  Hi afscrome,

    Thanks for the post,I am new to .net and to community server I am doing a maintence project,  all i can see in the siteurls.config file is a list of tags

    url

    location

    links 

    possibly where do i need to make the change ????

  • You make no changes to siteurls - you findthe name which refers to thelink you want, then replace the UrlName in <CSControl:SiteUrls /> with the one from the file.  e.g. if you want to link to the "gallerylist" url, you'd use <CSControl:SiteUrl runat="server" UrlName="gallerylist">

    If you still dont' get what I mean, can you change the <CSControl:SiteUrl ... /> tag to <a href="http://yoururl.com>My Link</a> which would render My Link.

  •  In my master page

    i have something like

    <CSControl:SiteUrl runat="server" UrlName="Home"><ContentTemplate><CSControl:SiteThemeConfigurationDataImage ImageUrlProperty="logoUrl" BorderWidth="0" runat="server" ThemeName="default" /></ContentTemplate></CSControl:SiteUrl>

    and in my theme.config I have 

     <property id="logoUrl" text="Logo URL" dataType="url" defaultValue="~/themes/default/images/common/header-logo.gif" descriptionText="Enter the URL of the image to use as the site's logo."  descriptionImageUrl="~/themes/default/images/location-titlebar.png" controlType="CommunityServer.Controls.SiteFileUrlControl, CommunityServer.Controls" />

     

    Now where do i change the link so that i go the desired page when i click on that image................. 

  • What is "the desired page"

  •  homepage

  • That's what your code does at the moment.

     Can you please explain in detail the problem - i.e. what is happening at the moment and what you expect to be happening instead.  Also, what which version of CS and which theme are you using.

  •  ohk instead when i click on the image i am going to website\web folder instead of website

    and moreover the website part is ASP 1.1 and the Web part being in 2.0. They had name Web as a virtual folder under Website to make that work. I havent done any of that as i said i am doing a maintainece thing and i myself dont have much clue of what going on. Did i provide sufficient details??? 

  • Are you trying that you've got CS installed in a folder off the website (e.g. http://yourwebsite.com/communityserver) and you want the image to link to http://yourwebsite.com?

    If so, Try changing

    <CSControl:SiteUrl runat="server" UrlName="Home"><ContentTemplate><CSControl:SiteThemeConfigurationDataImage ImageUrlProperty="logoUrl" BorderWidth="0" runat="server" ThemeName="default" /></ContentTemplate></CSControl:SiteUrl>

    to

    <a href="/"><CSControl:SiteThemeConfigurationDataImage ImageUrlProperty="logoUrl" BorderWidth="0" runat="server" ThemeName="default" /</a>

    If that doesn't work, change href="/" to href="http://yourwebsite.com/"

  • Man i want to say something to u . damn u, You are awesome. I really appreciate ur help and god bless u. u made life easier for a poor being....