Hi!
I am working on sort of a profile directory for a business.
In the admin, I've added a checkbox that let us choose if the profile is available on PAGE-A.php (for example), and/or on PAGE-B.php.
They can be on both if both checkboxes are checked.
Right now, it's not working correctly. I used the CSV import script to import all my profiles, and by default, all profiles are appearing on PAGE-A.php. But now, I only have few profiles that needs to appear on both. So when I go in these clonable pages profile, I check both checkboxes, hit "SAVE", but nothing changes on the front-end.
What I have noticed is that if I create a new profile (after all the profiles being imported), and select both checkboxes, or one or the other, it works. So it looks like only the profiles that have been imported are not following the checkbox thing rule.
Here's my code on the PAGE-B.php (the page where only few profiles should appear...that is not working right now) :
On the PAGE-A.php, it's the same code, except with :
instead of
Like I said, it works when I create new profiles, but it doesn't work if I edit current ones.
Is that a cache thing?
Thanks!
I am working on sort of a profile directory for a business.
In the admin, I've added a checkbox that let us choose if the profile is available on PAGE-A.php (for example), and/or on PAGE-B.php.
They can be on both if both checkboxes are checked.
Right now, it's not working correctly. I used the CSV import script to import all my profiles, and by default, all profiles are appearing on PAGE-A.php. But now, I only have few profiles that needs to appear on both. So when I go in these clonable pages profile, I check both checkboxes, hit "SAVE", but nothing changes on the front-end.
What I have noticed is that if I create a new profile (after all the profiles being imported), and select both checkboxes, or one or the other, it works. So it looks like only the profiles that have been imported are not following the checkbox thing rule.
Here's my code on the PAGE-B.php (the page where only few profiles should appear...that is not working right now) :
- Code: Select all
<cms:pages masterpage='profile.php' paginate='1' limit='8' >
<cms:each profile_titles as='titles'>
<cms:set my_category="<cms:show titles />" />
<cms:if "<cms:not_empty my_category />" >
<cms:if my_category = 'Animateur' >
<div class="conferenciers-card">
<a href="<cms:show k_page_link />"><div class="profile-card-photo" style="background-image:url('<cms:show profile_image />')"></div></a>
<a href="<cms:show k_page_link />" class="profile-card-title"><cms:show profile_prenom /> <cms:show profile_nom /></a>
<div class="separator profile"></div>
<div class="profile-card-text"><cms:show profile_soustitre /></div><a href="<cms:show k_page_link />" class="w-button profile-card-button">En savoir plus</a>
</div>
</cms:if>
</cms:if>
</cms:each>
</cms:pages >
On the PAGE-A.php, it's the same code, except with :
- Code: Select all
<cms:if my_category = 'Conférencier-Formateur' >
instead of
- Code: Select all
<cms:if my_category = 'Animateur' >
Like I said, it works when I create new profiles, but it doesn't work if I edit current ones.
Is that a cache thing?
Thanks!