User Tools

Site Tools


components

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
components [2011/03/04 16:08]
ccagle8 created
components [2020/01/26 17:52] (current)
poorboy2 missing comma
Line 1: Line 1:
 ====== Components ====== ====== Components ======
  
-Components are small snippits ​of code or text that can be inserted into a theme template. ​These are ideal for small blocks ​of text that are part of a theme file that the website owner may want to edit down the road. Examples are taglines, quotes, or sidebar items.+Components are easily editable containers for pieces ​of code or text that can be inserted into a theme template. ​They are very adaptable and have many uses. At their simplest, components ​are ideal for small strings ​of text that are part of a theme file that the website owner may want to edit down the road. Examples are taglines, quotes, or sidebar items. ​But also: 
 + 
 +  * Components can be used to edit and insert whole blocks of formatted html content into a sidebar, a footer or a multi-column layout. 
 +  * Components can contain code so they can be used to insert dynamic content like a gallery, a list of blog posts, an image slider or a contact form. 
 +  * Components can be included in all pages or individual pages or only in specific pages by conditional statements in the template. See [[components-depending-on-the_page|Components Depending On The Page]]. 
 +  * Components can be used to alter items in the head section of a page, for example to add css or a robots.txt 
 +  * Components can be used inside other components 
 +  * Components can be saved empty, with no content
  
 To create a component, log into your administrator panel and goto **Theme -> Edit Components**. From there, it is pretty self explanatory on how to add or edit existing components. To create a component, log into your administrator panel and goto **Theme -> Edit Components**. From there, it is pretty self explanatory on how to add or edit existing components.
Line 8: Line 15:
  
 <​code><?​php get_component('​tagline'​);​ ?></​code>​ <​code><?​php get_component('​tagline'​);​ ?></​code>​
 +
 +**Hint**: To change an existing component'​s title, double click the title, and it will change to become editable.
 +{{:​componenet-title.png|}}
 +
 +======Links======
 +Back to the GetSimple Wiki [[:​start|Contents Page]]
 +==Pages in this Section==
 +===Adding and Editing Content===
 +  *[[how_to:​wysiwyg_editor|WYSIWYG Editor]]
 +  *[[:​components|Components]]
 +  *[[:​404|Custom 404 Page]]
components.1299254910.txt.gz · Last modified: 2013/04/19 14:53 (external edit)