Export content into php variables for Flash integration
Export content into php variables for Flash integration
Hello
For a Flash application, I wish to know how I can access to the container of a article via a php file to export a certain article, category, client and language and stor this into 2 variables (in my case CMS_CONTAINER[1] and CMS_CONTAINER[2] = $title and $content_text)?
Is that possible. I don't worki it out with this template system and container.
Could you help me?
I use Contenido 4.4.4 and the web site )in fact the article I wish to use) are:
-> http://younggods.com/cms/front_content.php?idcat=26
A lot of thanks for your time and help.
Regards, Dominique
For a Flash application, I wish to know how I can access to the container of a article via a php file to export a certain article, category, client and language and stor this into 2 variables (in my case CMS_CONTAINER[1] and CMS_CONTAINER[2] = $title and $content_text)?
Is that possible. I don't worki it out with this template system and container.
Could you help me?
I use Contenido 4.4.4 and the web site )in fact the article I wish to use) are:
-> http://younggods.com/cms/front_content.php?idcat=26
A lot of thanks for your time and help.
Regards, Dominique
if it is so simple ?? which data format ? xml ? flashvars ? maybe via get parameters ?
take a look:
-> http://www.cms-xtras.de
there you'll find two modules which might fulfill your needs...
take a look:
-> http://www.cms-xtras.de
there you'll find two modules which might fulfill your needs...
*** make your own tools (wishlist :: thx)
Thanks but doesn't work for me:
http://www.metadelic.com/cms/cmsx.conte ... textonly=1
Message:
But it's work:
http://www.metadelic.com/cms/front_cont ... 2&idart=42
?...
Regards, Dom
http://www.metadelic.com/cms/cmsx.conte ... textonly=1
Message:
Code: Alles auswählen
An invalid character was found in text content. Error processing resource
http://www.metadelic.com/cms/front_cont ... 2&idart=42
?...
Regards, Dom
Hi,
THX for your mention, emergence.
This ist not a Bug - its an IE - Problem
But thereby René fixed an other incompatibility in our programming. Take a look at this:
http://www.cms-xtras.de/phpBB2/viewforum.php?f=2
Greetz,
Thomas
THX for your mention, emergence.
This ist not a Bug - its an IE - Problem

But thereby René fixed an other incompatibility in our programming. Take a look at this:
http://www.cms-xtras.de/phpBB2/viewforum.php?f=2
Greetz,
Thomas
Thomas
ich werd mal auf deutsch antworten wenn du nichts dagegen hast...
hab mir jetzt mal den output des xml files genauer angesehen...
-> http://www.metadelic.com/cms/cmsx.conte ... textonly=1
die erste fehlermeldung im explorer
der explorer bemängelt das copyright zeichen... -> ASCII 169
ähm ne anmerkung bei xml files sollte das encoding zu beginn mit angegeben werden...
anstelle von
sollte zu beginn zb:
stehen...
abhängig vom sprach encoding das in contenido definiert ist...
dann ist mal die erste fehlermeldung weg...
na gut mit dieser korrektur erhält man dann den hinweis das ein (ige ?) xml elemente nicht korrekt geschlossen sind...
da wird zwar ein <object> tag aufgemacht aber nicht mehr geschlossen...
(bei zeile 270 wird der tag geschlossen -> der explorer bemängelt da aber das der tag nicht offen ist...)
wenn ich den tag dann ergänze zeigt es mir die xml datei (halbwegs) ohne probleme an...
der zweite fehler ist ziemlich sicher ein bug im script...
na ja wie auch immer
ich hab jetzt aber keine ahnung ob das etwas mit dem ursprünglichen problem zu tun hat....
bzw.
ob du diese info hilfreich findest...
der ie hat zwar seine macken aber die fehlermeldungen die der parser rauswirft sind an sich korrekt... somit bin ich der meinung das es diesmal kein bug des explorers ist (ganz was seltenes)
lg
hab mir jetzt mal den output des xml files genauer angesehen...
-> http://www.metadelic.com/cms/cmsx.conte ... textonly=1
die erste fehlermeldung im explorer
Code: Alles auswählen
Im Textinhalt wurde ein ungültiges Zeichen gefunden. Fehler beim Bearbeiten der Ressource 'file:///F:/test.xml'. Zeile 9, Position 4
::
ähm ne anmerkung bei xml files sollte das encoding zu beginn mit angegeben werden...
anstelle von
Code: Alles auswählen
<?xml version="1.0"?>
Code: Alles auswählen
<?xml version="1.0" encoding="ISO-8859-1"?>
abhängig vom sprach encoding das in contenido definiert ist...
dann ist mal die erste fehlermeldung weg...
na gut mit dieser korrektur erhält man dann den hinweis das ein (ige ?) xml elemente nicht korrekt geschlossen sind...
Code: Alles auswählen
Das Endtag 'item' stimmt nicht mit dem Starttag 'object' überein. Fehler beim Bearbeiten der Ressource 'file:///F:/test.xml'. Zeile 82, Position 5
</item>
----^
(bei zeile 270 wird der tag geschlossen -> der explorer bemängelt da aber das der tag nicht offen ist...)
wenn ich den tag dann ergänze zeigt es mir die xml datei (halbwegs) ohne probleme an...
der zweite fehler ist ziemlich sicher ein bug im script...
na ja wie auch immer
ich hab jetzt aber keine ahnung ob das etwas mit dem ursprünglichen problem zu tun hat....
bzw.
ob du diese info hilfreich findest...
der ie hat zwar seine macken aber die fehlermeldungen die der parser rauswirft sind an sich korrekt... somit bin ich der meinung das es diesmal kein bug des explorers ist (ganz was seltenes)

