Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi all,
What I am trying to achieve is to limit the list view in the admin panel to display only certain pages in the list and those are the only pages that can be edited by the admin user. (super admin can view all pages).

I tried but didn't work:
Code: Select all
<cms:config_list_view  exclude="default, <cms:pages masterpage=k_user_template page_name='NOT admin'><cms:show k_page_name/></cms:pages>" >


similarly, how do I hide all custom fields in form_view except few, rather than using 'hide' or 'skip' property for each field ?

any idea how to proceed?
Thanks and appreciation!
What a nasty housewife! A guide to write code in unknown grounds -

1. Test code with manually written values first
2. Write code generating those manually written values
3. Verify it somewhere else visibly on page and check production works as expected.
3. Replace manual values in the desired place with the code written at step#2 and tested at step#3.

(Absense of a comma might be a problem in your pasted code, because you didn't test it, I mean skipped step#3).

As for the latter problem - use CSS.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Yea, that was a mistake on my part. I forget the comma. :mrgreen:

However, the pages tag is not bringing up disabled/unpublished pages.
Hence hiding is working but it does not hide unpublished/disabled pages

EDIT: solved
solved using following query!
Code: Select all
<cms:query sql="SELECT p.id, p.template_id FROM couch_pages p WHERE p.template_id='6'  AND p.id NOT IN(90,166)  AND p.parent_id=0 ORDER BY p.publish_date desc" paginate='0' fetch_pages='1' ><cms:show k_page_name />,</cms:query>
the pages tag is not bringing up disabled/unpublished pages

Parameter show_unpublished='1' didn't work for you??
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Didn't know it exist in the first place :shock:
I'll give it a try.
5 posts Page 1 of 1
cron