Typo3: Use the Metadata from Hom Page

I'm using Typo3 and use the fields "metadata" on each page in order to specify the metadata.

I realize this with the following TypoScript code:

page.meta.keywords.field = keywords page.meta.description.field = description page.meta.robots= index, follow

Now I would like on the sides where no metadata is specified using the data from the home page. How can I realize the best?

--------------Solutions-------------

You can make use of sliding content. This involves a little setup, but will make life alot easier for people maintaining the site.

You will need to add or alter the following line inside typo3conf/localconf.php

$TYPO3_CONF_VARS['FE']['addRootLineFields'] = ',description,keywords';

After that you can change your metadata like this:

page.meta.keywords.data = levelfield : -1 , keywords , slide
page.meta.description.data = levelfield : -1 , description , slide

Make sure to clear all cache. Then fill in the default values inside of the root-page (most of the times uid=1).

Now you can on any page override this setting, and it is automatically applied to all subpages of that page as well =)

Category:metadata Time:2011-09-08 Views:1
Tags: metadata typo3

Related post

  • Preventing Excel from reading Excel metadata in web pages 2013-02-23

    I am currently trying to move data from one database to another. Due to various security, networking, and software constraints well beyond my control, the most fiesible way to do this is to generate a web page from an Excel document which runs the da

  • Typo3 - overwrite styles on a single page 2011-05-26

    How to overwrite some styles on a specified site? I would like to do it the css-file way. Still no answer below works in my case.. --------------Solutions------------- Depending on the amount of CSS to apply, you could also consider to just add the p

  • Typo3: display content from first sub-page using typoscript 2011-06-03

    This is what I want to do: on a given page, I want to display all content elements of the first child page of a given page. I cannot simply use a shortcut page, because I need to display other content elements after the ones from the sub-page. How ca

  • Extracting metadata from Web Pages 2011-06-16

    I was wondering if there's a way in javascript that allows me to process the html source code that allows me to take out specific tags that I want? Sorry if it sounds easy or too simple. i am new to programming. --------------Solutions------------- U

  • Typo3: Apply new layout to existing content pages 2011-10-20

    I have to apply a "facelift" to a website based on Typo3(v. 4.4.10) with TemplateVoila. Now I want to make as few changes as possible to the existing content pages and overall structure, so my initial thought was to keep the Template Data Structures

  • Tridion: Errors when setting a page's metadata schema in the event system 2012-02-29

    This is on Tridion 2011 SP1. I'm using the component save event in the Tridion event system to create a corresponding page and associate some metadata with that page. When specifying a schema, I am getting event logs that indicate that the UUID of th

  • Effect of database driven product pages and SEO 2009-01-25

    What is the impact on SEO for an e commerce site the displays products/items information driven from a database (versus each product having it's own HTML page). Will the SE find the item information ? If not, how do you overcome this issue ? --------

  • ASP.NET master page vs. SharePoint page layout template 2010-08-10

    A client of mine uses SharePoint to manage its websites, and recently asked me to build a small website for them using ASP.NET, which they would then implement via SharePoint. My skills with ASP.NET are intermediate, and I have no experience at all w

  • Managing AJAX control loading sequence on a page 2011-06-28

    I think I am experiencing race conditions with an AJAX web application. I am using JQuery 1.4.4 to handle the AJAX requests. I have a menu control/class that the user clicks to display controls for manipulating data. Clicking the menu can display mul

  • MVC How to affect a Layout page from a View Page 2011-07-15

    I'm about to describe a specific problem that we have on our MVC project but one which is similar to other problems that follow the same pattern. I mention this because i want to think about the solution in generic terms that could be applied to many

  • Encoding in mvc 3 metadata 2011-08-08

    I have an issue with encoding in my app. Text in *.cshtml files is fine but text in metadata comes on page in wrong encoding. Globalisation setting in web.config looks like: <globalization enableClientBasedCulture="false" culture="ru-RU" uiCulture

  • How do I retrieve metadata from the Wordpress Media Gallery? 2011-08-11

    In the Wordpress Media Library, when you add a piece of media, you're invited to also add other 'metadata': Title, Caption, Alternate Text, and Description. Using get_the_title() will return the title, but trying get_the_caption() simply breaks the p

  • TYPO3: how to cache just some parts in an extension plugin 2011-11-30

    I have this extension showing some customer data plus an embedded video (MP4). It consists of a cached Plugin, because the data isn't changed, unless someone in the TYPO3-Backend makes changes to it and clears the Cache. We wan't to use the new HTML5

  • Accessing main picture of wikipedia page by API 2011-12-02

    Is there any way I can access the thumbnail picture of any wikipedia page by using an API? I mean the image on the top right side in box. Is there any APIs for that? --------------Solutions------------- http://en.wikipedia.org/w/api.php Look at prop=

  • How to show particular image as thumbnail while implementing share on Facebook? 2009-03-27

    I am trying to implement share this method. I am using the code as follows http://www.facebook.com/share.php?u=my_website_url Now when Facebook is showing it showing some thumbnails at left side. These images are picked from my website. How can I pic

  • Is there any solution to know the similarity of two pdf without detail content compare 2009-03-30

    i want to know the similarity of tow pdf files, but i don't want to do the detail content compare . is there any solution just from its external structure .is it possible ?thanks! --------------Solutions------------- That sounds potentially tough, bu

  • Why Use PHP OOP over Basic Functions and When? 2009-04-04

    There are some posts about this matter, but I didn't clearly get when to use Object Oriented coding and when to use programmatic functions in an include. Somebody also mentioned to me that OOP is very heavy to run, and makes more workload. Is this ri

  • How is data stored in SQL server? 2009-05-14

    How is data stored in SQL server? --------------Solutions------------- This Wikipedia article describes it rather well. Here is a subset of it, relating to Data Storage: [edit] Data storage The main unit of data storage is a database, which is a coll

  • HTML 5 - Early Adoption Where Possible - Good or Bad? 2009-06-19

    This question was inspired a bit by this question, in which the most upvoted answer recommended using a feature from HTML 5. It certainly seemed to be a good method to me, but it made me curious about using features from a future spec in general. HTM

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.728 (s). 13 q(s)