News section in tracwiki something like --> http://trac-hacks.org/

9 views
Skip to first unread message

Dhanesh Mane

unread,
Jan 25, 2011, 6:26:56 AM1/25/11
to Trac Users
Hey all,
I am new to tracwiki, I am able to understand the wiki macros and some
keywords. I want to have a green box ( which I guess appearing with
help of some macro) like this wiki page http://trac-hacks.org/ on my
web page right side.

Roger Oberholtzer

unread,
Jan 25, 2011, 6:54:24 AM1/25/11
to trac-...@googlegroups.com

You need to add the News Flash macro for that. It is available in the
link you referenced. Then add this to your wiki page:

{{{
#!NewsFlash
Whatever wiki text you want can go here. At least I know links work.
}}}

--
Roger Oberholtzer

Christian Boos

unread,
Jan 25, 2011, 7:31:52 AM1/25/11
to trac-...@googlegroups.com


Note that you don't necessarily need a macro for that, you can also use
a #!div block and pass appropriate styling options...

Starting with 0.12 you can also build tables this way, with #!td and
#!td blocks.
See http://trac.edgewall.org/wiki/WikiHtml for more details.

-- Christian

Dhanesh Mane

unread,
Jan 25, 2011, 8:57:34 AM1/25/11
to Trac Users
Hey thanks for quick update.

I have installed http://trac-hacks.org/wiki/FullBlogPlugin and created
some posts there.

And now using following code in my wiki page.
{{{
#!div class="important" style="border: 2pt solid; text-align: center;
float:right;"
[[BlogList]]
}}}

This is just displaying blog title linked to its main page with author
name and category.

BUT I WANT TO DISPLAY SOME TEXT FROM THAT POST ALSO. Same like
http://trac-hacks.org.
here is code for trac-hacks right bar.
[[html(<div id="newsflash">)]]
[[BlogShow(blog,news,hidecal=true,num_posts=4)]]
[[BlogPost(tag=(blog,news),readonly=1,link="Post News")]]
[[html(</div>)]]

BUT BlogShow and BlogPost macros dsnt work in FullBlogPlugin as its
part of trackblog( some other plugin).
I cant use that old plugin, but still want same feature with
FullBlogPlugin..

ALSO let me know different ways of using BlogList macro to show some
text from blog.

On Jan 25, 5:31 pm, Christian Boos <cb...@neuf.fr> wrote:
> On 1/25/2011 12:54 PM, Roger Oberholtzer wrote:
>
> > On Tue, 2011-01-25 at 03:26 -0800, Dhanesh Mane wrote:
> >> Hey all,
> >> I am new to tracwiki, I am able to understand the wiki macros and some
> >> keywords. I want to have a green box ( which I guess appearing with
> >> help of some macro) like this wiki pagehttp://trac-hacks.org/on my

osimons

unread,
Jan 26, 2011, 5:24:02 AM1/26/11
to Trac Users
On Jan 25, 2:57 pm, Dhanesh Mane <dhaneshmane...@gmail.com> wrote:
> Hey thanks for quick update.
>
> I have installedhttp://trac-hacks.org/wiki/FullBlogPluginand created
> some posts there.
>
> And now using following code in my wiki page.
> {{{
> #!div class="important" style="border: 2pt solid; text-align: center;
> float:right;"
> [[BlogList]]
>
> }}}
>
> This is just displaying blog title linked to its main page with author
> name and category.
>
> BUT I WANT TO DISPLAY SOME TEXT FROM THAT POST ALSO. Same likehttp://trac-hacks.org.
Trac-Hacks is still running Trac 0.10 - and it is not the same plugin
as it runs an abandoned wiki-based blog and not FullBlogPlugin (which
is 0.11+).

Go to you LOCAL wiki:WikiMacros page to display help documentation for
the macros you have currently installed and enabled, and you should
see that it for instance supports "format=float" argument to float the
list like on trac-hacks.org. All arguments and descriptions are in the
docs.


:::simon

https://www.coderesort.com
http://trac-hacks.org/wiki/osimons

Dhanesh Mane

unread,
Jan 27, 2011, 5:13:34 AM1/27/11
to Trac Users
ok issue is solved i found another macro there. working fine without
using newsflash macro plugin.

Cooke, Mark

unread,
Jan 27, 2011, 5:16:32 AM1/27/11
to trac-...@googlegroups.com
> -----Original Message-----
> From: trac-...@googlegroups.com On Behalf Of Dhanesh Mane
> Sent: 27 January 2011 10:14
> To: Trac Users
> Subject: [Trac] Re: News section in tracwiki something like
> --> http://trac-hacks.org/

>
> ok issue is solved i found another macro there. working fine without
> using newsflash macro plugin.
>
...and to complete the thread for future searches (and my curiosity), which macro did you use in the end?

~ mark c

osimons

unread,
Jan 27, 2011, 8:01:19 AM1/27/11
to Trac Users
> > >https://www.coderesort.comhttp://trac-hacks.org/wiki/osimons
>
> > -----Original Message-----
> > From: trac-...@googlegroups.com On Behalf Of Dhanesh Mane
> > Sent: 27 January 2011 10:14
> > To: Trac Users
> > Subject: [Trac] Re: News section in tracwiki something like
> > -->http://trac-hacks.org/
>
> > ok issue is solved i found another macro there. working fine without
> > using newsflash macro plugin.
>
> ...and to complete the thread for future searches (and my curiosity), which macro did you use in the end?
>
> ~ mark c

I'd be very surprised if this is done without [[BlogList]] macro... I
suspect reading the docs helped, as I did model the
[[BlogList(format=float)]] argument to emulate the "newsflash" idea
still used on trac-hacks.org.
Reply all
Reply to author
Forward
0 new messages