Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi all,

I am using Member module with a clonable data bound form

This data bound form can access a register member who registered with member module register.php.

my data bound from have a editable name="email" and register.php have a field name="member_email"

Now I want to create a if condition like
Code: Select all
<cms:pages masterpage='job_details.php' paginate='1' limit='4'>
                  <cms:if email == member_email >

                     <a href="<cms:show k_page_link />" class="featured applied">
                        <div class="row">
                           <div class="col-lg-3 col-md-1 hidden-sm hidden-xs">      
                                                      
                              <img src="<cms:show company_logo/>" width="80" height="auto" alt="" class="img-responsive"/>
                           </div>
                           <div class="col-lg-3 col-md-5 col-sm-7 col-xs-12 job-title">
                              <h5><cms:show job_titel/></h5>
                              <p><strong><cms:show company_name/></strong> <br><cms:show company_tagline/></p>
                           </div>
                           <div class="col-lg-3 col-md-4 col-sm-5 col-xs-12 job-location">
                              <p><strong><cms:show job_location/></strong></p>
                              <p class="hidden-xs"><cms:show job_regeion/></p>
                           </div>
                           <div class="col-lg-3 col-md-2 hidden-sm hidden-xs job-type text-center">
                              <p class="job-salary"><strong>Posted -<cms:date k_page_date  /></strong></p>
                              <p class="badge full-time"><cms:show job_type/></p>
                           </div>
                        </div>
                     </a>
                     <cms:else />
                  </cms:if>
                     </cms:pages>


I mean If two email variable match <cms:if email == member_email > disply xyz <cms:else />
</cms:if>

I think there is a master-page declaration need for member_email but I cant .
can you help me?

Thanks
hi
I know how to show all post of "A" & "B" user, but I like to show when A is login (with databound clonable template) it will show a list which posted by "A"

[img]
image.png
[/img]



Kindly help me.

Attachments

Hi @Subhamoy. If a member is logged in, then the email they use for logging in should be available as a variable. When using the Members Module, I think the variable is k_member_email. Use cms:dump_all to check.
Code: Select all
<cms:pages masterpage='job_details.php' paginate='1' limit='4'>
    <cms:dump_all />
    ...
</cms:pages>

So you should be able to use
Code: Select all
<cms:if email == k_member_email >

There should be no need to use a separate custom field called member_email.
Thanks @tim,
for your support, yes its working now.

Thanks again and again...
I'm glad I could help :)
5 posts Page 1 of 1