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.

Dissecting the Default Templates: Category Headings and Parameters

September 20, 2007 5:56pm

Subscribe [1]
  • #1 / Sep 20, 2007 5:56pm

    Lisa Wess

    20502 posts

    It’s time to move further down our default index template, don’t you think?  So far, we’ve covered assigned variables and paths,  variables, and weblog=.

    In this article we’re going to start digging a bit deeper into the innards of ExpressionEngine; and we needn’t be too careful, she’s not fragile, I promise!

    We’ve already worked with those major building blocks: paths and global variables, and the next four lines:

    <ul id="navbar">
      <li id="home"><a href="http://{homepage}" title="Home">Home</a></li>
      <li id="about"><a href="http://{path={my_template_group}/about}" title="About">About</a></li>
      <li id="archives"><a href="http://{path={my_template_group}/archives}" title="Archives">Archives</a></li>
      <li id="contact">{encode="{webmaster_email}" title="Contact"}</li>
    </ul>

    utilize those in creating basic navigation to what may be the building blocks of your site.  This is really just normal HTML using path statements and global variables.  We’re all great learners here, so I’m not going to re-hash those concepts; they are linked above should you need to review how those work, and of course, in the documentation.

    Last week we also touched on the weblog info tag as this is its second usage in this template.  So we can continue on down the template immediately.

    Now these next six lines are where things really get super-duper interesting.  Ready for it?

    Onwards!

  • #2 / Sep 24, 2007 1:20am

    deschamps

    137 posts

    Lisa, I got lost when you said that the “category heading” has 3 parameters… are those the possibilities?, are they in the example?...

  • #3 / Sep 24, 2007 1:59am

    Lisa Wess

    20502 posts

    Not a worry, did you do the search for {exp:weblog:category_heading} and look at the first result in the search results? You’ll see a heading for ‘Parameters’ and a list of 3 parameters.  That is what I was referring to; and only one (weblog=) is used in the category heading tag contained in the index template in the default - our working example.

    Make sense? Let me know if you still need clarification.  And I love the sig, though I think politics would drive me quite mad. 😉

  • #4 / Sep 24, 2007 1:15pm

    deschamps

    137 posts

    Thanks, got it… sig has been corrected…

  • #5 / Sep 24, 2007 1:23pm

    Lisa Wess

    20502 posts

    *laughs* you rock, thanks =)

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

ExpressionEngine News!

#eecms, #events, #releases