Share » Forums » Setup & design » Search Engine Optimisation - more...

Search Engine Optimisation - more efficient use of the title tag

Search Engine Optimisation - more efficient use of the title tag

Wednesday 09 June 2004 8:24:05 am - 4 replies

Author Message

Ekkehard Dörre

Wednesday 09 June 2004 11:55:32 am

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

steve walker

Thursday 10 June 2004 12:04:34 am

Ekke,

Many thanks for the code.

Kind regards, Steve.

http://www.oneworldmarket.co.uk

Paul Forsyth

Thursday 10 June 2004 12:52:04 am

I have a few problems maintaining a good title. Most of it stems from the fact that a node is not always available and getting a title is difficult.

I filed this bug a while back describing the problem:

http://ez.no/community/bug_reports/always_have_a_valid_node_object_available

I have to perform some checks and put in code accordingly, eg:

{let my_node=0}

{section show=is_set($DesignKeys:used.node)}
  {set my_node=fetch(content, node, hash(node_id, $DesignKeys:used.node))}
{/section}

<title>VisionWT
{switch match=$module_result.uri}
  {case match='/user/register'}
- Register new user
  {/case}
  {case match='/user/login'}
- Login user
  {/case}
  {case match='/user/forgotpassword'}
- Forgot Password
  {/case}
  {case match='/shop/confirmorder'}
- Confirm Order
  {/case}
  {case}
    {section show=is_set($search_text)}
- Search Results
    {section-else}
      {section show=ne($my_node, 0)}
- {$my_node.name}
      {/section}

    {/section}
  {/case}
{/switch}
</title>
{/let}

It isn't ideal because you have to add more cases to cover every bit of ez publish that doesnt have a node. Though, in my haste i may have overlooked something. Are there better alternatives?

paul

--
http://www.visionwt.com

Ekkehard Dörre

Wednesday 23 June 2004 2:58:48 pm

... for Meta Description tag look at:
http://ez.no/community/forum/developer/meta_description_tag

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu