I have set up a front-end panel for writers to contribute to our news service using databound forms. I do not want the articles they submit to publish instantly, rather I'd prefer to have a verification email sent to an admin. So far, I have successfully made it so that the submitted pages are unpublished and an email is sent to an admin. But I am unsure how to send the admin a link straight to the admin panel to view it. How would one generate a link to the admin panel link within the <cms:send_mail> link?
Thanks
- Code: Select all
<h1>Article Submission</h1>
<cms:form masterpage='blog.php' mode='create' enctype='multipart/form-data' method='post' anchor='0'>
<cms:if k_success>
<h3>Article successfully submitted</h3>
<cms:send_mail from='<cms:show k_user_title/>' to='' subject='An article has been submitted.'>
Hey Jake,
<br><br>
<cms:show k_user_title/> has submitted an article for review.
<br><br>
Many Thanks,
<br><br>
<cms:show k_user_title/>
</cms:send_mail>
<cms:db_persist_form
_invalidate_cache='0'
k_publish_date='0000-00-00 00:00:00'
/>
<cms:set_flash name='submit_success' value='1' />
</cms:if>
<label for='title'>Article Title</label>
<cms:input type="bound" name="k_page_title" class='headline' id='title'/>
<div class='innerarticle'>
<cms:input name="description" type="bound" class='description' trust_mode='1'/>
</div>
<label for='author'>Author</label>
<cms:input type="bound" name="author" class='author' id='author'/>
<label class='imagelabel' for='dynamic'>Image</label>
<cms:input type="bound" name="dynamic" class='image' id='dynamic'/>
<label class='imagelabel' for='dynamic'>Place</label>
<cms:input type="bound" name="place" class='image' id='place'/>
<cms:input name="k_page_folder_id" type="bound" class='folderselection'/>
<button class='button newspost' type="submit">Post</button>
</cms:form>
Thanks