Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi, KK, probable bug report here.

I'm trying to find a page, named 'w-14-y-2016-alice', with title 'w 14, y 2016, Alice'.
I don't know the name of the page, but I do know the title. With the following code I get no_results.
Code: Select all
<cms:pages masterpage='timer.php' page_title='w 14, y 2016, Alice' >
                    <cms:set existing_page_title = k_page_title scope='global' />           
                    <h2>found existing_page_title = <cms:show existing_page_title /></h2>
            <cms:no_results >
                  <h1>page not found</h1>
            </cms:no_results>
</cms:pages>

Setting up a variable and passing as page_title=my_var didn't work. Page is published.
I realise, it's probably because of commas. Any trick to avoid?

Thanks.
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
Nope, it is not a bug. Rather, it is a long existing deficiency.
The cms:pages tag does not give you an option to filter by page titles (curious as it has no problems searching through page names and custom fields).
KK wrote: cms:pages tag does not give you an option to filter by page titles
Well... I'll try to do the custom_field then.. What is the proper application of page_title parameter? In code it looks the same as page_name
Code: Select all
$sql .= $FUNCS->gen_sql( $page_title, 'p.page_title');
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
Unfortunately, custom_field can't digest 'w 14, y 2016, Alice'.
Seems a global widespread deficiency.

Will reformat the string to adapt.
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
4 posts Page 1 of 1