Search This Site

Custom Search

Friday, January 14, 2011

Re: [bloggerDev] Other lay-out pages

On 2011-01-14 16:18, zwan wrote:
> Is it possible to make different lay-outs per page in one blogspot?
>
You can try add many 'if' statement to template to make this, like:

<b:if cond='data:blog.pageType == "archive"'>
...
</b:if>
<b:if cond='data:blog.pageType == "index"'>
...
</b:if>

<b:if cond='data:blog.homepageUrl != data:blog.url'>
...
</b:if>

<b:if cond='data:title != &quot;&quot;'>
...
</b:if>


As you can see you can check blog url/title
for customizing blogger design.


* Available data.

See

http://www.google.com/support/blogger/bin/answer.py?answer=47270

** Globally available data.

This information applies to the entire page, so you can use it anywhere,
unlike other data which can only be used in a specific widget. These
should be
referenced as part of the overall "blog" data, e.g. as <data:blog.title/>,
etc.

* title: The blog's title.
* pageType: The type of the current page. One of 'item', 'archive',
'index',
or 'static_page'.
* url: The URL of the current page.
* homepageUrl: The homepage of the blog.
* pageTitle: The title of the current page. This is often the blog title,
but may contain additional information on archive or post pages.
* encoding: The encoding to use for the blog, e.g. UTF-8.
* languageDirection: Either "ltr" or "rtl" for left-to-right and
right-to-left languages, respectively.
* feedLinks: The autodiscovery feed links for the page header.
* defaultAdStart: Place adware.

--
Best regards!

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

No comments:

Post a Comment