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   922 Views

Avatar
DanStephenson

Community Member, 115 Posts

8 May 2009 at 6:26am

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

Community Member, 215 Posts

8 May 2009 at 1:46pm

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

Avatar
DanStephenson

Community Member, 115 Posts

8 May 2009 at 8:11pm

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

Forum Moderator, 5513 Posts

8 May 2009 at 8:51pm

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