By Tiuya on
Hello,
You know the visibility settings on hook_block?
How do I make multiple pages like
pages/*
stories/*
etc.
An array doesn't work.
Thanks!
Hello,
You know the visibility settings on hook_block?
How do I make multiple pages like
pages/*
stories/*
etc.
An array doesn't work.
Thanks!
Comments
Use line breaks to seperate
Use line breaks to separate the paths.
Example: 'pages' => "comment\ncomment/*\nforum\nforum/*" would have this:
comment
comment/*
forum
forum/*
That worked, thank you! One
That worked, thank you!
One problem. My page doesn't seem to be sowing up on the block build page. I can access it by going to the direct path, but it's not on thw list.
Changes not showing up
if I understand your question correctly, you may want to look here: http://drupal.org/node/783378
Why isn't this working for me?
When I use this:
'pages' => 'video-library\nvideo-library/*',This winds up in the database:
video-library\\nvideo-library/*My backslashes are getting escaped!
Single quotes vs. double
Single quotes vs. double quotes around the list of pages. Sheesh. This works:
'pages' => "video-library\nvideo-library/*",Very informative
Thanks for bringing this up!