have side block appear only for one page
Posted
#1848
(In Topic #359)

Standard member

information & question
Hello, I have been using the $MATCH_KEY_MATCH many times now to display only certain blocks or images in side panels for specific pages..This was discussed here:
Composr CMS: Content Management meets social media
and some good examples and info here Composr CMS: Content Management meets social media
here is an example i am using that works great to display an image in two wiki areas with ids of 11 and 29;
{+START,IF,{$MATCH_KEY_MATCH,_WILD:wiki:id=11,_WILD:wiki:id=29}} <img src="image.jpg">{+END}
now for a more complicated page ID I can't figure it out and would appreciate tips
for example my link page is
index.php?page=catalogues&type=category&id=japan%2Fjapan-blogs
i have tried:
{+START,IF,{$MATCH_KEY_MATCH,_WILD:catalogues:type=category:id=japan%2Fjapan-blogs}}
{+START,IF,{$MATCH_KEY_MATCH,_WILD:catalogues:type=category:id=japan/japan-blogs}}
{+START,IF,{$MATCH_KEY_MATCH,_WILD:catalogues:type=category:id=japan\/japan-blogs}}
{+START,IF,{$MATCH_KEY_MATCH,_WILD:catalogues:type=category:id=japan*}}
{+START,IF,{$MATCH_KEY_MATCH,_WILD:catalogues:type=category:id~=blogs}}
but no luck, thank you very much for ideas
stevyn
———–
Publisher of IronFeather Journal since 1987. Host of KGNU Colorado Radio for 20 years.
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido: Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp
Publisher of IronFeather Journal since 1987. Host of KGNU Colorado Radio for 20 years.
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido: Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp
Posted

Site director

I think because the URL moniker is being remapped to the numeric ID earlier than the code runs. Try using the ID of the category instead of the japan(…) bit.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
1 guest and 0 members have just viewed this.