Loading...
 
Skip to main content

Blogs don't show any headings

Status
Closed
Subject
Blogs don't show any headings
Version
2.x
Category
  • Feature request
Feature
Blog
Resolution status
Fixed or Solved
Submitted by
zorp
Lastmod by
zorp
Rating
(0)
Description

With the prefs.feature_blog_heading perm enabled and tiki_p_edit_templates dissabled, users - with the perm to create blogs - will be able to create blogs but no heading will be shown when their blogs are viewed in tiki-view_blog.php.

In essence, unless both above named perms/prefs are enabled a user won't be able to create a heading, and no heading will be saved in DB for the blog.

And since the conditional to handle situations when $heading is empty has been removed in rev 9146 the blog will show no heading what so ever when it is viewed.

Solution

I suggest to re-instate the changes made to the conditional which displays the default heading if the user is not able to create his/her own headings.

I also think we should re-consider whether tiki_p_edit_templates should be tied to the creation of custom headings...

Suggested change:
In the file templates/tiki-view_blog.tpl

Replace
{eval var=$heading}

with
{if strlen($heading) > 0}
{eval var=$heading}
{else}

{/if}

This conditional will handle situations when the user does not have a custom heading - in which case it will display the default heading.

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1790
Created
Friday 30 May, 2008 08:23:47 UTC
by Unknown
LastModif
Saturday 07 June, 2008 15:46:15 UTC


Show PHP error messages