GoLightly

Default Changing the layout of content pages (changing template)

  #1  
Old May 2nd, 2009, 10:00 AM
Dale John M.'s Avatar
Dale John M. Dale John M. is offline
Administrator
 
Join Date: Oct 2006
Posts: 82
Dale John M. is on a distinguished road
This entry tells you how you can add content pages to your community, and change those content pages to use different page layout templates. Please note that this is considered an advanced feature, and should not be attempted unless you feel comfortable with all of the steps.

First some definitions:
  • Parent Page. This is a page that has its own web address without requiring any other variables. For example "welcome.htm", the Literal Page, might live at this URL: http://my.golightly.com/welcome.htm
  • Child Page. A page that "lives" under a Parent page, and is generated because of certain variables in the URL. For example "welcome.htm?page=new_member"
  • Content Page. A content page might be either a Parent Page or a Child Page.
  • Language Page. GoLightly stores site content in the database, organized by "Language Pages". Each language page has an unlimited number of language items stored under it. These language items are Name & Value entries. For example, the "new_member" Language Page might have 3 fields stored under it: page_title, page_body, and html_title. Each of these fields will have a value.
  • Language Item. Any Field Name + Value pair.
  • Language Field Name. This is the name of a language item that lives under a page. This might be "left_item_header" for example, and refer to a language variable that is placed on a Page Template.
  • Language Field Value. This is the value (typically plain text or HTML) stored for a language field name. For example the Language Field Value for "left_item_header" might be "Welcome to California".
  • Page Template. This is a Smarty template that contains HTML, style tags, language variable, JavaScript and anything else you want displayed on your Content Page. Each Page Template can be applied to multiple Content Pages. All content-related Page templates are stored here: "Admin Tools" > "Edit (advanced)" > "Select Page to Edit" > page_templates
  • Language Page Default Values. These are all of the values that are added to a new Language Page when created. You can change these default values here: "Admin Tools" > "Edit (advanced)" > "Select Page to Edit" > language_page_default_values

Each Content Page you want to create will need its own Language Page.

Lets use the Content Page "welcome.htm" as an example.
  • "welcome.htm" uses the Language Page "welcome_main". All of the language on welcome.htm is stored on the "welcome_main" Language Page.
  • welcome.htm uses a Page Template also called "welcome_main". We specify that this is the template we want to use by editing (or creating if it doesn't exist) the Language Item with the Language Field Name "template". In this "template" field, we specify the Page Template to use from the "page_templates" Language Page. In this case, we enter the value "welcome_main"
  • When we are creating or editing a Page Template, values like "{$l_page_body}" refer to variables. "l_page_body" refers to a Language Item with the Language Field Name "page_body". We highly recommend that you NOT put site content directly on a Page Template, but instead pass in all site content using these variables.


See also:

Community Branding Decisions (Header & Footer)
Editing your Welcome Page
Editing your CSS or Community Logo

Last edited by Dale John M.; August 11th, 2010 at 01:51 PM..
Reply With Quote

Default Re: Changing the layout of content pages (changing template)

  #2  
Old May 5th, 2011, 07:24 AM
Katie D.'s Avatar
Katie D. Katie D. is offline
 
Join Date: Apr 2011
Posts: 7
Katie D. is on a distinguished road
If I want to change the font size for the headings on the welcome page (ie "Welcome to our Community" and "Question of the Week", is this changed somewhere in Admin tools or the CSS?
Reply With Quote

Default Re: Changing the layout of content pages (changing template)

  #3  
Old May 5th, 2011, 12:29 PM
Laura R.'s Avatar
Laura R. Laura R. is offline
Administrator
 
Join Date: Aug 2008
Posts: 90
Laura R. is on a distinguished road
Katie - you could do that by editing the module (Turn Edit Links On)

Then in the Name of Module box you can use HTML code to specify font size.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
version 2.31.25 :: gl-005-app.golightly.com
Desktop View
Dale John McGrewDale John McGrew, 1st GradeEva KonigsbergEva Konigsberg, 1st GradeJill TempletonJill Templeton, 1st GradeJoe EvansJoe EvansJohn TempletonJohn Templeton, 3rd GradeJulia VcherashnyJulia Vcherashny, BabySarah GolightlySarah Golightly, 4 years oldTristan NaramoreTristan Naramore