Loading...
 
Features / Usability

Features / Usability


Title Tags

posts: 12 United States

Hi Everyone,

I've been trying to figure out a way to use Title Tags with the Directory module in TikiWiki.

I did some research and found this message from Mike Wexler on RB21.com:

http://www.rb21.com/news/index.php/m/67983/9221/#msg_67983

...about how the existing header.tpl was developed with support for Title Tags in the Forums module. Has anyone figured out a way to do the same for the Directory module?

Thanks in advance.

-- Todd

posts: 1092

Which release and which theme?
because now in 1.19 in header.tpl you have

{$siteTitle}
{if $page ne ''} : {$page|escape}
{elseif $headtitle} : {$headtitle}
{elseif $arttitle ne ''} : {$arttitle}
{elseif $title ne ''} : {$title}
{elseif $thread_info.title ne ''} : {$thread_info.title}
{elseif $post_info.title ne ''} : {$post_info.title}
{elseif $forum_info.name ne ''} : {$forum_info.name}
{/if}


Is it what you want?

posts: 12 United States

Hi Sylvie,

I'm running Tiki v. 1.7.8 and I'm using the moreneat theme. Thanks for what you sent me. It added Title Tags for articles and forum posts to the header.tpl. Still looking for something that will set the Title Tags for pages in the directory module. Right now when you view any of the directory pages, the Title Tag is set to display only the Site Title ({$siteTitle}).

Thanks again.

-- Todd


posts: 12 United States

Yes, I finally figured it out. You just have to add this line between the tags in the header.tpl:

{elseif $categ_info.name ne ''} : {$categ_info.name}

...so it now reads as:

{$siteTitle}
{if $page ne ''} : {$page|escape}
{elseif $headtitle} : {$headtitle}
{elseif $arttitle ne ''} : {$arttitle}
{elseif $title ne ''} : {$title}
{elseif $thread_info.title ne ''} : {$thread_info.title}
{elseif $post_info.title ne ''} : {$post_info.title}
{elseif $forum_info.name ne ''} : {$forum_info.name}
{elseif $categ_info.name ne ''} : {$categ_info.name}
{/if}

Hope this helps someone. cool

-- Todd

posts: 12 United States

Just a quick update on this. I've also figured out how to add the category description to the Title of a Directory page:

{if $page ne ''} {$page|escape}
{elseif $headtitle} {$headtitle} -
{elseif $arttitle ne ''} {$arttitle} -
{elseif $title ne ''} {$title} -
{elseif $thread_info.title ne ''} {$thread_info.title} -
{elseif $post_info.title ne ''} {$post_info.title} -
{elseif $forum_info.name ne ''} {$forum_info.name} -
{elseif $categ_info.name ne ''} {$categ_info.name} ({$categ_info.description}) -
{/if}{$siteTitle}

...so in the Category pages this displays the page title as:

Category Name (Category Description) - Site Name

Hope this helps someone.

-- Todd

posts: 1092

thx for the contribution, I put the category name on 1.9 cvs
;-)


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting