Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Drupal Blog

Posted on 2013-06-12
Medium Priority
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?

Question by:Richard Korts
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 13

Expert Comment

by:Aaron Feledy
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.

Author Comment

by:Richard Korts
ID: 39242601

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.
LVL 13

Expert Comment

by:Aaron Feledy
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.
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.


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?
LVL 13

Accepted Solution

Aaron Feledy earned 2000 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.

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.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

610 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