yakamara / yconverter

👨🏻‍🍳 YConverter - REDAXO Addon
25 stars 7 forks source link

SEO42 in YRewrite-Syntax #39

Closed alxndr-w closed 5 years ago

alxndr-w commented 5 years ago

Für Metadaten und ggf. auch CSS/JS auskommentieren, damit nicht gleich ein Whoops entsteht.

tbaddade commented 5 years ago

Kannst du das genauer erklären? Mit Praxisbsp. am besten.

skerbis commented 5 years ago

Auszug aus der Doku:

<!DOCTYPE html>

<html lang="<?php echo seo42::getLangCode(); ?>">
<head>
    <meta charset="utf-8" />
    <base href="<?php echo seo42::getBaseUrl(); ?>" />
    <title><?php echo seo42::getTitle(); ?></title>
    <meta name="description" content="<?php echo seo42::getDescription(); ?>" />
    <meta name="keywords" content="<?php echo seo42::getKeywords(); ?>" />
    <meta name="robots" content="<?php echo seo42::getRobotRules();?>" />
    <link rel="stylesheet" href="<?php echo seo42::getCSSFile("default.css"); ?>" type="text/css" media="screen,print" />
    <link rel="stylesheet" href="<?php echo seo42::getCSSFile("print.css"); ?>" type="text/css" media="print" />
    <link rel="shortcut icon" href="<?php echo seo42::getImageFile("favicon.ico"); ?>" type="image/x-icon" />
    <link rel="canonical" href="<?php echo seo42::getCanonicalUrl(); ?>" />
    <?php echo seo42::getLangTags(); ?>
</head>

<body>
<div id="container">
    <div id="link"><a href="<?php echo rex_getUrl(1); ?>">Link zur Startseite</a></div>
    <div id="media"><img src="<?php echo seo42::getMediaFile("logo.png"); ?>" alt="" /></div>
    <div id="imagetype"><img src="<?php echo seo42::getImageManagerFile("pic.png", "my_img_type"); ?>" alt="" /></div>
    <div id="mainmenu"><?php $mainNav = new nav42(); echo $mainNav->getNavigationByLevel(0); ?></div>
    <div id="submenu"><?php $subNav = new nav42(); echo $subNav->getNavigationByLevel(1); ?></div>
    <div id="content"><?php echo $this->getArticle(); ?></div>
    <div id="footer"><?php $footerNav = new nav42(); echo $footerNav->getNavigationByCategory(42); ?></div>
</div>
<script type="text/javascript" src="<?php echo seo42::getJSFile("jquery.min.js"); ?>"></script>
<script type="text/javascript" src="<?php echo seo42::getJSFile("init.js"); ?>"></script>
</body>
</html>
skerbis commented 5 years ago

Da es aber noch zig andere Sachen wie die Navi und mehr gibt. Wird es schwierig. So dass es hier mehr zerstört als hilfreich ist. Ohne Whoops merkt man evtl. garnicht, dass sich irgendwo Code versteckt, der geändert werden muss. Oder man rätselt, warum die eine oder andere Sache nicht funktioniert. Ich würde hier nichts machen. Wer alle Möglichkeiten von SEO42 ausgeschöpft hat, kommt an einen Neuaufbau der Templates nicht vorbei.

tbaddade commented 5 years ago

Ich würde hier nichts machen.

Ich habe keine Erfahrung mit seo42 und denke das skerbis es gut zusammengefasst hat