Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_ct_event
Commits
d5b4b6f8
Commit
d5b4b6f8
authored
Aug 01, 2017
by
Kevin Paxman
Browse files
Don't try to render the body if it doesn't exist
parent
0f8983ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
templates/node--uw-event.tpl.php
templates/node--uw-event.tpl.php
+3
-1
No files found.
templates/node--uw-event.tpl.php
View file @
d5b4b6f8
...
...
@@ -105,7 +105,9 @@
<?php
print
render
(
$content
[
'field_event_date'
]);
print
render
(
$content
[
'title_field'
]);
$content
[
'body'
][
0
][
'#markup'
]
=
uw_ct_web_page_filter_summary
(
$content
[
'body'
][
'#items'
][
0
]);
if
(
!
empty
(
$content
[
'body'
][
'#items'
][
0
]))
{
$content
[
'body'
][
0
][
'#markup'
]
=
uw_ct_web_page_filter_summary
(
$content
[
'body'
][
'#items'
][
0
]);
}
hide
(
$content
[
'title_field'
]);
hide
(
$content
[
'field_blog_date'
]);
print
render
(
$content
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment