PDA

Shop Support News Archive - Shopbetreiber News -> Forum : Neuer Download.: Imedes - icontentvar Variable Daten innerhalb Content fuer xt eCommerce Templates Module SEO Support: Shop304sp21


SEO-FREAK
07.08.2008, 00:51
<div align="center">http://www.ecombase.de/forum/index.php?automodule=downloads&req=display&code=sst&id=58</div>
File Name: Imedes - icontentvar Variable Daten innerhalb Content für xt-Commerce / xt:Commerce304sp21
File Submitter: SEO (Search Engine Optimizion - Suchmaschinenoptimierung ) seo-FREAK (http://www.ecombase.de/forum/index.php?showuser=10607)
File Submitted: 7 Aug 2008
File Updated: 9 Aug 2008
File Category: Erweiterungen - Module xt:Commerce / xt-Commerce 3.04 - Sp 2.1 (http://www.ecombase.de/forum/index.php?automodule=downloads&showcat=10)

icontentvar Variable Daten innerhalb Content für xt-Commerce / xt:Commerce304sp21

icontentvar
Variable Daten innerhalb Content
für xt-Commerce / xt:Commerce304sp21
------------------------------------------

shop_content.php
------------------------------------------
Finde folgendes:
} else {
$contact_content = $shop_content_data['content_text'];
}

Füge danach ein:
$contact_content = icontentvar_replace( $contact_content ); // icontentvar
------------------------------------------
Finde folgendes:
$smarty->assign('file', ob_get_contents());
Ersetze es durch:
$smarty->assign('file', icontentvar_replace( ob_get_contents()) ); // icontentvar
------------------------------------------
Finde folgendes:
$content_body = $shop_content_data['content_text'];
Ersetze es durch:
$content_body = icontentvar_replace( $shop_content_data['content_text'] ); // icontentvar
------------------------------------------
------------------------------------------
------------------------------------------
includes/application_top.php
------------------------------------------
Finde folgendes:
require (DIR_WS_INCLUDES.'database_tables.php');
Füge danach ein:
require (DIR_WS_MODULES.'icontentvar.php'); // icontentvar
------------------------------------------
------------------------------------------
------------------------------------------
includes/modules/default.php
------------------------------------------
Finde folgendes:
if (strpos($shop_content_data['content_file'], '.txt'))
echo '</pre>';
$shop_content_data['content_text'] = ob_get_contents();
ob_end_clean();
}

Füge danach ein:
$shop_content_data['content_text'] = icontentvar_replace( $shop_content_data['content_text'] ); // icontentvar
------------------------------------------
------------------------------------------
------------------------------------------

icontentvar
Variable Daten innerhalb Content
für xt-Commerce / xt:Commerce304sp21
------------------------------------------

betroffene Dateien:

shop_content.php
includes/application_top.php
includes/modules/default.php


neue Dateien
includes/modules/icontentvar.php

Anwendung
---------
Im Contentmanager können Variablen innerhalb der Texte gesetzt werden welche
bei Ausführung automatisch ersetzt werden.

Produktlink:
Link auf Produktinfoseite

{Pn}
{Pn|Linktext}

n = Produkt-ID
Linktext = freier Linktext, falls nicht angegeben wird der Produktname vewendet

Beispiel:

{P123} = Produktlink auf Produkt mit ID 123 mit Produktname als Linktext
{P123|Dekobild} = Produktlink auf Produkt mit ID 123 mit "Dekobild" als Linktext



Kategoerielink:
Link auf Kategorieseite

{Cn}
{Cn|Linktext}

n = Kategorie-ID
Linktext = freier Linktext, falls nicht angegeben wird der Kategoriename vewendet

Beispiel:

{C4} = Kategorielink auf Kategorie mit ID 4 mit Kategoriename als Linktext
{C4|Kinderknetmasse} = Kategorielink auf Kategorie mit ID 4mit "Kinderknetmasse" als Linktext


Neue Produkte:
Link auf Seite 'whats_new'

{N|Linktext}

Linktext = freier Linktext

Beispiel:

{N|Neue Produkte} = Link auf whats_new.php mit "Neue Produkte" als Linktext



Sonderangebote:
Link auf Seite 'specials'

{SP|Linktext}

Linktext = freier Linktext

Beispiel:

{SP|Sonderangebote} = Link auf specials.php mit "Sonderangebote" als Linktext

Click here to download this file (http://www.ecombase.de/forum/index.php?automodule=downloads&showfile=58)