By Tødd on
Site is here:
You see two Blocks, the first one with the title "Shots of the moment (change on refresh)." I'd like to be able to style the 'change on refresh' part separately. Is that possible? As is, if I put span tags there, they show up as text on the page. Just wondering if there was a setting I was missing to allow me to use HTML there.
Second question: I only want that two-larger-image Block to show up on the front page. But since my front page is a linked View with a pager, it shows up on subsequent pages, too. What's the best way to avoid that?
Comments
You can style the block title
You can style the block title in CSS (div#block-views-double-feature-block h2.block-title). If you want to use HTML for it, you'd have to use the block content. It's a view, so you can put it in the header and use no block title.
You can use PHP code to let drupal decide if a block should be shown on a page. I think you could use $_GET to get the page number parameter and only return 1 if it's 0 or empty.
OK, so it's looking like the
OK, so it's looking like the answer to the first question is "no," but there's a workaround if I just make a new block and put the text into a field where I have the control over HTML...heh...I was hoping it would be easier, but I can probably sort through that.
As far as the second issue, I guess I might just have to leave it alone if it requires PHP. It's next on my list of things to learn, but I want to get a better grasp on Drupal than I have first.
Thanks. :)
For the second issue, should
For the second issue, should be able to edit the block and choose to only display on specific pages, and then use the tag in that field to force it to only show on the front page.
Doug, this sounds promising,
Doug, this sounds promising, but it goes over my head a little: I don't know where the tag would be coming from, or what the syntax would be for adding it to the display field.
Just to clarify, I did
Just to clarify, I did already add to that field, but that's not good enough. If there's a pager, it shows up on the other pages.