|
|||
|
Hallo,
Ich m?chte eine neue Contentbox erstellen, hab folgendes gemacht: habe mit PhpMyAdmin ein neuer Bereich "Content1" angelegt, so wie Content und Informationen in der Administration unter Content Manager. Code:
# Table structure for table `cm_file_flags` # CREATE TABLE cm_file_flags ( file_flag int(11) NOT NULL default '0', file_flag_name varchar(32) NOT NULL default '', PRIMARY KEY (file_flag) ) TYPE=MyISAM; # # Dumping data for table `cm_file_flags` # INSERT INTO cm_file_flags (file_flag, file_flag_name) VALUES (0, 'information'); INSERT INTO cm_file_flags (file_flag, file_flag_name) VALUES (1, 'content'); INSERT INTO cm_file_flags (file_flag, file_flag_name) VALUES (2, 'content1'); Code:
{$box_CONTENT1}
Dann in boxes.php folgendes hinzugef?gt Code:
require(DIR_WS_BOXES . 'content1.php'); Trotzallem wird die neue Contentbox im Shop nicht angezeigt, was habe ich vergessen? Es muss doch irgendwo eine Definition von Smarty-Tag definiert werden {$box_CONTENT1}=box_content1.html oder so was ?nhliches, oder verstehe ich das falsch? danke |
|
||||
|
die definition des smarty tags ist doch in der php datei der box. poste mal deren code.
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
|||
|
hier ist sie ..
Code:
<?php /* ----------------------------------------------------------------------------------------- $Id: content1.php,v 1.2 2004/02/17 16:20:07 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(information.php,v 1.6 2003/02/10); www.oscommerce.com (c) 2003 nextcommerce (content.php,v 1.2 2003/08/21); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ $box_smarty = new smarty; $box_smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/'); $content_string=''; $content_query=xtc_db_query("SELECT content_id, categories_id, parent_id, content_title, content_group FROM ".TABLE_CONTENT_MANAGER." WHERE languages_id='".(int)$_SESSION['languages_id']."' and file_flag=2 and content_status=2"); while ($content_data=xtc_db_fetch_array($content_query)) { $content_string .= '<img src="templates/' . CURRENT_TEMPLATE . '/img/010.gif"><a href="' . xtc_href_link(FILENAME_CONTENT,'coID='.$content_data['content_group']) . '">' . $content_data['content_title'] . '</a><br>'; } if ($content_string!='') { $box_smarty->assign('BOX_CONTENT', $content_string); $box_smarty->assign('language', $_SESSION['language']); // set cache ID if (USE_CACHE=='false') { $box_smarty->caching = 0; $box_content1= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_content1.html'); } else { $box_smarty->caching = 1; $box_smarty->cache_lifetime=CACHE_LIFETIME; $box_smarty->cache_modified_check=CACHE_CHECK; $cache_id = $_SESSION['language']; $box_content1= $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_content1.html',$cache_id); } $smarty->assign('box_CONTENT1',$box_content1); } ?> |
|
||||
|
status = 2 ?
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
||||
|
bis auf den status kann ich auf die schnelle keinen fehler finden, sofern auch im content manager der flag 2 was zugewiesen wurde, sollte es auch ne anzeige geben.
enifach nochmals checken
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
![]() |
| Lesezeichen |
| Stichworte |
| content, contentbereich, manager |
| Themen-Optionen | |
| Ansicht | |
|
|