Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Drupal blog

Featured Replies

Hi all

 

Here is my blog page which lists all blog entry content regardless of the category term ‘fish’ or ‘cats’.

 

I want the ‘fish’ and 'cats’ nav menu items to look like this blog page except with only ‘fish’ and ‘cats’ category posts respectively.

 

 

Any suggestions please??? :unsure:

 

thank you

Hi Juc1

 

I would suggest that you use the views module

drupal.org/project/views

 

After downloading and enabling the module you should see an additional item on the administration page called 'views' [it is under site building].

 

Clicking on 'views' takes you to a section which lists all of the views your site currently has [pre-built views].

 

You need to create a custom view and this can be done clicking on 'add' [next to list].

 

You need to complete the 'view name' and 'view description' fields and after ensuring that the 'view type' is a node click next. This will take you on to the default views section [the part of the module controls all of the parameters that will make up your custom view].

 

One thing to bear in mind is that views are not saved until you click 'save'. Nothing is recorded as you go along.

 

Clicking on the '+' icon allows you to add a field. Clicking on the 'arrows' allows you to rearrange and delete your selected fields.

 

When working with the interface after clicking on a field the options that are available to you appear just below the list of settings you just clicked on but before the live preview section.

 

To make a custom view of a blog post based upon the taxonomy terms you need use the following settings:

 

(i) fields section:

node: title

node: body

 

You make your selections (the check boxes) and hit add.

You will be given some options for each selection. With the body selection remove the word label to take out the label and then click 'update'. For the title selection, again remove the word title from the label but also mark the check box 'Link this field to its node ' [at the bottom] just before clicking update.

 

(ii) filters section

node: type

taxonomy: term

node: published

 

Again make your selections and then hit add.

For node:published select yes and hit update, for taxonomy:term 'select is equal to' and then write the term [so Fish or Cats] and hit update and finally for node:type select 'is one of' and then select 'blog entry' before hitting update.

 

If you hit preview you will now see how the page is looking.

 

You could add more options such as the taxonomy term but adding more fields to your fields selection. Unfortunately I'm not sure how you add the submitted details [submitted by Arnold on Mon, 07/19/2010 - 18:09] but I'm sure it is in there somewhere.

 

The final steps you need to take are to create a page for your view.

 

At the top of the views interface you will see a drop down list of options, page is usually the default but there are other options such as 'attachment', 'block' and 'feed'. Make sure page is selected and hit add display.

 

Page should appear below the word default and you can see that it is highlighted as it should have a white background.

 

You need to look at the 'page settings options'. Click on the blue italic phrase 'None' next to path and add your path then click update. Repeat this option for the menu if needs be.

 

Save the view and then browse to your chosen path.

 

Another option you might want to look at is the items to display field in the 'basic settings' block. It is usually set to 10 but you can amend this limit.

 

If you create more than one display, eg page and an rss feed you would need to look at using the override some of the fields have as if you make a change to one display it changes all the displays in that view (unless override has been adopted).

 

Hope that helps,

 

Paul

  • Author

Hope that helps,

 

Hi Paul,

 

Awesome, thanks so much. I had just added views but it would have taken me about 3 years to work all that out!! :o

 

So I now have a fish page! One thing though the blog entries are displaying a bit strangely eg post title after text and no author / date / teaser like my regular blog page. Anyway I will keep working on it and thanks again for your awesome help. :)

 

 

 

Julian

Hi Julian

 

To get the blog posts to diplay properly you will have to re-arrange the field order [the title has to be before the body]

 

Not sure which field adds the submitted by information. Let me know if you find it!

 

Paul

  • Author

 

Not sure which field adds the submitted by information. Let me know if you find it!

 

I added the fields...

User: Name

Node: Post date

 

...and swapped 'body' for 'teaser'. I can hopefully add more fields to include any comments and hopefully change the style to make this look more like this

 

thanks

  • Author

to make this look more like this

OK so since posting this above, the styles are now matching after changing 'row style' from 'field' to 'node' in 'basic settings' = awesome. :)

 

thanks :)

  • Author

Hi all,

 

At the end of each of my blog entry posts it says 'Arnold's blog (Read Arnold's latest blog entries')

 

http://juc1.byethost24.com/drupal1//node/13

 

 

Firebug tells me the HTML is

 

<div class="links">
<ul class="links inline">
<li class="blog_usernames_blog first">
<a title="Read Arnold's latest blog entries." href="/drupal1//blog/4">Arnold's blog</a>
</li>

 

 

I hate the word 'blog' so is there some way for me to reword this?

 

thanks

  • Author

I hate the word 'blog' so is there some way for me to reword this?

 

Ok I think I have found a mod for this... :)

  • Author

Ok I think I have found a mod for this... :)

Yes it does the trick... :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.