Meta Tags Not Responding To Variable

alt=
Ekwe
@ekwe
10 years ago
212 posts
Here is what I have, at the top of my news story template, it is not working still

{assign var="selected" value="ban"}
{assign var="no_inner_div" value="true"}
{assign var="page_title" value=$item.blog_title}
{jrCore_page_title title=$page_title}
{jrCore_include template="header.tpl"}
updated by @ekwe: 05/13/14 04:48:18AM
michael
@michael
10 years ago
7,714 posts
"its not working" isn't really a good explanation of whats happening.
douglas
@douglas
10 years ago
2,790 posts
This:

{assign var="page_title" value=$item.blog_title}

is not going to work since the variable $item.blog_title is not inside the foreach loop for the blog.

What skin are you using?

I'm not sure its going to be possible, but I'll see if there is a way to get the blog title into the browser title.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
10 years ago
2,790 posts
Ekwe:
Here is what I have, at the top of my news story template, it is not working still

{assign var="selected" value="ban"}
{assign var="no_inner_div" value="true"}
{assign var="page_title" value=$item.blog_title}
{jrCore_page_title title=$page_title}
{jrCore_include template="header.tpl"}

Try changing it to this:

{assign var="selected" value="ban"}
{assign var="no_inner_div" value="true"}
{jrCore_lang skin=$_conf.jrCore_active_skin id="9" default="News" assign="page_title1"}
{assign var="page_title" value="`$page_title1` - `$_post._1|replace:"-":" "`"}
{jrCore_page_title title=$page_title}
{jrCore_include template="header.tpl"}

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
Ekwe
@ekwe
10 years ago
212 posts
Will this show the blog title on the head on just News? I'm using projam
alt=
Ekwe
@ekwe
10 years ago
212 posts
Ah ok, working good. But the title in small caps. How can I change that, and also move News to the other side ( Title - News - Domain) Thanks, you rock
douglas
@douglas
10 years ago
2,790 posts
Change this:

{assign var="selected" value="ban"}
{assign var="no_inner_div" value="true"}
{jrCore_lang skin=$_conf.jrCore_active_skin id="9" default="News" assign="page_title1"}
{assign var="page_title" value="`$page_title1` - `$_post._1|replace:"-":" "`"}
{jrCore_page_title title=$page_title}
{jrCore_include template="header.tpl"}

to this:

{assign var="selected" value="ban"}
{assign var="no_inner_div" value="true"}
{jrCore_lang skin=$_conf.jrCore_active_skin id="9" default="News" assign="page_title1"}
{assign var="page_title" value="`$_post._1|replace:"-":" "` - `$page_title1`"}
{jrCore_page_title title=$page_title}
{jrCore_include template="header.tpl"}

and to change the title to be capitalized, you'll need to modify the following templates:

news.tpl
news_list.tpl
news_slider.tpl
side_news.tpl

You'll want to find the following:

<a href="{$jamroom_url}/news_story/{$item._item_id}/{$item.blog_title_url}

and change it to this:

<a href="{$jamroom_url}/news_story/{$item._item_id}/{$item.blog_title}

basically just taking off the _url in the variable $item.blog_title_url

Note that the news.tpl file has 3 different place you need to modify, the news_list.tpl file has 4 place you'll need to modify, the news_slider.tpl has one place and instead of $item.blog_title_url its $row.blog_title_url, and the side_news.tpl has 3 places you'll need to modify.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 04/02/14 03:15:58PM
alt=
Ekwe
@ekwe
10 years ago
212 posts
ok, let me start working on that. Meanwhile this - https://www.jamroom.net/the-jamroom-network/forum/design-and-skin-customization/9073/meta-tags-not-working can I get the Artist name to show up with the track name on the header. Thanks
douglas
@douglas
10 years ago
2,790 posts
You know, you might be better off using the Meta Tag Manager module.

https://www.jamroom.net/the-jamroom-network/networkmarket/129/meta-tag-manager


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags