Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: admin : settings : "home title"  (Read 5948 times)

webwesen

  • Newbie
  • *
  • Karma: 0
  • Posts: 5
admin : settings : "home title"
« on: November 02, 2006, 10:29:56 PM »

Documentation thread mentions "Home title" in a settings group of the admin page.
Though I cannot see it in the latest 1.5.RC3... MIA?

the reason I am asking is - I would like to change the "Home" link in my categories to "Our stuff" or smth. any pointers? thanks
Logged

Luka

  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 36
  • Posts: 1716
    • http://www.snewscms.com
admin : settings : "home title"
« Reply #1 on: November 02, 2006, 10:34:23 PM »

You can either rename the Home variable on the top of the snews.php or edit Home SEF title in the settings in your administraiton area.

Changing Home SEF into eg. "our-stuff" will result in this URL formation:

http:/www.domain.com/our-stuff/article/
Logged

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
admin : settings : "home title"
« Reply #2 on: December 02, 2006, 01:13:50 PM »

By the way, why is the Home SEF called that way? It isn't actually the search engine friendly address of the home page (or the front page) of a web site, but a name of one non-removable category, where are stored articles, which are meant to be at the front page.

And one other thing: categories()-function uses the 'website_title' from the database as a link title to Home, but other functions use the $l['home']-variable from the snews.php
Logged

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
admin : settings : "home title"
« Reply #3 on: December 02, 2006, 01:26:57 PM »

I'll fix that asap ;)

EDIT: nope, this doesn't require fix because it's a variable which defines non-SEF value for website title used in
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
admin : settings : "home title"
« Reply #4 on: December 02, 2006, 03:16:58 PM »

But don't you agree, that the link title for the Home should say, that the user is going to the page called Home at the website of John Doe, rather than to "Website of John Doe", which the user apparently already knows?

Website title is a title of the whole website, not a title of a one page (even if it was the home page of the website).
Logged

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
admin : settings : "home title"
« Reply #5 on: December 02, 2006, 03:36:20 PM »

I'm afraid I don't quite follow you: website title in categories() is used as a title attribute of a home link, not just any other link.... if you don't mind about it's potential seo value (or you do? ;)), you're free to change it's value to whatever you want.

or am I missing the point? :D
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

markuz

  • Newbie
  • *
  • Karma: 0
  • Posts: 22
admin : settings : "home title"
« Reply #6 on: December 02, 2006, 04:22:17 PM »

Quote from: Mika
I'm afraid I don't quite follow you: website title in categories() is used as a title attribute of a home link, not just any other link.... if you don't mind about it's potential seo value (or you do? ;)), you're free to change it's value to whatever you want.

