EntelekiaLearning / Website

1 stars 0 forks source link

Set Project Name as a Variable #2

Open timothyfcook opened 9 years ago

timothyfcook commented 9 years ago

So that the project is truly whitelabel (and to allow us to change the name as needed for local uses like "Learn.Pgh"), we should reference a variable whenever we use the name of the project in the source code.

e.g.

Instead of

The Entelekia project is a platform for finding the best learning resource on every subject

We could setup a project_name variable and use document.getElementById( ).innerHTML to insert it whenever it's being written.

<p>The <span id="project_name"></span> project is a platform for finding the best learning resource...</p>

This will enable anyone to change the name of the site really easily in the future by just changing the value of the variable.

MatthewVita commented 9 years ago

okay, this will be implemented once we start building out the features via a global configuration value. conf.APP_NAME = 'App name here'