ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Calling Blog Title Variable

June 10, 2009 1:22pm

Subscribe [1]
  • #1 / Jun 10, 2009 1:22pm

    blukabm

    16 posts

    Here’s what I have:

    <head>
    <title>
    {exp:weblog:entries weblog="whatever" limit="1"}{blog_title}{/exp:weblog:entries}
    </title>
    </head>

    This works on every page where there are entries in that blog. But on the 1 blog I have without any entries, this shows up blank. How do I call the blog title when there are no entries in that blog?

    Thanks!

  • #2 / Jun 10, 2009 1:29pm

    Lisa Wess

    20502 posts

    Look up the weblog info tag; that’s a much friendlier way of handling this.

    If you are going to use the weblog entries tag that way, make sure you disable pretty much everything to keep it lean.

    Another option is Low’s Title Plugin

  • #3 / Jun 10, 2009 1:52pm

    blukabm

    16 posts

    Hey that’s perfect thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases