Page 1 of 1

Retrieving Extra Page Atributes

Posted: Wed Sep 30, 2009 11:04 am
by goldleader
Hello, recently set up CMSMS with my small site to make things easier to update. Think it's great.

I am currently wanting to get a flash swf to comunicate with my site using this method here http://www.kirupa.com/developer/actions ... _mysql.htm

TO be more specific, I have set up youtube api in my swf and want it to get a certain video id depending on which page it is on (the swf will be embeded in my template). I was thinking I could use the extra atribute tags to do this...but that's where I start getting in over my head.

So my question is, where does the extra page atribute apear in the code? So I can go and get it with my flash file.

Re: Retrieving Extra Page Atributes

Posted: Wed Sep 30, 2009 12:10 pm
by goldleader
Ok after reading into more into it ( :-\ bear with me) I can see that doesn't make much sense.

From what I can gather, since I don't want this info visible on my site rather than printing to a tag in the template i want to be printing the values I retrieve from the database onto a xml file, which my flash file can then read.

I will make a javascript function so flash can determine the page title of the page it's currently embeded. From that it will be able to determine which "extra page atribute" is relevant.

So I need to know how I can print the values of the extra atribute field and the page title it's associated with to an xml file. So my swf can read them and compare it with the page title it's gathered, in order to determine the correct value.

:o

Can anyone help?

(edit: I gather global $gCms; is used to get acces to the database, as aposed to $link = mysql_connect(user, pass..etc., correct?))

Re: Retrieving Extra Page Atributes

Posted: Wed Sep 30, 2009 2:18 pm
by RonnyK
There are default tags, in Extensions -> Tags. IIRC is {page_attr} where you can call the extra1 f.e.....

Ronny

Re: Retrieving Extra Page Atributes

Posted: Wed Sep 30, 2009 3:26 pm
by goldleader
Ok, thankyou. Do you know how I can get that in an XML file with the 'title' from the same page?

Re: Retrieving Extra Page Atributes

Posted: Wed Sep 30, 2009 5:47 pm
by RonnyK
You call the xml page in a template, or page attached to a template...?

In that template you can set {title} which already shows the pages title...

Ronny