Retrieving Extra Page Atributes

General project discussion. NOT for help questions.
Post Reply
User avatar
goldleader
New Member
New Member
Posts: 8
Joined: Mon Sep 28, 2009 8:22 am

Retrieving Extra Page Atributes

Post 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.
Last edited by goldleader on Wed Sep 30, 2009 11:05 am, edited 1 time in total.
User avatar
goldleader
New Member
New Member
Posts: 8
Joined: Mon Sep 28, 2009 8:22 am

Re: Retrieving Extra Page Atributes

Post 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?))
Last edited by goldleader on Wed Sep 30, 2009 12:29 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Retrieving Extra Page Atributes

Post by RonnyK »

There are default tags, in Extensions -> Tags. IIRC is {page_attr} where you can call the extra1 f.e.....

Ronny
User avatar
goldleader
New Member
New Member
Posts: 8
Joined: Mon Sep 28, 2009 8:22 am

Re: Retrieving Extra Page Atributes

Post by goldleader »

Ok, thankyou. Do you know how I can get that in an XML file with the 'title' from the same page?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Retrieving Extra Page Atributes

Post 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
Post Reply

Return to “General Discussion”