How can I read only an element in pimcore?
Normally, I create an element like this:
$this->wysiwyg("content");
So, it writes the text from the element content in the frontend, and I can edit it on the backend.
But I need to write this twice in the frontend, because of my responsive design. But then it gives a error in the backend because of duplicate element name 'content'.
My approach: First I use $this->wysiwyg("content");
and second I use ??? to only read the text of the element for the frontend (no editable element in the backend). But how?
Edit: And how can I solve this for my block-element? Error message in backend: Dublicate editable name: contentblock Code: while($this->block("contentblock")->loop()) { ...}