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
- 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.tplReplace
{eval var=$heading}with
{if strlen($heading) > 0}
{eval var=$heading}
{else}User errorPlugin argument(s) missing or invalid:- page
{/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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 1790
- Created
- Friday 30 May, 2008 08:23:47 UTC
by Unknown - LastModif
- Saturday 07 June, 2008 15:46:15 UTC