hallo nochmal,
..habe zu meinem 'datum im block mit php auslesen'-Problem (http://forum.webedition.de/showthread.php?t=10975) inzwischen einen weiteren vielversprechenden Ansatz: ich lese alle datum-felder vor dem Block in einen Array (was auch prima klappt) und will diesen dann im Block wieder auslesen - was leider nicht klappt..
vor dem block:
<?PHP
$vondatumarray = array();
$block = unserialize($we_doc->getElement("absatz"));
for($i = 0; $i < sizeof($block); $i++)
{
$nr = $block[$i];
$vondatum = (int) $GLOBALS['we_doc']->getElement("vondatumblk_absatz_".$nr, "dat");
$vondatumarray[$nr] = $vondatum;
}
?>
..und dann::
<we:block name="absatz" showselect="false">
<?php
global $vondatumarray;
for ($i=0;$i<count($vondatumarray);$i++) {
echo ("-".$vondatumarray[$i]." ");
}
?>
</we:block>
..der Array hat zB bei 3 Block-Einträgen auch genau 3 Elemente, die dann im Block leider leer sind. Was mache ich nur falsch..?!
danke! gruesse! till.
Array an Block übergeben (klappt leider nicht)
Fragen zum Erstellen von Templates für webEdition.
Array an Block übergeben (klappt leider nicht)
Beitragvon tillintallin » So 2. Jul 2006, 23:19
Zurück zu „webEdition Templates erstellen (we:Tags)“
Gehe zu
- Deutschsprachiges Supportforum
- ↳ webEdition Installation & Update
- ↳ webEdition Administrationsoberfläche
- ↳ Basisversion
- ↳ Backup und Serverumzug
- ↳ webEdition Module
- ↳ Banner-/Statistik Modul
- ↳ Benutzerverwaltung
- ↳ DB-/Objektmodul
- ↳ Editor PlugIn
- ↳ Export Modul
- ↳ Import- /Exportfunktionen
- ↳ Kundenverwaltung
- ↳ Navigations Modul
- ↳ Newsletter Modul
- ↳ Scheduler
- ↳ Shop Modul
- ↳ ToDo / Messaging Modul
- ↳ Voting Modul
- ↳ Workflow Modul
- ↳ Weitere Validierungsdienste
- ↳ webEdition Templates erstellen (we:Tags)
- ↳ webEdition Development Center
- ↳ Hooks
- ↳ Patches, Bugs und Contributions
- ↳ SDK
- ↳ Collaborations
- ↳ Web-Technik
- ↳ (X)HTML
- ↳ CSS
- ↳ JavaScript
- ↳ PHP
- ↳ webEdition und Suchmaschinen
- ↳ Off-Topic & Smalltalk
- ↳ webEdition Open Source
- ↳ Contributions
- ↳ Organisation der Community
- ↳ Community-Treffen
- ↳ Vereinsgründung
- ↳ Webseiten
- ↳ webEdition Feature Requests
- ↳ Stellenmarkt (webEdition only!)
- ↳ Anleitungen / Tutorials
- English Support Forum
- ↳ webEdition Basic Version
- ↳ Installation and update
- ↳ Creating templates
- ↳ (X)HTML and CSS
- ↳ JavaScript
- ↳ webEdition Modules
- ↳ Banner Module
- ↳ User Management
- ↳ Newsletter Module
- ↳ Scheduler
- ↳ Shop Module
- ↳ ToDo / Messaging Module
- ↳ Workflow Module
- ↳ Customer Management
- ↳ DB / Object Module
- ↳ webEdition Development Center
- ↳ SDK
- ↳ Patches, Bugs and Contributions
- ↳ Off-Topic & Smalltalk
Wer ist online?
Mitglieder in diesem Forum: Bing [Bot] und 17 Gäste