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.

forum post title on wiki - not working

May 23, 2008 12:10am

Subscribe [2]
  • #1 / May 23, 2008 12:10am

    wolferey

    33 posts

    I’m trying to draw out the last 10 posts from the EE forum module, and I got it working.. almost. This is the code I use:

    {exp:forum:topic_titles forums="not 3|4" orderby="post_date" sort="desc" limit="10"}
    <li><a href="http://{thread_path=forum/viewthread}">{title}</a></li>
    {/exp:forum:topic_titles}

    Now, it’s working perfectly on my index page and its subpages, but not on my wiki theme.

    It draws out the correct number of posts, and the links work, but the title only say “index” instead of the topic title. Any clue why?

  • #2 / May 23, 2008 2:54am

    Ingmar

    29245 posts

    Are you saying you want to run {exp:forum:topic_titles} inside of your wiki? I don’t think that’s supported, actually.

  • #3 / May 23, 2008 3:26am

    wolferey

    33 posts

    Hmm.. well, explains why im not getting the titles.. Kinda strange that it manages to bring out the posts from the forum thought, if its not supposed to work :p

  • #4 / May 23, 2008 2:12pm

    Lisa Wess

    20502 posts

    Moved this down to technical support. This won’t work in a wiki article, but it should work in the wiki theme.  Can you clarify exactly where you’re placing this code? I’d like to try to reproduce this, if you’re doing it directly in the theme.

    Thanks!

  • #5 / May 23, 2008 5:25pm

    wolferey

    33 posts

    Hi Lisa,
    It is situated inside the body tags in the theme, where the default theme’s footer used to be. I say used to, because this code replaces the footer.

    
    
    

    Everything here works except for the forum title, which comes out as “index”, instead of the topic title.

  • #6 / May 23, 2008 5:46pm

    Lisa Wess

    20502 posts

    Alright, this is a matter of parse order. If you use any tag that has a {title} variable, it’s going to output the title of the wiki page.  The way around this is, as mentioned, to put the code into another template and embed it in the wiki theme.

    That work for you?

  • #7 / May 23, 2008 5:48pm

    wolferey

    33 posts

    Thanks for the heads up, I’ll do that. Glad I found a bug you guys can eliminate, ‘em buggers keep crawling into places they shouldn’t be at :p

  • #8 / May 23, 2008 5:53pm

    Lisa Wess

    20502 posts

    I ninja-edited my postings above, so have a fresh look at them, please. =)

  • #9 / May 23, 2008 5:57pm

    wolferey

    33 posts

    yes, works like a charm with embeding it 😊

  • #10 / May 23, 2008 5:59pm

    Lisa Wess

    20502 posts

    Awesome.  Yes, anytime you have something with a title or other variable conflict, simply look at embedding it; that avoids parse order and confusion.  Essentially, you were nesting tags, and so it was taking the variable of the outer tag. 

    Glad you got it working!

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

ExpressionEngine News!

#eecms, #events, #releases