Hi.
I am trying to filter clonable pages with a custom_field, but it's not working.
Here's my code :
This is in a custom admin theme page.
The "contrat-conferencier.php" page has a text input editable region with the name of "my_uid".
The "contrats.php" page (which is the one where I have put this code in) also has a "my_uid" region, but it's the new addon "sequential ID" region.
What I want to do, is to display a button that allow the user to create a page from another template if the "my_uid" fields matches between these 2 pages.
Is that because the "sequential ID" addon is not working inside the "custom_field" option?
Even so, I tried doing "my_uid=35760", which is an existing page with that text in the "my_uid" text field in the "contrat-conferencier.php", and it's not working either. And the "my_uid" field in that page is not using the addon, it's just a regular text field.
Thanks!
I am trying to filter clonable pages with a custom_field, but it's not working.
Here's my code :
- Code: Select all
<cms:pages masterpage="contrat-conferencier.php" custom_field='my_uid=my_uid'>
<cms:form
masterpage="contrat-conferencier.php"
mode='create'
enctype='multipart/form-data'
method='post'
anchor='0'
>
<cms:input name='submit' type="submit" id="convert" class="btn btn-primary" value="Générer le contrat Conférencier" />
<cms:if k_success>
<cms:db_persist_form
_invalidate_cache='0'
_auto_title='1'
my_uid=my_uid
conferencier_dropdown="<cms:related_pages 'conferencier_dropdown' ids_only='1' />"
langue=langue
author=author
/>
<cms:redirect "http://localhost:8888/edit/?o=contrat-conferencier.php&q=list" />"
</cms:if>
</cms:form>
</cms:pages>
This is in a custom admin theme page.
The "contrat-conferencier.php" page has a text input editable region with the name of "my_uid".
The "contrats.php" page (which is the one where I have put this code in) also has a "my_uid" region, but it's the new addon "sequential ID" region.
What I want to do, is to display a button that allow the user to create a page from another template if the "my_uid" fields matches between these 2 pages.
Is that because the "sequential ID" addon is not working inside the "custom_field" option?
Even so, I tried doing "my_uid=35760", which is an existing page with that text in the "my_uid" text field in the "contrat-conferencier.php", and it's not working either. And the "my_uid" field in that page is not using the addon, it's just a regular text field.
Thanks!