lg
*** make your own tools (wishlist :: thx)
noch was hab ich da gefunden
wenn innerhalb des textes irgendwo ein text wie < - > vorkommt gibt es auch ne fehlermeldung im explorer...
vielleicht sollte die einzelnen werte via htmlspecialchars kodiert werden...
nur so als vorschlag..
wenn innerhalb des textes irgendwo ein text wie < - > vorkommt gibt es auch ne fehlermeldung im explorer...
vielleicht sollte die einzelnen werte via htmlspecialchars kodiert werden...
nur so als vorschlag..
*** make your own tools (wishlist :: thx)
<Deutsch>
Danke für den Hinweis, ich werd es mir nochmal genau ansehen!
Der Encoding-Fehler dürfte für Flash kein Problem darstellen, denn hier muss der Programmierer selbst den Code parsen (ich werd's aber trotzdem erweitern).
Der <object> Tag wird tatsächlich zu spät geschlossen.
Da ich wegen andere Fehler eine Kopie der Datenbank habe kann ich diesen Fehler auf den Grund gehen.
Mehr hierzu im Laufe der nächsten Woche.
</Deutsch>
<English>
Thanks a lot for showing me this misbehavior!
The encoding error won't be of a problem in Flash, because in Flash the programmer must pars the XML code himself (but I will correct this).
The <object> tag is being closed to late, you're right.
As I do have a copy of the database in question I can track down this error.
More info on this will be posted within the next week.
</English>
Gruß / Kind regards
René
Danke für den Hinweis, ich werd es mir nochmal genau ansehen!
Der Encoding-Fehler dürfte für Flash kein Problem darstellen, denn hier muss der Programmierer selbst den Code parsen (ich werd's aber trotzdem erweitern).
Der <object> Tag wird tatsächlich zu spät geschlossen.
Da ich wegen andere Fehler eine Kopie der Datenbank habe kann ich diesen Fehler auf den Grund gehen.
Mehr hierzu im Laufe der nächsten Woche.
</Deutsch>
<English>
Thanks a lot for showing me this misbehavior!
The encoding error won't be of a problem in Flash, because in Flash the programmer must pars the XML code himself (but I will correct this).
The <object> tag is being closed to late, you're right.
As I do have a copy of the database in question I can track down this error.
More info on this will be posted within the next week.
</English>
Gruß / Kind regards
René