Skip to main content
added 150 characters in body
Source Link
Robin Schambach
  • 19.8k
  • 1
  • 20
  • 45

I never saw thatUpdate after Brad's comment since the with attribute in apart seems to be ok ElementCriteriaModel and after several searches I could not find any use of- by the way thank you, it is another good example that attribute in craft (Please correct me if I'm wrong) butyou never stop learning.

I never saw that with attribute in a ElementCriteriaModel and after several searches I could not find any use of that attribute in craft (Please correct me if I'm wrong) the rest should be fine.

Instead of the .limit(1) you could do the following

{% set content = entry.contentBuilder.type('copy').first() %}

The getPage() function only exists in the class RichTextData maybe you have a different fieldType? Otherwise you could just do {{ content.copy }} as well to display the text in that field.

All in all it would be a good idea to tell us a little bit more about your goal, your fields and your errors. Your description is a little bit insufficient in my opinion

I never saw that with attribute in a ElementCriteriaModel and after several searches I could not find any use of that attribute in craft (Please correct me if I'm wrong) but the rest should be fine.

Instead of the .limit(1) you could do the following

{% set content = entry.contentBuilder.type('copy').first() %}

The getPage() function only exists in the class RichTextData maybe you have a different fieldType? Otherwise you could just do {{ content.copy }} as well to display the text in that field.

All in all it would be a good idea to tell us a little bit more about your goal, your fields and your errors. Your description is a little bit insufficient in my opinion

Update after Brad's comment since the with part seems to be ok - by the way thank you, it is another good example that you never stop learning.

I never saw that with attribute in a ElementCriteriaModel and after several searches I could not find any use of that attribute in craft (Please correct me if I'm wrong) the rest should be fine.

Instead of the .limit(1) you could do the following

{% set content = entry.contentBuilder.type('copy').first() %}

The getPage() function only exists in the class RichTextData maybe you have a different fieldType? Otherwise you could just do {{ content.copy }} as well to display the text in that field.

All in all it would be a good idea to tell us a little bit more about your goal, your fields and your errors. Your description is a little bit insufficient in my opinion

added 74 characters in body
Source Link
Robin Schambach
  • 19.8k
  • 1
  • 20
  • 45

I never saw that with attribute in a ElementCriteriaModel and after several searches I could not find any use of that attribute in craft (Please correct me if I'm wrong) but the rest should be fine.

Instead of the .limit(1) you could do the following

{% set content = entry.contentBuilder.type('copy').first() %}

The getPage() function only exists in the class RichTextData maybe you have a different fieldType? Otherwise you could just do {{ content.copy }} as well to display the text in that field.

All in all it would be a good idea to tell us a little bit more about your goal and, your fields and your errors. Your description is a little bit insufficient in my opinion

I never saw that with attribute in a ElementCriteriaModel and after several searches I could not find any use of that attribute in craft (Please correct me if I'm wrong) but the rest should be fine.

Instead of the .limit(1) you could do the following

{% set content = entry.contentBuilder.type('copy').first() %}

The getPage() function only exists in the class RichTextData maybe you have a different fieldType? Otherwise you could just do {{ content.copy }} as well to display the text in that field.

All in all it would be a good idea to tell us a little bit more about your goal and your fields.

I never saw that with attribute in a ElementCriteriaModel and after several searches I could not find any use of that attribute in craft (Please correct me if I'm wrong) but the rest should be fine.

Instead of the .limit(1) you could do the following

{% set content = entry.contentBuilder.type('copy').first() %}

The getPage() function only exists in the class RichTextData maybe you have a different fieldType? Otherwise you could just do {{ content.copy }} as well to display the text in that field.

All in all it would be a good idea to tell us a little bit more about your goal, your fields and your errors. Your description is a little bit insufficient in my opinion

Source Link
Robin Schambach
  • 19.8k
  • 1
  • 20
  • 45

I never saw that with attribute in a ElementCriteriaModel and after several searches I could not find any use of that attribute in craft (Please correct me if I'm wrong) but the rest should be fine.

Instead of the .limit(1) you could do the following

{% set content = entry.contentBuilder.type('copy').first() %}

The getPage() function only exists in the class RichTextData maybe you have a different fieldType? Otherwise you could just do {{ content.copy }} as well to display the text in that field.

All in all it would be a good idea to tell us a little bit more about your goal and your fields.