Forum
Cannot get to work
Hello again,
You have solved on members problem for me but now I have another. It's probably straight forward but I'm just not seeing how to fix it.
At the moment I have a page set up with the following:
<?php
if (perch_member_logged_in()) {
perch_content('Downloads');
perch_content('Stage One Links');
perch_content('Stage Two Links');
?>
Stage Two Link should only be available to 'tagged' members but the following code is still outputting both the links and the text under the <perch:member else /> tag. Whether you have a tag or not.
<perch:before>
<perch:member has-tag="tagname">
<h3>Stage Two Data Room Links</h3>
<div class="row">
</perch:before>
<div class="col-sm-6">
<a href="<perch:content type="text" id="URL" label="Link URL" order="2" required="true" title="false" />" class="download"><perch:content type="text" id="desc" label="Link text" order="1" required="true" title="true" /></a>
</div>
<perch:after>
</div>
<perch:else:member />
<p>Please contact the administrator for access.</p>
</perch:member>
</perch:after>
The other thing is that when I assign a tag I cannot see that tag in the Editing a Member section within Perch.
What could I be doing wrong?
You need to use
perch_content_custom()
when displaying any region with 'live' data in it.That's done it thanks Drew. Sorry for the silly questions but I'm muddling my way through a bit.
I'm still havning trouble assigning tags so I now only see the text even though I've assigned myself the correct tag and therefore should be able to view the downloads. What do you think this could be?
You'd need to give us some more information about what you have done, including your code, if you need us to reproduce a problem.
Well the code for the downloads page and template is above.
I haven't changed anything particularly fundamental to the original files except for some styles. So, I'm not sure what code to pull out for the tag problem.
I have never used the members app before, what is supposed to happen to the users profile in when a tag is assigned?
When 'Editing a Member' I enter a tag into the tag box and click Save and nothing seems to happen. I would assume the members Tags would be displayed in some way but that's not what is happening.
The tags don't get displayed. They're for applying rules and filtering members within your application.
But the filtering isn't working, and I now also cannot change the members status from pending to active.
What other information do I need to provide to help figure this problem out?
I'd need to see the code that isn't working.