Skip to content

Wie kann ich einen Backend-Link zum Bearbeiten eines Slice generieren? #36

Answered by aeberhard
danspringer asked this question in Q&A
Discussion options

You must be logged in to vote

@danspringer

@skerbis war schon auf dem richtigen Weg :)

<?php
$slice = $this->getCurrentSlice();
$link_url = rex_url::backendPage(
    'content/edit',
    [
        'article_id' => $slice->getArticleId(),
        'slice_id' => $slice->getId(),
        'clang' => $slice->getClangId(),
        'ctype' => $slice->getCtype(),
        'function' => 'edit'
    ]
) . '#slice' . $slice->getId();
echo '<a href="'.$link_url.'" target="_blank">Edit</a>';

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@skerbis
Comment options

@eaCe
Comment options

Answer selected by skerbis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants