Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 27

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > International > German - Deutsch > Mambo 4.5 Allgemein

Reply
 
LinkBack Thread Tools Display Modes
Old 28.09.2004, 11:32   #1 (permalink)
Mamber
 
Join Date: Apr 2004
Posts: 50
Tekknotrip is on a distinguished road
Default Im Mambo 1.0.2 <title> Tag mit Artikelüberschrift

Hallo Leute,
mein Pronblem ist, dass ich derzeit mit einer alten Mambo Version vorlieb nehmen muss. Dort ist es allerdings noch so, dass im <title></title> Tag nur der Seitenname drinnsteht, nicht aber zusätzlich oder nur die Überschrift des geschriebenen Artikels.

Habe nun einige Foren durchsucht, aber leider nichts dazu gefunden :-(
...denke aber irgendwo in der content.html.php mit $row->title
....nur wie bekomme ich diese ins Template?

Danke für Hilfe
Tekknotrip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 28.09.2004, 13:50   #2 (permalink)
Mamber
 
Funky Dragon's Avatar
 
Join Date: Apr 2004
Location: Hamburg / Germany
Posts: 65
Funky Dragon is on a distinguished road
Default Re: Im Mambo 1.0.2 <title> Tag mit Artikelüberschrift

Quote:
Originally Posted by Tekknotrip
Hallo Leute,
mein Pronblem ist, dass ich derzeit mit einer alten Mambo Version vorlieb nehmen muss. Dort ist es allerdings noch so, dass im <title></title> Tag nur der Seitenname drinnsteht, nicht aber zusätzlich oder nur die Überschrift des geschriebenen Artikels.
Das geht mit einem zusätzlichen Script:
Code:
<?php
// titledata.php
/**
// Based on metadata.php
* @package Mambo Open Source
* @Copyright (C) 2000 - 2003 Miro International Pty Ltd
* @ All rights reserved
* @ Mambo Open Source is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
**/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

function showTitle( &$database, $option) {

  $task = mosGetParam( $_REQUEST, 'task', 0);
  $pageTitle = '';

  if ($option == 'content') {
    $id = mosGetParam( $_REQUEST, 'id', 0 );
    if ($id) {
      switch ($task) {
        case "view":
          $row = new mosContent( $database );
          $row->load( $id );
          $pageTitle = $row->title_alias;
          if($pageTitle == '') {
            $pageTitle = $row->title;
          }
          break;
        case "category":
        case "blogcategory":
        case "archivecategory":
          $row = new mosCategory( $database );
          $row->load( $id );
          $pageTitle = $row->title;
          break;
        case "section":
        case "blogsection":
        case "archivesection":
          $row = new mosSection( $database );
          $row->load( $id );
          $pageTitle = $row->title;
          break;
        default:
          break;
      }
    }
  }else {
    $id = mosGetParam( $_REQUEST, 'Itemid', 0 );
    if ($id) {
         $row = new mosMenu( $database );
         $row->load( $id );
         $pageTitle = $row->name;
      }
   }
  echo $pageTitle;
}
showTitle( $database, $option );
?>
Scripts als "titledata.php benennen und ins "includes" Verzeichnis sichern.
Jetzt noch im Template, dort wwo der Title ausgelesen wird folgendes einfügen
Code:
<TITLE><?php echo $mosConfig_sitename; ?>-<?php include ("includes/titledata.php"); ?></TITLE>
Jetzt wwird der Page-Title zusätzlich zum Site-Title angezeigt.

Ciao
Vitti
__________________
_____________________________________________
if you dont like my apple - why do you shake my tree?
Funky Dragon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.09.2004, 14:29   #3 (permalink)
Mamber
 
Join Date: Apr 2004
Posts: 50
Tekknotrip is on a distinguished road
Default Re: Im Mambo 1.0.2 <title> Tag mit Artikelüberschrift

Wow,
danke Dir vielmals,
es futzt!
Tekknotrip is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best methods for managing multiple Mambo installs. coling Mambo 4.5 'How Do I' Questions 7 14.12.2005 10:20
Propleme mit Mambo 4.51 pentiumforever Mambo 4.5 Allgemein 10 26.09.2004 17:18
MOS no more - Mambo for sure ;) idigital Community Announcements 16 25.07.2004 06:14
URL im gleichen Fenster mit Mambo eLCapitan Mambo 4.5 Allgemein 3 15.05.2004 20:13
2 homepages mit 1 mambo digismo Installation 5 24.04.2004 17:56


All times are GMT +2. The time now is 18:38.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.