block
Infoga php i block
Jag provar att hämta och presentera innehåll från en annan webbplats i ett block på följande vis:
<?php
$homepage = file_get_contents('http://www.exempel.se');
echo $homepage;
?>Det enda som visas är koden som skrivs ut i blocket?
Nyheter i egen region
Hej!
Jag försöker få mina nyheter från views att visas i ett block eller region som jag själv skapat. Jag hittade den här länken http://www.webopius.com/content/125/creating-custom-regions-in-drupal-th... och trodde att mina problem var lösta. Har följt instruktionerna till punkt och pricka men jag lyckas bara med att få till ett fält. När jag vill lägga till mina nyheter från Views i detta block så syns de inte alls. Behöver man göra något mer?
Mvh Frida
AJAX Loading of any Block
For sites that like to use a cache to serve the full page (boost, drupal core cache, ect...), but still would like to have more dynamic content in a block; loading of blocks via ajax seems like a good way to accomplish this. I've already accomplished this with the boost module and I'm wondering if/how I should abstract this out to be a generalized solution.
Simple way
Below is the simple way to do it, for one or 2 blocks it works. For anything more then that it would probably have a negative impact since it's doing a full bootstrap for each block.
blocka.php
How can I retrieve the context from a panel to a custom block placed in it ? (with panels 3)
I don't figure out how to retrieve the panel's context to modifie the block's content.
Maybe would I better to make a new pane instead a new block ?
It's would be great if I could choose the context and pass arguments form the block setting in panel, like with a view.
Let's imagine I've made a custom block in a custom module like this :
how to make bordered block on slate theme
hi,
I recently installed and modified acquia slate theme onto my site and I absolutely love it.
I just have one thing that bothers me. Unlike the left sidebar, I see that right sidebar doesn't have borders which makes it look very disorganized. I want to know how I can enable the border for the right sidebar.
for your info, my site is: http://www.roflegion.com
Thank you,
Kelvin
How to create event: "User adjusts its location in drop down list" using a drop down list in a created block ?
Hello!
I would like to do the following:
1/ create a block with a drop down selection list with a list of taxonomy terms (corresponding to locations)
2/ when the user updates the value in this dropdown selection, it would generate an event, and pass the selected term
3/ then a rule would be created using this event: when it happens, it would trigger an action to redirect the user to a page .../selectedlocation
I think i can do 3/ with rule.. would you know how i can do 1/ and 2/ or of any related documentation? Or do you think of a better way to do it than with rules?
Blocks: wrong word?
There may have been discussion about this before, but I'm not aware of it. I know there's a similar discussion about the word "node."
Something I like to do just to see how "usable" my site is, is to watch someone register and try to use the site without giving them any help. I was doing this the other day, and a user went to edit her profile. Everything was fine until she got down to the section where you can enable or disable blocks; she just skipped it. I asked why, and she said she was confused; she thought "blocks" would "block" information.
Keeping Blocks in Synch
Hey folks,
I've worked on a number of Drupal sites where we needed to keep multiple sites in synch, and Drupal has been a challenge to keep that way because so many options are changed through the UI - this tends to show its weakness when we want to keep the settings across all sites (don't even mention content). Moving content types and views is easy with the import/export tools, but blocks are another story. The visibility rules, Roles, and input formats all require your time and attention to detail - time you could be spending working on other features.
Custom NODE-X frontpage with views
Last week I started the challenge to upgrade <a href="http://testedgroup.com" target=_blank">my custom zen sub-theme from zen 5.x-0.7 to zen 5.x-1.0 which has taken a couple more hours effort than I had originally expected. The outcome so far however was worth the effort. Thanks JohnAlbin and contributors.
With the excellent documentation, I have decided to start and modify my frontpage from the traditional river of news to display NODE-X that wraps around BLOCK-X displayed on the right hand side of the content. Now I have hit a barrier and I need your input...
"Private messages" link in "Forum stuff" block doesn't work
I installed phpbb3 and phpbb module.
"Forum stuff" block shows 3 links: private messages, unread topics, unread posts. Links to topics and posts work, but "private messages" links to a "forum/inbox" which doesn't exist. But inbox exists, I can use it from the forum.
Why?







