have side block appear only for one page

Post

Posted
Rating:
#1848 (In Topic #359)
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’

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:
View topic: have side block appear only for one page - ocPortal.com

and some good examples and info here  ocPortal Tutorial: Customising what's on the menus - ocPortal.com

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

 
Online now: No Back to the top

Post

Posted
Rating:
#1852
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

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 Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • 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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Vaiva, MVLipwig, amit.nigam, gabriel58, Salman, mytracker, John Connor

Forum statistics:
  • 1,296 topics, 5,829 posts, 7,064 members
  • Our newest member is flour2door
Birthdays:
Back to Top