Hi, Sorry being a newbie here.
Managed to create the class and add the property, myvar. However, how can I set the default value? Also, how can I reference the myvar my other page after adding the object into the page? If I change this default value, am I right of thinking all the references in all pages will change? Its not like pages have an instance of the class so they are different copies. Cheers, Tiago Rinck Caveden wrote: > > You may use objects on a page. > Create a class as you want, and add an object of that class to some page. > Then you use the same object always. > > On Thu, Aug 28, 2008 at 3:29 PM, Art Yeung <[EMAIL PROTECTED]> > wrote: > >> >> Hi, >> >> We can do things like this in pages. >> #set( $myvar = ["123"] ) >> >> If I want to make a global variable that share across the entire wiki >> (XE), >> where can i set that pls? >> >> Thanks >> Art >> -- >> View this message in context: >> http://n2.nabble.com/Global-Variable--tp789520p789520.html >> Sent from the XWiki- Dev mailing list archive at Nabble.com. >> >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs >> > > > > -- > Tiago Rinck Caveden > http://caveden.multiply.com > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > > -- View this message in context: http://n2.nabble.com/Global-Variable--tp789520p834160.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

