- Pet Peeves
Today, 08:27 PM
- Third Man Records
Today, 07:56 AM
- Vinyl Records Thread
Yesterday, 07:18 PM
- Music Recommendation Thread: Take 2
Yesterday, 08:51 AM
Yesterday, 07:46 AM
- 2014 Pearl Jam -- My Kid's in the Pit! Throw Me a Tambourine&
Apr 14 2014 08:47 AM
- The All New Random Ass Thread
Apr 11 2014 01:52 PM
- FS: Complete Annual Single Collection
Apr 10 2014 02:19 PM
- Welcome Back StoneWasTheProblem
Apr 08 2014 07:03 PM
- Pearl Jam Halloween Shirt
Apr 07 2014 08:31 PM
247 active user(s) (in the past 15 minutes)
Google, pj101ca, bathroommonkey, BeerBaron, dpendy07243 guests, 0 anonymous users
Welcome Our Newest Member
Yesterday, 09:35 PM
Mar 15 2010 06:00 PM | spacedvest in Templates
In IP.Content 2.0, you will notice that there are 3 separate template sections of the ACP:
- Page Templates
- Database Templates
- Article Templates
In IP.Content 1.x, database and page templates were combined into a single "Templates" section, which worked fine for our original intentions. However, with the introduction of a separate Articles module, and additional template types related to the articles module, we decided to separate the templates so that each template type is displayed separately. This should help finding and editing your templates easier in practice, as you will be able to filter the template types and work with fewer at a time.
Within each templates section, you can create containers to group your templates into logical groupings. For instance, you may wish to create a grouping for each database you create, and then place the database templates appropriately into the container representing the database itself. Or you may wish to create multiple front page templates, and group them all together in the article templates area. You can use containers for whatever purposes you may have, or not at all: it's up to you!
Templates can be reordered by dragging and dropping the rows up and down, and they can be moved from one container to another via drag n drop as well.
Certain meta data about the templates are stored when you create new database or article templates, allowing IP.Content to tailor other areas of the ACP to help you out. For example, in IP.Content 1.x the software did not "remember" what kind of database template you were creating, so all database templates were presented in each of the dropdowns when creating or editing a database. Beginning with IP.Content 2.x, the software stores the template type when you create a new template. This allows us to show only "category listing" templates in the "category listing template" selection dropdowns. Similarly, the template tag help popup can automatically know which template type you are editing without you having to specify.
Properly making use of templates can help you push out pages on your site in a uniform manner quickly and easily, and without having to "reinvent the wheel" each time a new page is ready to be published.
Mar 16 2010 07:00 PM | spacedvest in Templates
All templates are capable of using template tags, and as such when you edit any type of template, there will be a "template tag help" link. Clicking this produces a sidebar (there is then a link in the sidebar to open a separate popup) that details all of the template tags you can insert to include IP.Content data within your template.
However, with database and article templates, there are additional variables that are passed into the template to allow it to manipulate and display the HTML that represents the content. For instance, different data is retrieved and available when you are looking at a list of articles compared to when you are viewing a single article. You need to know what these variables are in order to be able to properly modify the template to display data in the manner you want, and as such, a template variable help popup is available that will detail the variables available for each template type.
When you are editing a template, click on "template variable help" and a new window opens displaying the variables you can expect to be available to the template with a short description of each variable. If you get stuck, this help window can help shed some light on the variables that are available, what values they should contain, and how you can use these variables to your advantage to build a more dynamic and useful interface for your database.