Halfagain IM Forums
May 25, 2012, 00:41 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Smarty token {$blog.topic_name}  (Read 1806 times)
0 Members and 1 Guest are viewing this topic.
lvipclub
Newbie
*

Karma: 1
Offline Offline

Posts: 4


« on: June 08, 2008, 03:08 »

I just discovered by chance the {$blog.topic_name} which shows the group name a blog belongs to.

Is the script correct to show all blogs belong the same group?

{foreach from=$blogs item=blog}
 
  • {$blogs[$post.blog_id].title}

  • {/foreach}
    Logged
    pete
    Newbie
    *

    Karma: 10
    Offline Offline

    Posts: 52


    « Reply #1 on: June 08, 2008, 06:03 »

    Seems a lot of bugs on this update

    This the main site index page, lists all the blogs on your domain

    {foreach from=$blogs item=blog}
  • {$blog.title}

  • {/foreach}
    « Last Edit: June 08, 2008, 08:42 by pete » Logged
    lvipclub
    Newbie
    *

    Karma: 1
    Offline Offline

    Posts: 4


    « Reply #2 on: June 08, 2008, 10:52 »

    Thanks Pete. Is there a way to list only blogs of the same group?
    Logged
    pete
    Newbie
    *

    Karma: 10
    Offline Offline

    Posts: 52


    « Reply #3 on: June 08, 2008, 12:22 »

    If you mean linking back from your article to the blog index


    blog roll
    Logged
    lvipclub
    Newbie
    *

    Karma: 1
    Offline Offline

    Posts: 4


    « Reply #4 on: June 10, 2008, 05:19 »

    Hi Pete,

    I should have stated my request more concisely : )

    Say a TBS site has 2 groups (A & B) created, each group has its own batch of blogs (A1, A2... An / B1, B2... Bn).

    If a visitor is reading blog A2, say, I wish to show on side bar a list of all blogs belonging to the same group (A1, A2... An).

    What's the token to show such?


    :confused:
    Logged
    pete
    Newbie
    *

    Karma: 10
    Offline Offline

    Posts: 52


    « Reply #5 on: June 10, 2008, 07:59 »

    Hi lvip

    Sorry can’t help you with that one I’m no expert with these smarty templates
    But if that can still be done as the posts grow into the hundreds it will make for a very long page

    I think this is the old article/post page code from BS3 that did that
    Quote
    {loop:posts}
  • {post-title}

  • {/loop:posts}
    Logged
    Pages: [1]
      Print  
     
    Jump to:  

    Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!