Solved

Drupal Blog

Posted on 2013-06-12
6
348 Views
Last Modified: 2013-06-12
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
Comment
Question by:Richard Korts
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39242402
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
 

Author Comment

by:Richard Korts
ID: 39242601
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
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39242655
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:Richard Korts
ID: 39242687
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
 
LVL 13

Accepted Solution

by:
Arrow_1 earned 500 total points
ID: 39242721
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
 

Author Closing Comment

by:Richard Korts
ID: 39242761
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now