문제

I am new to expression engine. I have a channel name "news" and I have published some pages. In my template, I have used code as

{exp:channel:entries channel="news"}
  <h2>{title}<h2>
  {body}
{/exp:channel:entries}

But the output is I get the page title but the content doesn't shows up and i get {body} as it is on the frontend

Can anyone help me please, where I am going wrong?

도움이 되었습니까?

해결책

Perhaps "body" is not a valid field name?

Every "channel" has a "field group" assigned to it. In the control panel look at the field group for your "News" channel. Does that field group have a field with the short name "body"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top