0

I am trying to replace Sense/Net default site title (Sense/Net ECM Demo Site). I've changed the text in the file system and in the content explorer too. I changed the text to "my document portal" but it displays "Portalen-USmy document portal" as the title. I changed "SenseNetDemoSiteTitle" to "my document portal" in

<title><%=HttpContext.GetGlobalResourceObject( "Portal", "my document portal ")%></title>
Aniko Litvanyi
  • 2,109
  • 1
  • 21
  • 25
sameer
  • 17
  • 6

1 Answers1

0

Change it simply to

<title>my document portal</title>
Aniko Litvanyi
  • 2,109
  • 1
  • 21
  • 25
  • Here is my changes : <%=HttpContext.GetGlobalResourceObject("Portal", ">my document portal")%> but it showing "Portalen-USmy document portal" – sameer Mar 11 '17 at 11:01
  • as I advised in my answer change the title to my document portal The httpcontext... stuff is not needed only 'my document portal'' – Aniko Litvanyi Mar 11 '17 at 11:02
  • Done. but why <%=HttpContext.GetGlobalResourceObject("Portal", "SenseNetDemoSiteTitle")%> is in code? – sameer Mar 11 '17 at 11:06
  • It is a localized string. If you want to use your site in multiple languages, it is possible to add your text in multiple languages into a localization file and then the text can be displayed differently, when one user browse your site in english and another for example in german. If you're interested in localization in sensenet, check this wiki article: http://wiki.sensenet.com/Localization – Aniko Litvanyi Mar 11 '17 at 11:11
  • Okay.got it. since morning i was reading about GetGlobalResourceObject :p – sameer Mar 11 '17 at 11:14
  • It showing change only on main page. Whenever i click or go to other pages still little shows the "Sense/Net ECM Demo Site" where should i change the title which reflect on all pages? – sameer Mar 14 '17 at 06:24
  • The other pages have other pagetemplates (html files in the /Root/Global/pagetemplates folder), check which ones are used on the related pages (the info is on the Portal Remote Controller). Or change the localized value in the resource file (/Root/Localization/PortalResources.xml) – Aniko Litvanyi Mar 14 '17 at 06:31
  • I changed in Root/Localization/PortalResources.xml but still it showing default title ;( – sameer Mar 14 '17 at 08:13
  • Have you change it in the Content Explorer? – Aniko Litvanyi Mar 14 '17 at 08:16
  • in which page template file i have to change? – sameer Mar 14 '17 at 08:19
  • You can check it on the Portal Remote Control. Open it on the page on which you want to change the title and it is listed in the middle of the infos. – Aniko Litvanyi Mar 14 '17 at 08:21
  • okay. But this way i have to change title for every page individually? – sameer Mar 14 '17 at 08:23
  • Yes, or you can change it once in the resource file at the language that you use on the site. So if you've changed it in the resource file, check that it is also changed in the Content Explorer not only in the file system, and check also that it is changed in the language that you used (by default there're english and hungarian part of all the resource classes if you've set the site's language to english you have to change it in the english part) – Aniko Litvanyi Mar 14 '17 at 08:27
  • okay. i am using English (it comes by default) with language i have no issue, i am just trying to replace default site title for whole system. – sameer Mar 14 '17 at 08:32
  • Did you change it this way? https://demo06.demo.sensenet.com/Root/Sites/Default_Site/features/Galleries/Image%20Library%20Ipsum/loc.png – Aniko Litvanyi Mar 14 '17 at 08:34