Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Partial in content
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - 3 new - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan  
View profile  
 More options Feb 2 2010, 2:16 am
From: Jonathan <jfouc...@gmail.com>
Date: Mon, 1 Feb 2010 23:16:54 -0800 (PST)
Local: Tues, Feb 2 2010 2:16 am
Subject: Partial in content
Hi Lonnie,

I'd like to include a partial in one of my content file, but simply
putting {side} in the content file just prints "{side}". Is there a
way around that?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lonnie Ezell  
View profile  
 More options Feb 2 2010, 9:19 am
From: Lonnie Ezell <lonni...@gmail.com>
Date: Tue, 2 Feb 2010 06:19:10 -0800 (PST)
Local: Tues, Feb 2 2010 9:19 am
Subject: Re: Partial in content
The {side} call that your using needs to be called liked: {partial:
side} and then have the partial defined in the top of the file. I'll
illustrate with the home page of blueiceapp.com.

The index page is not using a _shared.txt file to specify partials. In
the content file, though it is pulling in the Table of Contents for
the help pages. The main page looks like this:

--- /// START INDEX.MD ///---
page_title: BlueIce - the anti-CMS
partial_sidebar: sb_home
partial_toc: toc_docs

## The Anti-CMS

BlueIce is the **anti-CMS**. There are no users. No admin area. No
database. All changes are done through folders and text-files on the
server.

BlueIce is not for everyone. It is designed for smaller websites,
primarily "static" information, run by a single person, though plugins
can be easily created to do most anything you need the system to do.

For those that are comfortable using [Markdown](), a text editor, and
FTP, then this might be the right choice for you.

BlueIce was heavily inspired by the excellent portfolio app, [Stacey]
(http://staceyapp.com).

{partial: toc}
--- /// START INDEX.MD ///---

Hope that helps.
Lonnie


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan  
View profile  
 More options Feb 3 2010, 3:25 am
From: Jonathan <jfouc...@gmail.com>
Date: Wed, 3 Feb 2010 00:25:31 -0800 (PST)
Local: Wed, Feb 3 2010 3:25 am
Subject: Re: Partial in content
Thanks, Lonnie

Yes I realized that my {side} call wouldn't work...
So I have this at the top of my index.txt (don't want it passed
through Markdown) content file :
<pre>
page_title: Six Pixels
partial_head: header
partial_foot: footer
partial_side: servicios
description: Six Pixels es un estudio de desarrollo y de diseño web,
basado en España.
home: active
</pre>

and further down I have {partial: side} But it doesn't do anything at
all. The calls to {partial: head} and {partial: foot} in the template
work perfectly. If I put {partial: side} in the template, it works
fine too, although it appears in the wrong place...

Thanks anyway


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lonnie Ezell  
View profile  
 More options Feb 3 2010, 5:35 pm
From: Lonnie Ezell <lonni...@gmail.com>
Date: Wed, 3 Feb 2010 14:35:43 -0800 (PST)
Local: Wed, Feb 3 2010 5:35 pm
Subject: Re: Partial in content
One thing I did notice is that sometimes order matters in the partial
definitions at the top of the file. You might try reordering so that
the partial_side is before the other partials. I'm not 100% sure why
this is happening, but that's fixed it for me a couple of times.

Hope that helps!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic