Flash XML Question
13 posts by 4 authors in: Forums > CMS Builder
Last Post: July 8, 2009 (RSS)
By greatjakes - June 22, 2009
I have a flash element setup with xml. I noticed that XML stops working when I have the field setup in CMS Builder as a WYSIWYG editor. It displays "undefined". Does it only work with text field?
Thanks
Re: [greatjakes] Flash XML Question
By Toledoh - June 22, 2009
Tim (toledoh.com.au)
Re: [greatjakes] Flash XML Question
By Damon - June 23, 2009
Characters that aren't encoded can mess up an XML feed.
Make sure you are using the "htmlspecialchars" function to encode html entities:
<?php echo htmlspecialchars($record['summary']); ?>
Also, take a look at the results for your page using the W3C Feed Validation Service here:
http://validator.w3.org/feed/check.cgi
This will help identify exactly where in your code the issue is.
Hope that helps.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Damon] Flash XML Question
By greatjakes - June 23, 2009
[font "Verdana"]Reason I'm using the WYSIWYG editor field is because I want the ability to style the text. Most importantly, I want to be able to link certain words and have the link appear underlined.
When I view the page, it displays the content but doesn't display the styles applied throught the WYSIWYG field. Am I doing something wrong or does the style function not work for flash content?
Thanks!
Re: [greatjakes] Flash XML Question
By ross - June 23, 2009
Glad it's all coming together :).
My first thought on this styling issue is that the page you are working on isn't actually linked to the same stylesheet as your WYSIWYG.
Could you double check that? The WYSIWYG editor style sheet should be here:
/cmsAdmin/css/wysiwyg.css
Have a look and let me know :).
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Re: [ross] Flash XML Question
By greatjakes - June 30, 2009
<?php header('Content-type: application/xml; charset=utf-8'); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<?php
require_once "D:/Inetpub/irvingplacecapital/cmsAdmin/lib/viewer_functions.php";
list($homenewsRecords, $homenewsMetaData) = getRecords(array(
'tableName' => 'homenews',
));
?>
<menu>
<?php foreach ($homenews as $record): ?>
<menu text='<?php echo $record['title'] ?>' url='<?php echo $record['url] ?>'></menu>
<?php endforeach; ?>
</menu>
thanks.
Re: [greatjakes] Flash XML Question
By ross - July 3, 2009
Thanks for posting!
I think what you'll want to do first is change the name of that file to:
whatever.xml.php
That should get the PHP parts running. Then, you'll likely need to update the flash file so it loads that new page instead of the default .xml page.
Give that a shot and let me know how you make out :).
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Re: [ross] Flash XML Question
By greatjakes - July 6, 2009
I have the page saved as menu.xml.php and flash is set to load the right file. However, it's still not loading the file. I've attached the file in case you want to take a look.
Thanks again for all your help.
Re: [greatjakes] Flash XML Question
By ross - July 6, 2009
Thanks for the update!
There aren't any attachments on the post though :). What I am thinking for the time being would be to just focus on menu.xml.php
What happens when you run that? That would is just a basic viewer page now with XML tags instead of HTML tags. You'll want to start the troubleshooting process with this page.
Let me know :).
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Re: [ross] Flash XML Question
By greatjakes - July 6, 2009
When I run the file it displays a blank page - http://208.106.227.225/menu.xml.php
I have the flash implemented on this page - http://208.106.227.225
Where it says "dummy text" is where the data is suppose to load.
thanks.