Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-16 17:41:37

osmanjaro
Member
Registered: 2005-09-02
Posts: 10

txp as flash cms

On a redesign of a home page, I was looking to add some flash.
I looked at ‘flash xhtml injection’ and flat xml files.
Then I saw the txp powered http://www.cheeziespizza.net/ and found the creators (Jon Swift) post on a txp forum :

“..
If I need a page called “Foo”, I create a section called foo and then post a single article also called foo to that section.
I set up a custom page to output my full xhtml code using if_article_list, and my simple flash-friendly version with if_individual_article.
The xhtml version of my page is then found at mydomain.com/foo.
..”

Create a section and page. Load the url of the page in flash.

eg:
<body>
<txp:article />
</body>

Am I missing something?
The swf is loading the xml fine.
Does this not mean people can use any cms to feed flash?
I could see this behind a parralel flash site?
Why is this not common knowledge… Any old cms can feed flash so easily.

Here’s the thing I’m working on:
http://cineaqua.com/?s=test
swf loading this:
http://cineaqua.com/?s=x_film

Offline

#2 2007-03-16 18:35:02

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: txp as flash cms

You’re not sending it an xml file.
You’re sending a standard html file.

At visicswire, we use the RSS/Atom feeds that textpattern can output to power our Flash widget’s content. Then you just connect to the textpattern section like this:

http://cineaqua.com/atom/?section=x_film…..but right now you don’t have any articles in that section. You might try adding some.

If you just want to use the XHTML page template ast he only content source, you should connect to this: http://cineaqua.com/?s=x_film

Then put this in the page:

<?xml version="1.0" encoding="ISO-8859-1"?>

<links>
	<![CDATA[Put yer <a href="http://walkerhamilton.com">HTML Content</a> here.
]]>
</links>

Then load the file using Flash’s XML actions and output the content of the <links> tag to your canvas.

Offline

#3 2007-03-16 21:13:04

osmanjaro
Member
Registered: 2005-09-02
Posts: 10

Re: txp as flash cms

It came as quite a surprise to see flash just use it as xml even though I’ve cheated it.
Is there something wrong with the way it is currently?
I agree that the content is served as html, not as true xml, but it works.
Should I be using rss or atom?
What are the benefits when it functions as is?

Offline

#4 2007-03-16 21:31:33

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: txp as flash cms

I like being able to serve and use it as either rss or atom (it doesn’t matter which you use) because then you can iterate through items (articles)….like providing a scroller or a back-forth/next-prev action.

Offline

#5 2007-03-16 22:47:18

osmanjaro
Member
Registered: 2005-09-02
Posts: 10

Re: txp as flash cms

Using the valid xml feed is the correct thing to do I suppose.
Feedvalidator does not like the text/html serving.
This plugin could do the trick.

I was thinking of 2 excerpts in each swf.
Scrolling through articles? I love it, but how to make the articles appear in the feed?
I have all the syndicate radio buttons on in content > sections.
There is only one test article in the x_film and x_learn sections for now.

If this txp xml > swf works, I think it will change the way I make sites.

Offline

#6 2007-03-28 14:19:11

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: txp as flash cms

Hey, osmanjaro, I can show you a demo of how we’re using txp as a flash CMS:

http://visicswire.com/designers
http://visicswire.com/developers
http://visicswire.com/businesses

We load all of that stuff in via the “Links” RSS feed.

Offline

#7 2007-04-10 17:35:21

osmanjaro
Member
Registered: 2005-09-02
Posts: 10

Re: txp as flash cms

Hi, I see you are a team with proper php and mysql skills.
Your page loads normally while mine loads 4 url’s.
this will change

I’m fudging it within my limitations but it seems to work so far for me.
You say “output the content of the <links> tag to your canvas”…. I can’t do that.
We will hire an action script freelancer to make the text into movieclips and work with the elements in flash. Maybe then can this be workable.

I think some able person should write a tutorial on using textpattern as a cms for flash.
It would benefit a lot of people.
I’d be happy to help with what I’ve learned so far.

Offline

#8 2007-04-10 18:01:41

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: txp as flash cms

Wow. Looks nice, though!
Fun, dark/bright, and pleasing to use and click through (so far…without all the content and such in)

Offline

#9 2007-04-10 18:58:15

osmanjaro
Member
Registered: 2005-09-02
Posts: 10

Re: txp as flash cms

Thanks, its photoshop crazy version 2.
I can’t wait to start animating this shit in flash… after doing the nice no-flash alternative.

The actionscript you’d use to put the xml on to the canvas is probably dependant on your xml structure.
It would be good to have the swf do a search through the same document and display whatever is in its SWFObject alt content div. The job is getting bigger I think.

Offline

Board footer

Powered by FluxBB