By loucapo on
I am a little lost and need some help. I am adding in custom html for a right sidebar. this html is stored in 2 separate blocks. for some reason these blocks are not getting the "node" class assigned to them and therefore lose the formattine of the rest of the page, ie padding/margin and separator lines. I think there is something I am doing wrong. Can anyone point me in the right direction?
Comments
You'll need to be a lot more
You'll need to be a lot more specific with your question. If you want to you can send me a private message with details (if you don't want to post them on here). Or not -- it's up to you. However some examples of "being more specific" would be:
---
Yo that's shizzle.
thanks for the quick reply
I am trying to put 3 elements in the right sidebar, a news aggregator, an ad (a png) and a video archive link. it was recommended to me to put the latter 2 into individual blocks. I did that but the dont get all the same formatting as the nodes in the left column. would you recommend to just apply the same styles to the block-block class as the node class has?
I have the proper input set and am not entering any php as of yet.
Let me know if you need more details.
thanks again!
If I understand you
If I understand you correctly, then yes -- I would say keep the aggregator separate. Is it the built-in aggregator that's part of the Drupal core? If so, then definitely yes.
As far as the png ad, is it just the picture (and link)? And/or does it rotate or anything?
And when you say video archive - are you referring to a list of text links
or more like a table area with previews/thumbnails that are always changing(<-- couldn't be because that would require php scripting...) or something different?Not sure if anyone showed you this or not but-- well first, how are you getting these blocks? Like are they already there or are you clicking "Add block" and then putting in the HTML code? Reason I ask is because if you're doing the second one (manually adding the blocks) it would help if you posted the code so I/we could get a better idea of the situation. (Obviously you could change words around if you want, like typing <a href="http://www.someothersite.com"> instead of <a href="http://www.mysite.com">...)
If you can do that -- post the code --, what I started to say a second ago is using the <code> tag to post your code on here, in case you didn't know already, is really cool and helpful. If you already know then you can ignore this part but if not, FYI, basically anything you post between <code> and </code> will not be treated like actual "code" but rather it'll display exactly what you type in.
Quick example: normally if you were to post something on this site and in that post you typed in this:
<a href="whatever.php">click here</a>
... to everyone who reads the post, it would show up like this:
click here
as opposed to the code you actually typed in, which, again, would be this:
<a href="whatever.php">click here</a>
And actually with the code tags, what you would see would be this:
<code><a href="whatever.php">click here</a></code>
and what everyone else would see would come out looking like this:
<a href="whatever.php">click here</a>SO, when you surround the text with the code tags, it tells drupal, "Leave everything inside here the way it is so other people can see it the same way you see it."
Anyway, sorry if I lost you (or if you already knew that) but I was going to post that on here anyway to help people out -- now I can just copy/paste it! :) Either way, the more info the better for troubleshooting... Let me know what you can. Talk to you soon.
---
Yo that's shizzle.
The blocks were added at
The blocks were added at someone on twitter's recommendation by clicking add block from the blocks page. Then in the video archive one, I put in an image and a link to the current video of the week.
For the ad block, it is just 1 static ad for now, it will hopefully grow over time. The code for that section is very similar to the video block.
I'll PM you the link to the site, not that its super confidential or anything.
Couple suggestions... All
Couple suggestions...
<div>entries (when inside a block) can make the block look "weird" because of line breaks & stuff...<div id="advert">ADVERTISEMENT</div><div id="votw"><img src="/sites/default/files/ad1.png" /></div>to maybe something like<div id="advert">ADVERTISEMENT</div><div id="votwAdvert"><img src="/sites/default/files/ad1.png" /></div><div class="..."rather than<div id="..."---
Yo that's shizzle.
Ok I think that makes sense,
Ok I think that makes sense, but it doesnt explain why I can't get the blocks to behave like the nodes. They should have the same look and feel for all users.