Hi Jack,
it is a bit tricky to find the place to edit
The code to display blogs is in the page Blog.BlogSheet (which you can find in a
development instance in
http://localhost:8080/xwiki/bin/view/Blog/BlogSheet )
what it mostly does is to delegate to macros defined in Blog.BlogCode
http://localhost:8080/xwiki/bin/view/Blog/BlogCode
Categories are displayed via Blog.CategorySheet
http://localhost:8080/xwiki/bin/view/Blog/CategorySheet
The archive is actually in Blog.Archive
http://localhost:8080/xwiki/bin/view/Blog/Archive
You can best view the contained code by editing the page with the "wiki
editor".
When it comes to rendering all pages delegate in the end all pages delegate to the
"displayEntry" macro,
which is defined in the Blog.BlogCode page
You want to customize the call-path that is followed if $onlyExtract=true
so the macro might look like something:
#macro(displayEntry $entryDoc $entryObj $onlyExtract $shouldDisplayTitle)
#if($onlyExtract)
* [[ $entryDoc.displayTitle >>doc:${entryDoc.getDocumentReference()}]]
#else
... here rest of the original macro
#end
#end
maybe not looking very pretty but hopefully it is a first start.
Clemens
----- Ursprüngliche Nachricht -----
Von: Jack
Am: Tuesday, 26.04.2016, 11:00
An: Xwiki Developers
Betreff: [xwiki-devs] How to display only the blog title
when click Blog Categories or Blog Archive,I hopy display only the blog
title, without show blog title and content.What vm file should I
modify,without effect Blog/WebHome show blog title and content?
I search for
http://extensions.xwiki.org/xwiki/bin/view/Main/,not found
Snippet for this.
There are some solutions or examples?