I created several regions and I added several blocks within these regions.
I created a Node and it's being displayed within the "content" block.
I need to know how to display a Node in a different block ("Sidebar", "Top bar" etc.).
I watched several screencasts about Views, Content-Type etc.
I couldn't find a way to solve this problem.
I know it seems ridiculous, but I've been working on other frameworks (Yii, Joomla, Wordpress ...) and it was very straightforward.
Any help is appreciated.
Best Regards, Wissam
You usually have to use a block to place content in a specific region. Content, Sidebar, and Top Bar are considered regions. Blocks can be managed from the admin/structure/block screen. You can either create a block right from that screen, or create a block view in Views and it will appear in that list. Then you can move it to whichever region you'd like.
Related
I am trying to build 10 pages that have the same structure (4 square content blocks on the right sidebar, and the general content on the left side). I am trying to build it so that the block structure remains the same on each page, but the content within the blocks is different. I tried doing this using the generic blocks provided by Drupal, but this is tedious and requires me to display the block only on each page individually, and then create a new one on the next page. Is there any easier way to do this?
You can use views with contextual filters see this video
I'm using taxonomy_menu module to render a two level menu from my taxonomy vocabulary. So far so good.
Troubles began when I decided to output levels of the menu separately. I've always used block_menu module for such tasks. I created two menu blocks and set them to display just the first and the second levels.
To my surprise, the second level block never shows up. I've done some debugging in menu_block. Looks like menu_tree_build (in block_menu) function depends on menu_tree_page_data (in menu) to get the active trails data. And the latter fails to deliver it for menus based on taxonomy.
Can anyone propose a workaround? What else should I try?
Menu block module should be useful for this. It allows to show menu blocks and set the level of menu structure.
I'm currently building a web form using APEX that is losely modelled after a "wizard" style. That is, I have forward and back buttons for most pages, etc, etc.
The problem I have is that it seems all my buttons need to be part of a region and that region needs to located in a pre-determined section of the page.
I would prefer to be able to place my buttons where I want them rather than include them into a specific region. I just want them at the bottom of the page.
At the very least, I need to get a region to ignore all my theming so that it can be "invisible" so that only the buttons are showing.
Can anyone point me in the right direction?
See this example I just created on apex.oracle.com. The buttons are in a separate region that has no template associated with it.
In fact, it would be better to create a new region template for the buttons region, with no decoration applied. This would give you more control over the location and spacing of the buttons. At its simplest this template could be defined as:
<div id="#REGION_STATIC_ID#" class="myButtonTemplate">
#BODY#
</div>
(The ID is optional, but I like all my tags to have IDs so I can reference them in Javascript and CSS if required.)
I developed a homemade CMS that posts articles and blog items, and I want to insert a block of Related News Items (basically, just a dynamic unordered list) that floats within the body copy of every article around the middle with text wrapping around it.
Is there a best practice that someone knows for getting this done? I don't want the writers to have to paste Label Control code that would permanently reside in the body copy and I would like to be able to remove the block down the road without having to do a mass Find/Replace within the database.
I know I can easily nest a control on the page to present the block, but the problem is that I don't know how to get the text within the body copy (simply text and p tags) to wrap around the block without the block residing within the same p tags.
I do understand that there are full-fledged content management systems that might be easier, but I need to use this CMS for now.
Thanks in advance...
I would add a table to the database and insert the related items there, referencing the main item's PK. Then do a LEFT JOIN on that table when retrieving an article. If there are related items, construct a floating div for display. That way, you can always remove the code that checks for related items in the future.
I am developing a public website which is the front end to information about medical conditions.
After the user does a search (questionnaire based) they are presented with the results which are categorised in to sections and sub-sections.
Information items can be assigned to both sections and sub-sections.
At the moment sections are represented by tabs across the top and the screen and sub-sections by links in a sidebar. The links in the sidebar change depending on which section is selected.
The problem is the section names are quite long (several words) and as a result the combined length of the tabs is too wide for a standard screen resolution (1024 x 768). Therefore they wrap and break the page layout. We will also have to add additional tabs in the future.
With this problem in mind and the fact our target audience is quite wide, this is a public medical website, what options are there for presenting this kind of information in a way which is accessible and easy to navigate for an average user.
How long are the subsection names? Will they fit in the space for tabs? You’re likely to get better user performance if you put the section links on the side bar menu and the subsection links in the tabs, rather than the other way around. See http://www.usability.gov/pubs/040106news.html.
The other alternative is to put everything on the side bar menu. Subsection links can appear indented under their section links. You can also consider putting the subsection links in a column of their own to the right of the section column. This makes the section menu stable, but takes a lot of horizontal space that’s perhaps better used for content. In either case, proper attention to visual design will show the current section, subsection, and the link between them.
There shouldn’t be a problem with accessibility as long as you’re using links to navigate to each section/subsection (perhaps generated programmatically for each page based on a database relating links to pages).
Just brainstorming some ideas:
Use combo boxes to allow the user to select the (sub)sections, then display the appropriate information items.
Create separate pages for each section-level and provide a bread-crumb control to show the user where he / she is in the page hierarchy.
Create some sort of fold-out menus that automatically hide when the user reads an information item.
In another question on SO, I came across a link to Quince, perhaps you can find some inspiration there as well.
You could try:
An iPod-style menu (in which subsections are hidden pages that fly in from the right): http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/
Or as Daan has said:
Cascading drop-down boxes: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx
The downside with both of these (over a traditional tree view) is that the subsections aren't visible until you choose a section. If your users don't know the name of the subsection they're after, then either of these will be a good fit.
If, on the other hand, they do know the name of the subsection they're after, it's probably better to give them an auto-complete textbox so they can type a few characters and go directly to it.