> Forums > Active Forums > Community Support > How to update the page title?
Last Post 06 Oct 2010 09:57 AM by Will Morgenweck. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
wanghu
Customers
wanghu
Post Count:15

--
05 Oct 2010 11:02 PM
    Hi,
    AF4.2.7
    In AF knowledge base, it says that "Each view within Active Forums can update the page title tag for the give page".

    But I don't know where to update it in the Control Panel.

    Can you help me out? 
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    06 Oct 2010 05:55 AM
    You can code like this to any template to adjust meta and title tags.
    
    [META]
    [TITLE][TOPICSUBJECT] - [PORTALNAME] - [FORUMNAME][/TITLE]
    [DESCRIPTION][BODY:255][/DESCRIPTION]
    [KEYWORDS][TAGS][/KEYWORDS]
    [/META]
    
     
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    wanghu
    Customers
    wanghu
    Post Count:15

    --
    06 Oct 2010 09:54 AM
    Hi,
    But in which part of the template to put these codes.
    For example,
    I want to put it in the TopicView Template,part of the template code is :
     <%@ Register TagPrefix="am" Namespace="Active.Modules.Forums.Controls" Assembly="Active.Modules.Forums.40" %>
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td>
                <div  class="afcrumb">[FORUMMAINLINK] > [FORUMGROUPLINK] > [FORUMLINK]</div>
                <div class="aftitlelg">RE: How to update the page title?</div>
                <div class="aftopicsum">[TRESX:LastPost] [AF:LABEL:LastPostDate] [TRESX:BY] [AF:LABEL:LastPostAuthor]. [AF:LABEL:ReplyCount] [TRESX:REPLIES].</div>
    


    I jsut put your code at the beginning of this template file,but it doesnt work
     [META]
    [TITLE][TOPICSUBJECT][/TITLE]
    [DESCRIPTION][BODY:255][/DESCRIPTION]
    [KEYWORDS][TAGS][/KEYWORDS]
    [/META]
    <%@ Register TagPrefix="am" Namespace="Active.Modules.Forums.Controls" Assembly="Active.Modules.Forums.40" %>
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td>
                <div  class="afcrumb">[FORUMMAINLINK] > [FORUMGROUPLINK] > [FORUMLINK]</div>
    
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    06 Oct 2010 09:57 AM
    It does work, we use it for every template on this site. Make sure you clear the cache from host settings. Also make sure you are editing the template that is selected for the forum views. If the you are using "Default" then those are files on the file system and the cache must be cleared after each change. If you are using something other than "Default" then those changes take place in the editor.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > How to update the page title?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy