« Return to Thread: Global Application Name

Re: Global Application Name

by Richard East :: Rate this Message:

Reply to Author | View in Thread

Sorry, I added a typo when calling the constant. I should have wrote this:
#viewState.GetValue("siteDetails").siteName#



On 11/28/06, Richard East <richard.east@...> wrote:

> I don't know if this is best practice, but in ColdSpring.xml I have a
> siteDetails bean:
>
>  <!-- Site Constants -->
> <bean id="siteDetails" class="ModelGlue.Bean.CommonBeans.SimpleConfig">
> <property name="config">
> <!-- In Coldspring, a "map" represents a struct -->
>        <map>
> <entry key="favicon"><value>favicon.ico</value></entry>
> <entry key="siteName"><value>MySite</value></entry>
> <entry key="siteStyleSheet"><value>/css/v3/eurstart.css</value></entry>
> etc...
>
> In any of your views you can call it like:
> #viewState.GetValue("siteDetails").siteNamer#
>
> I have a similar xe bean in ColdSpring.xml for all my exit points.
>
> I hope this helps.
>
> Regards,
>
> Richard
>
> On 11/28/06, Bryan S <bryansgroups@...> wrote:
> > This is a best practices question. I want to be able to set my Application
> > Display Name one place and reference it whereever I want.
> > application.applicationname seems completely wrong from an object oriented
> > stand point yet I haven't been able to find any reference to a differenct
> > technique anywhere and there isn't a model glue variable for it that I'm
> > aware.
> >
> > How do you handle this?
> >
>
>
>

--^----------------------------------------------------------------
This email was sent to: lists@...

EASY UNSUBSCRIBE click here: http://topica.com/u/?b1drHn.bSZygJ.bGlzdHNA
Or send an email to: modelglue-unsubscribe@...

For Topica's complete suite of email marketing solutions visit:
http://www.topica.com/?p=TEXFOOTER
--^----------------------------------------------------------------

 « Return to Thread: Global Application Name