Search the Community
Showing results for tags 'a-Tag'.
-
i use a textarea-field with CKEditor. its filled with text which has a link. this field is in two of my templates. the first template is an article and everything is finde. the second is an index-template and textarea is placed inside a link. this causes problems. index-template looks like this <a href=""> … <?php echo $page->textarea; ?> … </a> which results in: <a href=""> <p>Lorem Ipsum <a href"">Test</a></p> </a> is there a way to output this textarea wihtout the <a> links? i don't need the link on my index-template
-
there is a pagination (next|prex) at the end of the page i want to hide next on the last page of the siblings and hide prev on the first <?php if($page != $pages->get(1019)->children->first()) { echo "<a class='link prev' href="$page->prev->url">"; foreach($page->prev->image as $image) { $thumb = $image->height(60); echo "<div><img src='$thumb->url'/></div>"; } $test = $page->prev; echo "<span> $test->title </span>"; echo "<span class='date' > $test->teaser_date </span>"; } echo '</a>' if($page != $pages->get(1019)->children->last()) { echo "<a class='link next' href="$page->next->url">"; foreach($page->next->image as $image) { $thumb = $image->height(60); echo "<div><img src='$thumb->url'/></div>"; } $test = $page->next; echo "<span> $test->title </span>"; echo "<span class='date' > $test->teaser_date </span>"; } echo "</a>"; ?> line 3: echo "<a class='link prev' href="$page->prev->url">"; is causing the error but i don't know why