WYSIWYG Page Description or Custom Attribute?

Permalink
I'm trying to setup some pages to function like a blog but I don't want to use an actual blog block to do it.

So, right now I'm trying to create a top level summary page that pulls in some of the content of each child blog post. I tried hacking the Parent Area block to make it pull in a set number of child pages but no luck there. Then I thought I'd resort to second best which would be pulling in the page description. However, it doesn't allow for WYSIWYG which could potentially be an issue if someone has a link or bolded text in the first paragraph of the blog post. There also doesn't seem to be a way to setup a WYSIWYG custom attribute.

Can I modify a particular file to get either the page description to become WYSIWYGified or the same for custom attributes? Or is there another way to pull in actual HTML from a child block area?

 
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Have you played around with the built-in blog functionality (either install a new site with the "Sample Content/Blog" option checked, or if you already have a site set up without it and want to add it in, see here:http://www.concrete5.org/documentation/how-tos/editors/manually-set... )?

The basic idea is that you have a "blog entry" page type (which corresponds to a blog post), then the top-level index page has a Page List block in it that shows some content from the 5 or 10 most-recent "posts" (pages of the "blog entry" type).

The way that built-in functionality works is that instead of having a separate description attribute, it pulls some content from the page itself. If for some reason you don't want to go this route but still want this "pull content excerpt from the page itself instead of using a separate attribute" functionality, check out the free "Page List Teasers" addon:http://www.concrete5.org/marketplace/addons/page-list-teasers/... .

Or if your really really still want to have an attribute for the description (which means the people typing in blog posts need to enter the description separately from the content, which probably means them having to repeat themselves a lot), there is definitely a WYSIWYG attribute type. I think it's just called "Text Area", and then after you create the attribute you can choose something like "Rich Text" as an option.

Hope that helps!

-Jordan
TNTdesign replied on at Permalink Reply
Awesome, thanks Jordan. I'm going with the Page List Teaser option - that's exactly what I was looking for. Thanks! I'm always amazed at how often and thoroughly you help so many people in these forums. They should create a badge just for you - something like C5 Rock God.

Thanks man.
jordanlev replied on at Permalink Reply
jordanlev
Heh... thanks, glad that made sense to you. And I would not turn down such a badge if it were offered -- you should petition the core team to make that for me :)