Spinning wheels..
I need to separate pages into permission groups. I am using Structure. And I have Entry Access.
I'm not sure how to integrate this. I've been through the documentation of Entry Access and Structure while I have seen something close maybe I'm missing the clue to solving this...
All of the website content is all through Structure minus the /index
and /event
page.
All of the pages that are within Structure use 1 template /structure/page
which comes from one channel {exp:channel:entries="page"}
to populate the site's content. To possibly complicate matters for a front-end type of dashboard the site also pulling that channel again using {exp:channel:form channel="page"}
The issue is that I need to have 12 different permission groups.
Each needing access to a different area (page) within the
/structure/page
template and channel.
For example:
/about
using the /structure/page
template will need
to be accessed by permission group A
while /gallery
also using the /structure/page
template and channel will need to be accessed by permission group B and so on and so forth where some pages will need to have multiple permission groups allowed...
A couple of questions however:
Is there currently any way to do this with Structure as we have the site
currently setup? 1 channel feeding 1 structure/page template.
And if so, any suggestions to nudge me in the right direction for setting up these permissions??
Thanks in advance!
Here's what the front-end template currently has. It works well but, without permission control.
{exp:channel:form channel="page" entry_id="{segment_3}" id="publishForm" return=""}
</div>
</div>
<div class="col-lg-12">
<div class="form-element-wrapper">
<label for="title">Title</label>
<input class="form-control" type="text" name="title" id="title" value="{title}" disabled="true">
</div>
<div class="form-element-wrapper" id="images-container">
<label for="">Image Carousel</label>
<div class="clear"></div>
{field:images}
</div>
<div class="form-element-wrapper">
<label for="about">About</label>
{field:about}
</div>
<div class="form-element-wrapper">
<label for="body">Body</label>
{field:body}
</div>
<div class="form-element-wrapper" id="faq-container">
<label for="">FAQ</label>
<div class="clear"></div>
{field:faq}
</div>
<div class="form-element-wrapper" id="external-links-container">
<label for="">External Links</label>
<div class="clear"></div>
{field:external_links}
</div>
<div class="form-element-wrapper" id="documents-container">
<label for="">Documents</label>
<div class="clear"></div>
{field:documents}
</div>
<div class="form-element-wrapper" id="message-container">
<label for="message">Message</label>
{field:message}
</div>
<div class="form-element-wrapper" id="mission-container">
<label for="mission">Mission</label>
{field:mission}
</div>
<input id="submit-form" type="submit" name="submit" value="Update and Finish" class="fin btn btn-primary btn-lg pull-right" style="margin:0 2% 2% 0;">
<input id="submit-form" type="submit" name="submit" value="Update" class="upd btn btn-primary btn-lg pull-right" style="margin:0 2% 2% 0;">
</div>
{/exp:channel:form}
{if:else}
<div class="well well-lg">
<button id="page_select_submit" type="submit" class="btn btn-primary pull-right">Go...</button>
<select name="structure_parent_id" class="chosen-select">
<option value="0" selected="selected">Choose a Page...</option>
<!-- GROUP A -->
<option value="100"> Page1</option>
<option value="200">-- Page2</option>
<option value="300">-- Page3</option>
<!-- GROUP B -->
<option value="400"> Page4</option>
<option value="500">-- Page5</option>
<option value="600">-- Page6</option>
<!-- GROUP C -->
<option value="700"> Page7</option>
<option value="800">-- Page8</option>
<option value="900">-- Page9</option>
<!-- GROUP D -->
<option value="100"> Page1</option>
<option value="500">-- Page5</option>
<option value="1000">-- Page10</option>
</select>
</div>
{/if}
<script>
$(document).on('mouseenter', '.fin', function(){
$('[name=return_url], [name=return], [name=RET]').val('embeds/success');
});
$(document).on('mouseenter', '.upd', function(){
$('[name=return_url], [name=return]').val('embeds/success/{sement_3}');
});
</script>
On the option dropdown. I would like to only show the pages/ option vaulues that are relevant to that particular permission group to edit.