ShinyCMS is an open source CMS. This is the Perl version, built with Catalyst and DBIC. (There is also a Ruby on Rails version: www.github.com/denny/ShinyCMS-ruby)
58
stars
24
forks
source link
Non working title in root/discussion/add_comment.tt #10
The postfix IF shortcut assigns undefined to meta.title if it is false, so meta.title for this page is always empty. To reproduce, click on Add Comment of any blog post in the demo site and observe that the browser tab title is just "ShinySite"
It should be:
[%-
meta.wrapper = 'site-wrapper.tt';
meta.title = 'Reply to- ' _ ( parent.title || 'untitled item' );
%]
[% IF discussion.resource_type == 'User' %]
[% meta.title = 'Post to wall'; %]
[% END %]
The postfix IF shortcut assigns undefined to meta.title if it is false, so meta.title for this page is always empty. To reproduce, click on Add Comment of any blog post in the demo site and observe that the browser tab title is just "ShinySite"
It should be: [%- meta.wrapper = 'site-wrapper.tt'; meta.title = 'Reply to- ' _ ( parent.title || 'untitled item' ); %] [% IF discussion.resource_type == 'User' %] [% meta.title = 'Post to wall'; %] [% END %]