Hello,
I'm trying to auto-generate a QR code that contains a link to the page being edited. I was able to get it working for my normal pages, but I'd also like to have the same feature for my dynamic folders.
I've got 2 PHP files, stop.php (contains the template for the pages and logic that shows a different view when the user is visiting the page as a folder) and stop_folder.php which is just some extra dynamic fields for the folders.
Here's the relevant code from stop.php
Here's what I've got for stop_folder.php
I've tried putting the code for the QR code into the stop_folders.php, but the dynamic folders template is hidden for normal users in the admin portal. It shows up when I visit the hidden folder template as a super admin, but not when I click the "Manage Folder" button on the page view. When I remove the <cms:config_form_view> from the stop_folder.php page (and just keep the <cms:field>) nothing shows up on the admin portal at all.
Is there some sort of <cms:config_folder_view> tag that I should be using instead to get the QR codes to show up on the dynamic folders form page?
I'm trying to auto-generate a QR code that contains a link to the page being edited. I was able to get it working for my normal pages, but I'd also like to have the same feature for my dynamic folders.
I've got 2 PHP files, stop.php (contains the template for the pages and logic that shows a different view when the user is visiting the page as a folder) and stop_folder.php which is just some extra dynamic fields for the folders.
Here's the relevant code from stop.php
- Code: Select all
<cms:template title='Tours' clonable="1" commentable='1' comment_masterpage='stop_comment.php' dynamic_folders='1' folder_masterpage='stop_folder.php'>
<cms:config_form_view>
<cms:field 'qr_code'
label='QR Code'
order='10'>
<img src="https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=<cms:show k_site_link />stop.php?p=<cms:show k_page_id />&choe=UTF-8" />
</cms:field>
</cms:config_form_view>
</cms:template>
Here's what I've got for stop_folder.php
- Code: Select all
<cms:template title='Tour Folders' clonable='1' hidden='1'>
<cms:config_form_view>
<cms:field 'qr_code'
label='QR Code'
order='10'>
<img src="https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=<cms:show k_site_link />/stop.php&choe=UTF-8" />
</cms:field>
</cms:config_form_view>
</cms:template>
I've tried putting the code for the QR code into the stop_folders.php, but the dynamic folders template is hidden for normal users in the admin portal. It shows up when I visit the hidden folder template as a super admin, but not when I click the "Manage Folder" button on the page view. When I remove the <cms:config_form_view> from the stop_folder.php page (and just keep the <cms:field>) nothing shows up on the admin portal at all.
Is there some sort of <cms:config_folder_view> tag that I should be using instead to get the QR codes to show up on the dynamic folders form page?