Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

Drupal Blog

Is it possible to create a custom blog in Drupal (preserving the theme) but doing it in php with my OWN database and my OWN Drupal code?

Thanks
0
Richard Korts
Asked:
Richard Korts
  • 3
  • 3
1 Solution
 
Aaron FeledyDrupal Developer and ConsultantCommented:
I'm not sure what you mean when you say your own database and Drupal code.

I usually use a content type and the Views module to build a blog in Drupal.

Create a content type called "blog post"

Add any additional fields that you'd like.

Create a couple of new blog post pages with filler content.

Create a new View.

All of this is on the first page when creating the view: Name it Blog. Configure it to show content of type "blog post" sorted by newest first. Tick the "Create a Page" checkbox and set the page title to "Blog". Set the path to "blog". Display format should be an unformatted list of either teasers or full posts, your choice. Then the rest of the options for comments or the number of posts to display per page are up to you.

Click "Save and Exit".

You now have a simple blog in Drupal.
0
 
Richard KortsAuthor Commented:
Arrow_1

I did all that, I was working yesterday with someone to TRY to get it working.

I cannot get the image to display. Look at the "What's New" at AMCindistriesdev.com. The image is there, it does not show. Plus there is no control over image placement, text wrap, sizing, etc. All the OBVIOUS things you would want to do.

The BIGGER problems are (1) I need a way to post that the poster does NOT have to know HTML, CSS, etc. Just a PLAIN person who can copy text from a word document or similar. I am using CKEditor; it does not work, I need a wysiwyg editor.

(2) I need the latest 4 posts to appear under the 4th footer (What's New). JUST the title, post date & a link.

I am almost ready to abandon Drupal & start anew with WordPress. It's a shame I have wasted SOOOOOOO much time on this.
0
 
Aaron FeledyDrupal Developer and ConsultantCommented:
It looks like you are displaying "fields" instead of "teasers" or "full posts" as I suggested above. That requires more configuration on your end. In this case you should likely change that setting in your view unless you have a reason for using specific fields. If so, you'll need to swap out that image field. You are using one that does not exist in you blog content type. That's why no image is displaying.

What do you mean when you say ckeditor does not work?

The what's new block is done in the same way as the blog page is done. Follow the instructions above, but choose to create a block instead of a page. In that one you'll want to have it display as a list of titles rather than a teaser or full page. Once you save that view, you'll have a block available on your blocks admin page that you can place in the footer.

I don't think wordpress is any easier unless you want a website that is only a blog. Anything more will require adding modules and learning how to implement them.. Just like Drupal.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Richard KortsAuthor Commented:
What I mean by CKEditor does not work:

For example, if you put a hard carriage return between two lines of text & save it, It does NOT save the carriage return. On the inner pages I just used pure text & put in HTML <br/>. If you insert an image (in text) it, you have to add margins or hspace. etc. All VERY easy in HTML..

I mean that is pretty basic stuff. It's pretty crappy that I have to do all the html in these pages ( I thought it was a CMS). I don't care about that, but the blog posts are something else.

I will try what you say about displaying "full posts". Do I have any control over where it puts the image, image sizing, text wrap, etc?
0
 
Aaron FeledyDrupal Developer and ConsultantCommented:
It sounds to me like you have ckeditor improperly configured to use a text format such as "filtered html" which will remove tags. You don't want that. I usually create a new input filter called "Rich Text" and make sure it has no enabled filters. Then I configure ckeditor to work with only that one to avoid situations like you describe. You can create a new filter at admin/config/content/formats

To have the image display as a specific size, you can create a new image style at admin/config/media/image-styles

You can then go to edit your blog content type and under the "Display Format" tab you can configure the placement of the image and set it to use your newly created image style.

Your alignment will have to be done via css in the theme.
0
 
Richard KortsAuthor Commented:
I will post a separate question about CKEditor.

Thank you for all your help; I am still exploring WordPress.

I think Drupal can probably be learned by someone like me but I CAN'T ask my customers to go through all this.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now