Fix a certain content to the top of a page

norbusan - October 22, 2009 - 17:57

Dear all,

sorry for the maybe stupid question, but I tried it now many times but did not succeed. I want to set up one page that collects several seminars. The main entry page should be .../seminars (with clean url and aliases). On this page there should be a fixed text about contact, etc etc etc. Then there should be one block per seminar entry from newest to oldest.

I found a solution but that is definitely not the best, namely by:
- changing the theme to contain several new regions
- adding a fixed new block to that region
- and let it be shown only on certain pages

But this is a pain if you have more than one of that type of pages, because for each you have to change the actual theme.

Can someone please help me with that rather simple question.

Thanks a lot and all the best

Norbert

One approach is to use the

nevets - October 22, 2009 - 18:37

One approach is to use the Content Construction Kit (CCK) to make a content type that represents a single seminar. You can then use the views module to make a view that only lists seminars, by adding a page display you can give the path 'seminars'. You can use the view header to provide the fixed text.

Hi nevets! Thanks a lot. Yes,

norbusan - October 23, 2009 - 19:04

Hi nevets!

Thanks a lot. Yes, the CCK is what I planned (or played around a bit already) to create a new content type for the seminars.

The view that only lists seminars I have already done with the SimpleViews module, and then played around in the ViewsUI with this generated view.

The real problem now is that I do not understand the last part of your suggestion: "adding a page display" and "view header to provide a fixed text". Can you give me a hint here?

Say if I have given this special view of seminars the name "group/seminars", can I *reuse* that within a different node/page? So to say that I create a new "Page" where in the content text field I add some special magic code that pulls in the stuff from "group/seminars"? Is it that what you meant? And how would that be achieved (links to docs are fine, just tell me how it is called).

Thanks a lot and all the best

Norbert

SimpleViews I seem to recall

nevets - October 24, 2009 - 01:45

SimpleViews I seem to recall already gives the view a page display, while you can create another page display, it is best to not have what is otherwise the same page with a different path.

When you edit a view the far left column shows the set of displays a view has. When you create one from the views interface, it starts with the "default" display. You add a display by picking a display type from the dropdown and then clicking the "create display" button.

To edit a particular display, you click the display name. When you edit a page display, in the next column over there will be a section labeled "Page settings", clicking the value next to "Path" lets you edit the path used for that page display.

Also in the same column (to the right of the list of displays), under "Basic settings" there is a setting for "Header", click the value to edit.

Thanks, now I got it. Guess I

norbusan - October 24, 2009 - 05:35

Thanks, now I got it.

Guess I have to study this Views manual in more detail.

As I am here asking stupid questions already, how do you recommend changing the presentation of a single seminar in that view, so that it is not a simple list of titles, but I can configure the presentation in short form, and also in the long form on each seminar's page itself.

That probably needs that ConTemplate stuff, I assume.

Thanks a lot and all the best

Norbert

Yup, for the presentation in

norbusan - October 24, 2009 - 06:11

Yup, for the presentation in the list I can use the Views module to select which fields should be shown, that is fine. And for the page display I simply use the ConTemplate.

Thanks a lot to guiding me around here!

 
 

Drupal is a registered trademark of Dries Buytaert.