or am I missing the point? :D
I try to clear this again... :)
Let us imagine, that my name is John Doe and I have a website. I set my website's title at the settings to "The wonderful website of John Doe". I also set the first link at the menu to "Front page" (in the file snews.php). Now, a user comes to my site and browses a while. Then he wants to go back to the "Front page". The title of that link says "The wonderful website of John Doe", which I think is a wrong title in semantic mind. That page does not represent the whole website; it is only one page among the others. That's why the title should be called "Front page" or even better "Front page of John Doe's website". The latter unfortunately is not possible, because at this time you can't set website's title (-tag), link text for Home ($l['home']) and link title for Home (website_title from db) all three to be different from each other.<br /><br />One other thing is, that if you use pages()-function, the title for the "Front page"-link comes from the snews.php and therefore is different. For the sake of consistency they should be the same.<br /><br />Do you see my point now? <img src="http://snewscms.com/forum/Smileys/classic/smiley.gif" alt=":)" title="Smiley" class="smiley" /><br /><br />Edit: Whoaa! There is variable $l['a_home'] = 'Home title'; which is not used anywhere. I think that should have been used in categories() and pages() as a link title for 'Home', but for some reason it is not. Right?<br />Could that be a setting in the admin area in the next version? <img src="http://snewscms.com/forum/Smileys/classic/smiley.gif" alt=":)" title="Smiley" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_17973"> </div> <div class="smalltext largepadding floatright"> <img src="http://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> </div> </div> </div> <div class="bordercolor"> <a id="msg18044"></a> <div class="clearfix topborder windowbg2 largepadding"> <div class="floatleft poster"> <h4><a href="http://snewscms.com/forum/index.php?action=profile;u=450" title="View the profile of Mika">Mika</a></h4> <ul class="reset smalltext" id="msg_18044_extra_info"> <li>Hero Member</li> <li><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 9</li> <li>Posts: 1377</li> <li class="margintop"> <ul class="reset nolist"> <li><a href="http://www.ni5ni6.com/" title="http://www.ni5ni6.com/" target="_blank" class="new_win"><img src="http://snewscms.com/forum/Themes/core/images/www_sm.gif" alt="http://www.ni5ni6.com/" border="0" /></a></li> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="http://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_18044"> <a href="http://snewscms.com/forum/index.php?topic=2125.msg18044#msg18044" rel="nofollow">admin : settings : "home title"</a> </h5> <div class="smalltext">« <strong>Reply #7 on:</strong> December 03, 2006, 12:31:29 PM »</div> <div id="msg_18044_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_18044"><img src="http://snewscms.com/forum/Smileys/classic/smiley.gif" alt=":)" title="Smiley" class="smiley" /> <br /><br />change this in your categories() function:<br /><div class="quoteheader"><div class="topslice_quote">Quote</div></div><blockquote class="bbc_standard_quote">function categories() {<br />   $categorySEF = get_id('category');<br />   $class = $category_title == $categorySEF ? ' class="current"' : '';<br />   echo '<li><a'.$class.' href="'.db('website').'" title="'.<span style="color: blue;" class="bbc_color">l('home')</span>.'">'.l('home').'</a></li>';<br />...</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>and delete this line from language variables:<br /><span style="color: red;" class="bbc_color">$l['a_home'] = 'Home title';</span></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_18044"> </div> <div class="smalltext largepadding floatright"> <img src="http://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_18044_signature"><a href="http://www.ni5ni6.com/" class="bbc_link" target="_blank">http://www.ni5ni6.com/</a> - Tutorials, Mods and How-To's about sNews CMS<br /><a href="http://www.ni5ni6.com/home/snews-16-developers-edition/" class="bbc_link" target="_blank">sNews 1.6 Developers Edition</a> - commented sNews 1.6 version</div> </div> </div> </div> <div class="bordercolor"> <a id="msg18110"></a> <div class="clearfix topborder windowbg largepadding"> <div class="floatleft poster"> <h4><a href="http://snewscms.com/forum/index.php?action=profile;u=1713" title="View the profile of markuz">markuz</a></h4> <ul class="reset smalltext" id="msg_18110_extra_info"> <li>Newbie</li> <li><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 0</li> <li>Posts: 22</li> <li class="margintop"> <ul class="reset nolist"> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="http://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_18110"> <a href="http://snewscms.com/forum/index.php?topic=2125.msg18110#msg18110" rel="nofollow">admin : settings : "home title"</a> </h5> <div class="smalltext">« <strong>Reply #8 on:</strong> December 04, 2006, 12:48:56 AM »</div> <div id="msg_18110_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_18110">No I won't. <img src="http://snewscms.com/forum/Smileys/classic/cheesy.gif" alt=":D" title="Cheesy" class="smiley" /><br />Like I already mentioned, I like to have a link title for the Home to be set separately, like I do when I add a new category. So I do<br /><div class="quoteheader"><div class="topslice_quote">Quote</div></div><blockquote class="bbc_standard_quote">function categories() {<br />    $categorySEF = get_id('category');<br />    $class = $category_title == $categorySEF ? ' class="current"' : '';<br />    echo '<li><a'.$class.' href="'.db('website').'" title="'.<span style="color: blue;" class="bbc_color">l('a_home')</span>.'">'.l('home').'</a></li>';</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_18110"> </div> <div class="smalltext largepadding floatright"> <img src="http://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> </div> </div> </div> <div class="bordercolor"> <a id="msg18132"></a> <div class="clearfix topborder windowbg2 largepadding"> <div class="floatleft poster"> <h4><a href="http://snewscms.com/forum/index.php?action=profile;u=450" title="View the profile of Mika">Mika</a></h4> <ul class="reset smalltext" id="msg_18132_extra_info"> <li>Hero Member</li> <li><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /><img src="http://snewscms.com/forum/Themes/core/images/star.gif" alt="*" /></li> <li class="margintop">Karma: 9</li> <li>Posts: 1377</li> <li class="margintop"> <ul class="reset nolist"> <li><a href="http://www.ni5ni6.com/" title="http://www.ni5ni6.com/" target="_blank" class="new_win"><img src="http://snewscms.com/forum/Themes/core/images/www_sm.gif" alt="http://www.ni5ni6.com/" border="0" /></a></li> </ul> </li> </ul> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon"><img src="http://snewscms.com/forum/Themes/core/images/post/xx.gif" alt="" border="0" /></div> <h5 id="subject_18132"> <a href="http://snewscms.com/forum/index.php?topic=2125.msg18132#msg18132" rel="nofollow">admin : settings : "home title"</a> </h5> <div class="smalltext">« <strong>Reply #9 on:</strong> December 04, 2006, 08:26:50 AM »</div> <div id="msg_18132_quick_mod"></div> </div> </div> <div class="post"> <hr class="hrcolor" width="100%" size="1" /> <div class="inner" id="msg_18132">Hehehe, please do, markuz <img src="http://snewscms.com/forum/Smileys/classic/cheesy.gif" alt=":D" title="Cheesy" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <div class="smalltext floatleft" id="modified_18132"> </div> <div class="smalltext largepadding floatright"> <img src="http://snewscms.com/forum/Themes/core/images/ip.gif" alt="" border="0" /> Logged </div> <div class="signature" id="msg_18132_signature"><a href="http://www.ni5ni6.com/" class="bbc_link" target="_blank">http://www.ni5ni6.com/</a> - Tutorials, Mods and How-To's about sNews CMS<br /><a href="http://www.ni5ni6.com/home/snews-16-developers-edition/" class="bbc_link" target="_blank">sNews 1.6 Developers Edition</a> - commented sNews 1.6 version</div> </div> </div> </div> </form> </div> <a id="lastPost"></a> <div class="clearfix marginbottom" id="postbuttons_lower"> <div class="nav floatright"> <div class="buttonlist"> <ul class="reset clearfix"> <li class="last"><a class="button_strip_print" href="http://snewscms.com/forum/index.php?action=printpage;topic=2125.0" rel="new_win nofollow"><span>Print</span></a></li> </ul> </div></div> <div class="middletext floatleft">Pages: [<strong>1</strong>] </div> <div class="clear"><a href="http://snewscms.com/forum/index.php?topic=2125.0;prev_next=prev#new">« previous</a> <a href="http://snewscms.com/forum/index.php?topic=2125.0;prev_next=next#new">next »</a></div> </div> <ul class="linktree" id="linktree_lower"> <li> <a href="http://snewscms.com/forum/index.php"><span>sNews Forum</span></a> > </li> <li> <a href="http://snewscms.com/forum/index.php#c4"><span>Previous sNews versions</span></a> > </li> <li> <a href="http://snewscms.com/forum/index.php?board=75.0"><span>sNews 1.5 RC and pre-release</span></a> > </li> <li> <a href="http://snewscms.com/forum/index.php?board=34.0"><span>sNews 1.5 RC3 version</span></a> > </li> <li class="last"> <a href="http://snewscms.com/forum/index.php?topic=2125.0"><span>admin : settings : "home title"</span></a> </li> </ul> <div id="moderationbuttons" class="clearfix"></div> <div class="tborder"> <div class="titlebg2" style="padding: 4px;" align="right" id="display_jump_to"> </div> </div><br /> <script type="text/javascript" src="http://snewscms.com/forum/Themes/default/scripts/topic.js"></script> <script type="text/javascript"><!-- // --><![CDATA[ if ('XMLHttpRequest' in window) { var oQuickModify = new QuickModify({ sScriptUrl: smf_scripturl, bShowModify: true, iTopicId: 2125, sTemplateBodyEdit: '\n\t\t\t\t<div id="quick_edit_body_container" style="width: 90%">\n\t\t\t\t\t<div id="error_box" style="padding: 4px;" class="error"><' + '/div>\n\t\t\t\t\t<textarea class="editor" name="message" rows="12" style="width: 100%; margin-bottom: 10px;" tabindex="1">%body%<' + '/textarea><br />\n\t\t\t\t\t<input type="hidden" name="c612baba00" value="106cf2eb7900d37b3d59b59500d292b6" />\n\t\t\t\t\t<input type="hidden" name="topic" value="2125" />\n\t\t\t\t\t<input type="hidden" name="msg" value="%msg_id%" />\n\t\t\t\t\t<div class="righttext">\n\t\t\t\t\t\t<input type="submit" name="post" value="Save" tabindex="2" onclick="return oQuickModify.modifySave(\'106cf2eb7900d37b3d59b59500d292b6\', \'c612baba00\');" accesskey="s" class="button_submit" />  <input type="submit" name="cancel" value="Cancel" tabindex="3" onclick="return oQuickModify.modifyCancel();" class="button_submit" />\n\t\t\t\t\t<' + '/div>\n\t\t\t\t<' + '/div>', sTemplateSubjectEdit: '<input type="text" style="width: 90%" name="subject" value="%subject%" size="80" maxlength="80" tabindex="4" class="input_text" />', sTemplateBodyNormal: '%body%', sTemplateSubjectNormal: '<a hr'+'ef="http://snewscms.com/forum/index.php'+'?topic=2125.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%<' + '/a>', sTemplateTopSubject: 'Topic: %subject%  (Read 5948 times)', sErrorBorderStyle: '1px solid red' }); aJumpTo[aJumpTo.length] = new JumpTo({ sContainerId: "display_jump_to", sJumpToTemplate: "<label class=\"smalltext\" for=\"%select_id%\">Jump to:<" + "/label> %dropdown_list%", iCurBoardId: 34, iCurBoardChildLevel: 1, sCurBoardName: "sNews 1.5 RC3 version", sBoardChildLevelIndicator: "==", sBoardPrefix: "=> ", sCatSeparator: "-----------------------------", sCatPrefix: "", sGoButtonLabel: "go" }); aIconLists[aIconLists.length] = new IconList({ sBackReference: "aIconLists[" + aIconLists.length + "]", sIconIdPrefix: "msg_icon_", sScriptUrl: smf_scripturl, bShowModify: true, iBoardId: 34, iTopicId: 2125, sSessionId: "106cf2eb7900d37b3d59b59500d292b6", sSessionVar: "c612baba00", sLabelIconList: "Message Icon", sBoxBackground: "transparent", sBoxBackgroundHover: "#ffffff", iBoxBorderWidthHover: 1, sBoxBorderColorHover: "#adadad" , sContainerBackground: "#ffffff", sContainerBorder: "1px solid #adadad", sItemBorder: "1px solid #ffffff", sItemBorderHover: "1px dotted gray", sItemBackground: "transparent", sItemBackgroundHover: "#e0e0f0" }); } // ]]></script> <script type="text/javascript"><!-- // --><![CDATA[ var verificationpostHandle = new smfCaptcha("http://snewscms.com/forum/index.php?action=verificationcode;vid=post;rand=25928e1538ceab7c189c6fc3245c1d97", "post", 1); // ]]></script> </div> <div id="footerarea" class="headerpadding topmargin clearfix"> <ul class="reset smalltext"> <li class="copyright"> <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"><a href="http://snewscms.com/forum/index.php?action=credits" title="Simple Machines Forum" target="_blank" class="new_win">SMF 2.0.14</a> | <a href="http://www.simplemachines.org/about/smf/license.php" title="License" target="_blank" class="new_win">SMF © 2017</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a> </span></li> <li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="Valid XHTML 1.0!"><span>XHTML</span></a></li> <li><a id="button_rss" href="http://snewscms.com/forum/index.php?action=.xml;type=rss" class="new_win"><span>RSS</span></a></li> <li class="last"><a id="button_wap2" href="http://snewscms.com/forum/index.php?wap2" class="new_win"><span>WAP2</span></a></li> </ul> </div> </div> </body></html>