Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

Same Variables, Many Pages


Reply

4 Posts   901 Views

Avatar
DanStephenson

8 May 2009 at 6:26am Community Member, 115 Posts

Hi All,

I am creating a variable that I want to be able to use across many different pages on the site. How can I achieve this?

Avatar
Howard

8 May 2009 at 1:46pm Community Member, 215 Posts

Just add the variable to Page.php as all the pages use this or expand on it :)

Avatar
DanStephenson

8 May 2009 at 8:11pm Community Member, 115 Posts

Sorry, when I said variable, I mean Database field. If I say create some content (HTMLText and an uploaded Image) on HomePage.ss, and I want to reuse it on SalePage.ss without retyping it

Avatar
Willr

8 May 2009 at 8:51pm Forum Moderator, 5511 Posts

<% control Page(home) %>
$DBFieldName
<% end_control %>