Jump to content

SEO the same for Portal home and all knowledgebase articles


DutchieXL

Recommended Posts

Hello,

I have been struggling with this problem for some time now.
In the file seo.tpl I am using:

{if $LANG.globalsystemname eq "Portal Home"}

to edit the seo for the homepage.
The problem I encounter is that the seo of all the knowledge base articles is also changed into the homepage seo.
this also happens when I use:

{if $filename eq "index"}


At the end of the file I am using:

{else}

<title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>
<meta name="description" content="{$kbarticle.text|truncate:210:"..."|strip_tags}" />

for the kb articles which works perfectly when I disable the homepage seo.
As soon as I enable the homepage seo with one of the above options the kb articles all get the homepage seo.

Is there a way to set the homepage seo without affecting the kb articles seo?

Any help is appreciated.

Thanks,

René

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated