0_1530617483691_ed81c45c-86e7-408e-80fd-bdded45a0f2e-image.png
As you can see in this screenshot the url is missing some characters in the title. How to fix this for sinhala(Sri Lankan) language?
No problem, I marked it as solved for you
@julian eh I know I'm a pain in the ass, but now the thread post is not displayed. Could we have both the post text and the thread title?
@julian Ok I edited line 12 in recentposts.tpl and replaced it with
<a href="{relative_path}/topic/{posts.topic.slug}#{posts.pid}">[[category:posted]] in {posts.topic.title}</a>
I'd also like to do it on the homepage, but {categories.topic_title}
doesn't work
@giorgio-chiodi Are you referring to the recent topics widget?
@julian Hello Julian, yes I've modified the recentposts.tpl file to add the topic title in the recent posts widget
I'd like to do the same thing on the homepage, I don't know what variable to fill in
Hm... so the "recent posts" widget is not showing the title, and the "recent topics" widget is not showing the post text?
Perhaps @baris can help you
@julian No wait now I'm confused.
I wanted to show the post content in the "recent posts" widget, and now it is possible with the latest update.
I have lost the ability to read also the topic title, which I fixed by manually adding {posts.topic.title}
in the tpl file.
What I'd like to add now is the same functionality {posts.topic.title}
in the home page, but I tried adding it and it doesn't work.
Try
<!-- BEGIN posts -->
<div class="category-box">
<div class="post-preview">
{categories.posts.topic.title}
<img src="{categories.posts.picture}" class="pull-left" />
<p class=""><strong>{categories.posts.username}</strong>: {categories.posts.content}</p>
</div>
</div>
<!-- END posts -->
in home.tpl
@baris yesssss!
You can see all the available data to the template by going to api/home. For example on this site http://community.nodebb.org/api/home. You would need to paste it into something like jsonlint or inspect in the network tab to see formatted.
@baris awesome!