Search Engine Optimisation - more efficient use of the title tag

Author Message

steve walker

Wednesday 09 June 2004 8:24:05 am

Hi there,

This is more a discussion request than a support one.

Good Search Engine Optimisation is heavily influenced by good marrying of the <title> keywords with the keywords in the body. Its always recommended you change the title tage dependent on the page it referes to. So, for instance, when a user goes to your product page selling 'icecream', 'icecream' is referred to in the title tag, and greatly improves the chances of that product page doing well in Search Engines for users searching on this term.

I'm not trying to teach anyone to suck eggs here - but an extension or module that allows the title tag to be specified when necessary on a per class basis is required.

Would it not be easy to have two components that make up the page title, the existing one, and a second more specific one? So that the overall title is 'my webshop etc' which comes from the global configuration, and then a second more specific '- tastey icecreams' - with this being lifted from the product class...

So the header info in the page has to take information that is derived from the main content of the page.

Is this possible, and has anyone else been wondering about this?

Regards, Steve.

http://www.oneworldmarket.co.uk

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 00:33:47
Script start
Timing: Jan 20 2025 00:33:47
Module start 'layout'
Timing: Jan 20 2025 00:33:47
Module start 'content'
Warning: PHP: E_WARNING Jan 20 2025 00:33:49
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 2 and paragraph in Entity, line: 20 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 20 2025 00:33:49
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 2 and section in Entity, line: 22 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 20 2025 00:33:49
Module end 'content'
Timing: Jan 20 2025 00:33:49
Script end

Main resources:

Total runtime1.2915 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 589.4141152.6563
Module start 'layout' 0.00840.0022 742.070339.5234
Module start 'content' 0.01061.2792 781.5938597.2734
Module end 'content' 1.28980.0017 1,378.867216.6172
Script end 1.2914  1,395.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2820160.0002
Check MTime0.00160.1221160.0001
Mysql Total
Database connection0.00090.068010.0009
Mysqli_queries1.227595.0442650.0189
Looping result0.00070.0506630.0000
Template Total1.247196.620.6236
Template load0.00210.160320.0010
Template processing1.245196.404920.6225
Template load and register function0.00020.013010.0002
states
state_id_array0.00100.074110.0010
state_identifier_array0.00070.057720.0004
Override
Cache load0.00170.1328320.0001
Sytem overhead
Fetch class attribute can translate value0.00050.035230.0002
Fetch class attribute name0.00110.088860.0002
XML
Image XML parsing0.00080.062630.0003
class_abstraction
Instantiating content class attribute0.00010.007970.0000
General
dbfile0.00890.6897160.0006
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs