Creating a Blog

Permalink
So I'm looking to create a blog on my personal site. I'd like to have the prototypical format of having a main page that has recent posts... The title of the post linking to the full post, and the first chunk of the post following.

So far it seems the way to do this is to use the page list block and then paste the first chunk of your blog into the description field of the individual post pages.

I have to think there's some better way than this.

Mostly I'm curious to hear the approach people have taken toward solving this issue.

There aren't many occasions in my career in which I've tried to convert a good CMS into a blog... Generally I've been stuck trying to convert a good blog into a CMS. The grass is definitely greener on this side of the fence! :)

jereme
 
frz replied on at Permalink Reply
frz
thats actually exactly the way i've done it in the past.

the most we ever did was hack an interface on top of it so you didn't have to make a new page and put it in editmode, but instead it behaved like wordpress and created the architecture you're describing..

im all ears as to what would be better.
jereme replied on at Permalink Reply
jereme
I think what I'd like to see most is a work around for the description hack. Something that could actually just grab content from the post itself.

There are also other hurdles... Like navigating archives. Perhaps a cleverly crafted posting page could organize things by date so traversing the hierarchy could be done with autonav templates.

I think I envision a group of blocks:

- Viewing blog post block
- Viewing collection of blog posts block
- Archives navigation block

And lastly a single page for posting.
atomix replied on at Permalink Reply
I'm confused about how you do what the op said for this "blog". I created a page list, but where is this "description" area they speak of?

Thanks!

PS: Can I suggest that a cursor be put in all textfields?
frz replied on at Permalink Reply
frz
when you make a page there's a short description field. You can also get to it from page properties once a page is made....
vernon replied on at Permalink Reply
I run a marketing website and love C5 it's clean and I get tons of complements on my site daily from clients. the problem I have is I need a blogging solution that is quick so I can feature a story about something and move on with having to create a list. Is there a way to integrate Wordpress with C5 so I can have the back end blog ability of Wordpress and the clean look of C5
Remo replied on at Permalink Reply
Remo
You don't get a lot of features on the client side but I'm using a modified rss block to achieve that..

There's a lot of custom code in it, no way to publish it but even if you start with the rss block of the core you get a first impression.

You don't get a "real blog" in c5 that way but you can show the articles of wordpress really easy this way.

But I'm not sure what your goal is.. If you want a real blog view with archive, search functions and stuff like that, the rss block is definitely not enough!
dave replied on at Permalink Reply
just started up a concrete5 site a few days ago and I'm loving it.

I'd like to hear how jereme was able to get where he wanted to go with the blog. I checked out your site and it looks really good.
jereme replied on at Permalink Reply
jereme
Let me first start out by stating that my blog athttp://jeremeclaussen.com/blog is very very basic in capability. It remains evident that better blogging functionality needs to be created, whether in the form of templates, a block, an application, single pages or whatever.

However, being dead set on using Concrete5, I proceeded to try and carve out a method for making a blog work 'for now'.

*CREATE A BLOG PAGE TYPE*

The first thing I did was to create a page type that displays the page title, author and posting time before the content.

The code I used to display this information is:

<h3><?= $c->getCollectionName() ?></h3>
  <div id='blog-envelope-information'>
    Posted by <?= $c->vObj->Version($c,  $cvID = "ACTIVE", $extended=true)->getV
ersionAuthorUserName() ?>
    at <?= $c->vObj->Version($c,  $cvID = "ACTIVE", $extended=true)->getVersionD
ateCreated('Y') ?>
  </div>


If you want comments on your blog posts, your blog_post page type should have a block area where the comments will live.

*EDIT THE BLOG POST PAGE TYPE TO ADD COMMENTS*

From within the dashboard, go to page types and click the defaults button next to it.

Add a guestbook block to the area you setup to house your comments.

*GUSSY UP A PAGE LIST TEMPLATE*

The next thing was to create a template for the page list block that was capable of displaying things in a much more bloggy fashion.

In blocks/page_list/templates I created a copy of the main block's view.php and named it blog_list.php.

Just below where page list prints the title of the page, which looks something like:

<h3><a href="<?php echo $nh->getLinkToCollection($cobj)?>"><?php echo $t
itle?></a></h3>


...I added in the following code to once again print the envelope information.

<div id='blog-envelope-information'>
      Posted by <?= $cobj->vObj->Version($cobj,  $cvID = "ACTIVE", $extended=tru
e)->getVersionAuthorUserName() ?>
      at <?= $cobj->vObj->Version($cobj,  $cvID = "ACTIVE", $extended=true)->get
VersionDateCreated('Y') ?>
    </div>


Now I have a way to display a blog and display a blog archive.

From here it's just sewing together the parts..

*CREATE THE MAIN BLOG PAGE*

Create a main blog page and just use your generic site page type, unless you have something special for this.

In the main content area of your blog page, add a page list blog. The options should be:

- Display (0) pages of type *All*
- Display pages that are located (beneath this page)
- Pages should appear (with the most recent first)
- Provide RSS Feed? (Yes)

Name the RSS feed title whatever you want.

Save the page.

*POST A BLOG ENTRY*

This part is definitely not sexy at all.

1. From your main blog page, click "Add Page" in the toolbar.

2. Select the "blog post" page type.

3. Type in the title of your blog, and... This part is important... Type the first paragraph of your post into the description field.

4. Click Add.

5. Add the content of your blog to the main content area and save your page!

*CAVEATS*

There are definite caveats here. The main one that I see is handling archives. There's no solid way to manage the archives once you have several posts.

One solution would be to post in date based folders, ie /blog/2009/01/15/concrete-blog-howto which would make it much easier to drill down, and search engines love it too!

The other huge caveat is having to type the first paragraph into the description field.

Really this is all a workaround pending a more creative solution.

I hope this helps!
dave replied on at Permalink Reply
So where did you go to actually code up a new page type? I see where you can do it through the dashboard, but it doesn't afford a whole lot of options...
rbucky replied on at Permalink Reply
rbucky
I cheat with my blog and use Wordpress. The C5 code is difficult for me to understand (my fault for not knowing much php and others). I created a C5 theme, and then created a Wordpress theme to match. Ehh, it works for now.
frz replied on at Permalink Reply
frz
You're not cheating.

I like to cook. I have big knives for cutting big things, I have small knives for cutting small things.

Look I'll be the first to jump on the "wordpress is NOT a CMS" bandwagon. Sh!t, in the early 00's you'd be hard pressed to find someone more dismissive of blogs than I. "WTF" I would think... "We've been doing content management stuff for years. You put some limits around it and list everything in reverse chronological order only and everyone loves you? Whatevs."

The reality is, blogs work. The big three make sites that google likes, and push comes to shove, traffic is important. Blogs make sense for posting aimless musings that need a lot of editing. I DO want to go to one place to start a new rant or see if there are any rant drafts I can edit and post. I do want to have easy comments and trackbacks built in, and I certainly want technorati to link to me if i'm saying good stuff.

Crap I just got out of a meeting where it's looking like the solution is going to be Wordpress/concrete5/Magento - and I'm excited about that.

Unless your blog posts are routinely going to be turning into content elsewhere in your site, why hack concrete5 into a blog? Perhaps you want to add all sorts of stuff to your blog posts that wordpress doesn't have? I dunno, i haven't spent any time in /their/ marketplace but I guess that might make sense to me...

I guess my point is.. I love the love. concrete5 does indeed rock, and you should all join the partnership program and when we start selling sweet merch you should buy it all up and whatnot... but please don't use a 7" knife to cut the skin off a pear.
ijessup replied on at Permalink Reply
ijessup
Solution = Wordpress/c5/Magento

As in, c5 as the core CMS, WP for blogging and Magento for (obviously) eCom?

brb while I change my pants... That my friend sounds like a sexy combination.

Are we talking like direct integration or new Concrete CMS Inc. renditions of the other open source projects?

You have me quite excited.
ScottC replied on at Permalink Reply
ScottC
after all, it all boils down to strings :).

Magento API to c5 blocks seems tasty, c5 hooking into a WP blog db seems kind of fun.

I would probably go the C5 db, magento db, wp db and drop into the wp db from blocks where needed, and hit the magento api to get short little "widgets" if you will of products you sell that drop in as blocks.
vernon replied on at Permalink Reply
I don't know that I'm for a Wordpress clone /C5 hybrid. All I actually need is a way to post articles that I write for clients to read and to have guest authors that don't have to know how to use C5 to post an article.

After looking closer just creating a blog page and then creating sub pages for articles may be what I have to do, but I would really love a Block or some type of add-in that adds a blog type function so I wouldn't have to go through all that. So far what you mentioned in about WP/C5/Magneto is very interesting.
frz replied on at Permalink Reply
frz
Actually, here's my thinking - and what has worked for us.

The blog is it's own beast. It's a completely separate wordpress 2.7 install on a different domain. In my mind, a blog used correctly should be a noun not a verb. From a brand/marketing prospective, a CEO can say a lot more on a separate blog than they can on their corporate site. Look at what an ass I make of myself over onhttp://concretethestudio.com The thinking is, "look if you like what our company does, go over here to see what the founders think about other stuff.. all related to various degrees." The advantage here is several fold:

A) wordpress works well now for non-geeks who need to write. The massive limitations that annoy developers actually make it much easier to get up and going than concrete5 would.

B) wordpress is already SEO friendly in ways that will take us years of work and handshaking to achieve.

C) a separate domain that links to your corporate site is a very good thing for SEO.

do we need to integrate databases between them? i think not... only reason why would be if you post to a blog page you could get a concrete5 account on the corporate site. I'm not sure i see a lot of value in that.


the magento side, yes. Deep deep integration. Andy and I will be scratching our heads about this all weekend, but the good news is I think we've got a big client who still has some money and wants it.. so hang on.
Jsn replied on at Permalink Reply
Jsn
With all due respect, Frz, I don't buy the idea that building a separate blogging site is an optimal solution. For one, that saddles the end user with not one but two interfaces to master, and the builder has twice as many installs to keep up to date. Secondly, SEO doesn't matter much if it's the BLOG site that's getting noticed and bookmarked, not the core c5 site. Tail ends up wagging the dog.

I don't need y'all to perfectly replicate WordPress functionality within c5. Basic blog capabilities (tags, clouds, display/index by category) would do the trick nicely. If I could have that, I'd be all c5, all the time, joyfully and noisily.
jereme replied on at Permalink Reply
jereme
You can turn a wrench sideways and use it as a hammer, but I'm not sure that's a reason for Craftsman to start producing a more "hammer-like" wrench.

Really I agree with both of you, but I think franz is just saying that the right tool for the job will work much better than the wrong one.

I, for one, will choose to make my blog functionality work within Concrete5.
particleastro replied on at Permalink Reply
"You can turn a wrench sideways and use it as a hammer, but I'm not sure that's a reason for Craftsman to start producing a more "hammer-like" wrench."

Awesome. Well said that man.
frz replied on at Permalink Reply
frz
Jsn..

The engineer in me is eager to agree with you. More systems=bad, if one can do it well.

I don't buy the "client can't learn two systems" idea on its own, although I certainly see the value of "less is more." My experience has been that wordpress's UI works very well for the act of blogging, and concrete5 works very well for the act of managing a website. By letting each system do what it's good at, you're actually giving each system room to improve usability for a specific task, instead of everything. Ergo, two simple systems is better than one very complicated one.

The value in having a 3rd party domain for your blog with a different tool set shouldn't be under rated. Yes, if your blog never mentions your company, it will do nothing to get traffic there. More than likely your blog template will have some prominent links to the corporate site, and the articles should have deep links to relevant areas as well.

Having those on separate domains will improve the ranking for both sites. Deeper than that however, I find from a branding prospective you set the blog up to fail if you just incorporate it into the corporate site. It just becomes a press room, the owners don't use it as the voice/discussion its supposed to be. If you're just posting a bunch of press releases I certainly would argue to keep it in concrete5.. but if you really want to help your client establish themselves as some type of expert or pundit in a field, you really should think of putting the whole affair at a separate location.

Regardless. Sure. Run your blog in concrete5 - I've made that argument in the past and I've built sites that way.

Tags can be handled via custom attributes on page types. One could easily develop a "cloud" block that would look across collections for keywords and display the cloud of which you speak. Category would easily be handled by a custom attribute thing as well, or categories could actually be holder pages under /blog and get some landing content on them. a summary block on /blog could look for all pages below it of page type "blog post" and give you the one chronological list that way.. ..

Assuming you wanted to tell your customer that they had to click and edit a bunch of blocks to make a blog post, I'm confident any PHP developer could pretty quickly make the front end of any blog out there with the tools that are already in concrete5 today.
Jsn replied on at Permalink Reply
Jsn
...You're speaking from the standpoint of a commercial developer, using terms like "from a branding perspective" and "prominent links to the corporate site." You've earned the right to think that way, given your years of experience. But it's just one way this wonderful box of toys could be used.

I'm a professional writer, with some tech chops. I maintain my own website, those of a few other writer friends, and a writing-related nonprofit or two. These sites need to easily integrate a good deal of text, but the one request I keep getting is to not have things feel too "bloggy". It conveys a too-casual attitude about their work. Booting these folks into WordPress doesn't do it for them.

You're right: C5 shouldn't be a full-blown blog platform. I'm not looking for that. Remember when "blogging" wasn't a genre in itself?

I'm blown away by Concrete5's potential. I'd be evangelizing about it now, were it not for these few key capabilities that would nudge it into a category all its own: a CMS that lets you build a website reflecting your own style AND substance.

Meanwhile, I'm compelled to stick with SilverStripe, which is less elegant but with more hybrid features.

Also...yeah, I too have no doubts that "a PHP developer" could whip up a nice block or two to do the job. Sorta why I'm bringing up the subject in this forum. :)
frz replied on at Permalink Reply
frz
Yeah, I don't get it.

What you're asking for - concrete5 does. If you're concerned that your site might feel too "bloggy" what we've got is perfect. Anything that serves the purpose of "blog" is going to have to be designed and built as part of your project, the way any other type of page would.. So should the summary block have a bunch of custom templates you could browse in the marketplace? Probably.. but ya know we're not trying to be front page. We've always been very clear that we think sites are /built/ by folks who can code, and run by folks who benefit from a simple editing interface..

That's where I get stuck on this issue. To me, what works about blogging is the editing UI, not the presentation UI. I like being able to go into my wordpress admin interface and work on new posts from there. start something and not post it.. not have to worry about a short description and long description.. etc

That's the bit i'm dubious of adding with concrete5. I think if the dashboard starting being dozens of tabs down the left for every type of content that can be on the site, we've basically lost what makes concrete5 unique and compelling. (in context editing)

Again, I'm not saying the "blogging" thing isn't an issue. I just maintain it's an adoption/learning curve issue not a functional one. No one has been able to explain to me in clear terms just what a concrete5 "blog" would be. Is it just some front end presentation templates to make it feel "bloggier" or is it a administration console that is geared towards the blogging process?
Jsn replied on at Permalink Reply
Jsn
First of all, let me tell you how awesome it is that the product's creator is actually engaging with me, rather than ignoring me or telling me to get lost.

I'm looking for exactly two things:

1.) The ability to group and show pages according to various criteria. We already have a "Page List" block. It would be nice if I could also list (and perhaps display partial text from) those same pages, but ordered by keyword, chronology, author, etc--any slice and dice that's appropriate. Perhaps a "Text with Tags" block would do the trick. You could pick whether the fields are displayed, or just used for grouping purposes. Then you make a new page with a "List from Tag" block, and voila.

Clouds and other folksonomies might be easy enough to throw in, since they're just more tag display options. But no biggie.


2.) An easy way to make the content as shareable as possible. This would be a popular addition--just a block that serves up the appropriate Reddit, Digg and other social bookmarking icons.

That's it. Fits elegantly into the current C5 schema and interface--just a few new types of blocks, and ways to display them. Can you see how those two things could make a content-rich site much, much more accessible and popular?

Feel free to berate me soundly if this already exists in readily usable form. The key words, though, are "readily usable". No doubt this is child's play for someone to whip up on a roll-your-own basis. But that someone ain't me, at least not at this particular juncture on my journey up the learning curve.

Again, thanks for your time.
frz replied on at Permalink Reply
frz
No i wont. ;)
Yes i find this blog non-sense to be extra-specially annoying - but i recognize everyone has been conditioned to think of "blogs" as the way you edit things on the web. It's a question we get all the time, so clearly we have a learning/communication challenge to address - regardless its nice to have people continue to ask for what they want.. <grin>

1) is an interesting request. a php developer could easily do the type of thing you're talking about using the custom attributes associated with page types, and then making a custom display block. That being said, i think a nice little add-on for cross searching keywords or something would be cool for any type of website, not just a blog. I don't think its entirely clear how this should behave, but its got good potential and should be developed by someone.

2) i now berate you:
http://www.concrete5.org/community/marketplace/addons/addthis...
ktranfx replied on at Permalink Reply
ktranfx
I fully agreed with Jsn. I been looking for a capable, reliable and flexible CMS for quite sometime, I finally found it, C5. As clean as it is and as original as it is, I would hate to it being toss and mix around with something else like WP. Although I am brand new to C5, but I already fell in love with it, have not had time to mess around with it much. I am confident that with lots of gurus out their like the C5 group can put their heads together to come up with one of the best open source CMS out there that would encompass both Website and Blog capabilities. That's my hope and my wish.
freestylemovement replied on at Permalink Reply
freestylemovement
i know it can be a sensitive issue for many developers, but it sounds like a lot of us looking to have a few more features that WP packs into its feature would require a lot of manual scripting, which might be tougher for the level of development most users would be in, but you seem to have emulated pretty well in your site. unfortunately i'm not sure (other than looking @ the CSS & source ) how you coded the PHP portion.

just to be clear, i'm under the assumption that concrete the studio is a page-list block, with content feeds. i would be talking about the specific page-content type that contains the body, comments etc etc, and i could probably handle it from there.

i know for me, it would mean everything to have such features as time stamp, comments and tags, because i do enjoy building pages by hand through c5, it's just that coming up with new features isn't always clear right away, and i often spend a long time searching for clues over the internet.. ..


thanks.
Remo replied on at Permalink Reply
Remo
no, the site uses wordpress and not c5!
frz replied on at Permalink Reply
frz
http://concretethestudio.com/2008/04/23/a-few-of-my-favorite-things-or-why-this-blog-is-in-wordpress/
jereme replied on at Permalink Reply
jereme
Dave,

Page types exist as php files within your theme directory. If you've got PHP experience, I don't recommend working on them too much through the interface, except for establishing default blocks.

You can just copy default.php in your theme to blog_post.php and add in the extra block area. Then go into page types in the dashboard and add your new page type.
freestylemovement replied on at Permalink Reply
freestylemovement
i tried pasting the code for author & time stamp inside a content box but it doesn't recognize the code.. do i need to put it in certain tags, or have a specific/separate php file?

thanks, and nice work!~
ezierler replied on at Permalink Reply
I tried to follow your instructions but beeing new to C5 I am still struggling to get the whole picture. I am not sure how you actually created your page type in step one of your post, also reading your last advice about copying default.php to blog_post.php doesn't do the trick for me, I get an error after Posted By:

Fatal error: Call to undefined method CollectionVersion::Version() in /path/to/blog_post.php on line 7

I am sure if I knew the reason for this error I would get it going ;-)
Thank's in advance for a hint on how to do this right!

Funky, I just found out the blog entry was created though, and it displays on the main blog page, clicking on it throws the aboce error again. Geuss I am not that far away ;-)
marius replied on at Permalink Reply
marius
delete it - sorry
zoinks replied on at Permalink Reply
Wow, I appreciate the herculean effort in creating such a detailed post, but I am completely lost right away when you say: "*CREATE A BLOG PAGE TYPE*... and here is the code I used to display that..."

I have no idea what you've done in Step 1, even. And it's all downhill from there.

I don't suppose you took this info and made a tutorial anywhere? Just thought I'd ask.
ziki replied on at Permalink Reply
Hi, do you think, there is a chance for some blogging possibility to be included in the future versions of C5 ?
I mean, when you create a web novadays, it MUST be maintained and renewed from time to time. All companies sometimes need to write some news.. and not having this possibility is imho a big drawback of C5.

Look at wordpress - they have both together (static pages and dynamic blog posts) and it works like magic. If c5 had a also some kind of blogging included, it would be just amazing.. I wonder why creators of C5 havent included this before ? any ideas ? thanks and sorry for lame post
ciscophoneguy replied on at Permalink Reply
ciscophoneguy
So... What is the best way to get a blog type page in C5 the way it currently is? Just create a page using the page list block? Not sure I understand.
ciscophoneguy replied on at Permalink Reply
ciscophoneguy
You have 50 entries? What then? Is the page just going to be really long. I don't mean to sound dumb, but I'm just looking for something to sustain me in the mean time.
trp replied on at Permalink Reply
;-)

I've just consumed this thread and I wonder why it's length. I am, or rather, used to be, a developer and I've gotten to the point where messing around in code and hacking pages or feeds is no longer interesting.

There isn't a good reason that C5 doesn't have a block type for publishing news-like items (not pages, not content, but "items") in reverse chron order with categorization, searching by category, receiving comments and simple syndication by any interested observer. The default viewable length of the block could be specified by the admin causing overflow to fall off the bottom where observers could easily find old items. The functionality could be extended to any user after the site admin decides where in the site tree such blocks should automatically land and where they would be catalogued/listed in case visitors want to look over all news sources. Certain users could have their news blocks excluded from mass cataloguing so they could be placed anywhere permanently, such as on the main page. The block's title would help users decide whether they were reading news, a blog, announcements or whatever.

Simple, integrated, and very desirable for a great many of us who are accustomed to seeing and using such things just about everywhere, especially on content-managed sites. Am I making any sense at all?
frz replied on at Permalink Reply
frz
I like the idea of a "faq" block that would create that type of architecture within a page.

I'm concerned that you start describing something that does feel much like that, a block managing content on one page - and by the end it sounds more like pages being made and blocks placed on them automatically.

A lot of the functionality you describe in terms of cross linking and searching is stuff I'd like to see available as stand alone blocks for the general benefit of all site architectures, not just part of some uber-AddOn blog app.

The very good reason this doesn't exist is time. We're working on ecommerce and file manager right now. Some exciting helpful blog tools will make it into our demo site as part of an update there before too long.

I would encourage you to build (or have built) whatever suits you and your client needs. We certainly have gone off in many forked directions with concrete over the years, sometimes parts make it back into the core.
superwire replied on at Permalink Reply
superwire
Im currently integrating C5 for a client and love how simpe everything is. I definitely didnt want to use a blog engine on this occasion as its a full website that is required, so C5 is great for that. However, most websites are usually going to have some kind of news area, or time-driven area where there are 'posts' published in a stuctured/digest form - and this is where C5 sadly falls a bit short.

Im not bothered whether you want to call this a blog function or not - I just think overall the system needs some kind of concept for handling "latest news", with a pagination navigation function to allow for a build up of articles over time.

This would be a great addition to the CMS! Otherwise, its got a great deal going for it so keep up the good work...

ps. oh and on this forum page its not clear whether the reply icons relate the post above or below. To address that you could take them out of the grey blocks and put them above a horizontal line ;-)
bcarone replied on at Permalink Reply
bcarone
I would recommend using the RSS feed....
hereNT replied on at Permalink Reply 1 Attachment
hereNT
I'm kind of bored and was looking at Zend Gdata and tried getting it to connect to a blogger blog as a Concrete5 block and it seems to work. Just really slow:

http://local.werstnet.com/index.php?cID=49...

http://werstnet-test-blog.blogspot.com/search/label/concrete-blogge...

Seems like most of the details being tracked could be used for getting blog posts from Wordpress, not sure what other software people are actually using. There is functionality in the Zend library for adding posts and comments, so I guess that could be built in.

Dunno, seems like more something to do as proof of concept than for any functional benefit, not sure if it's worth spending time to do any more with it...
damery replied on at Permalink Reply
damery
My 2 cents:
1) I use blogger as it is a platform for blogging plus. Just duplicate the theme/template if you need same same look. Then use rss feed blocks where ever you want on your C5 pages. you can have a feed of just a tag/label/category if you want.
2) I think out of the box and blogs are collections of content, tagged or labeled to sort the content. So a C5 blog would be a block that is more a collection of pages of content filtered by a blog attribute?

summary: I look at content as content regardless of blog/pages/feeds/links/images/files and C5 comes the closest to seeing things the way I do ... I align with the keep C5 a CMS and not a BLOG/E-COMMERCE/FORUM platform...all those are Content that can be Managed by C5 System.
mario replied on at Permalink Reply
mario
I think there's some situations where it's appropriate to let some apps do what they do best on their own. Concrete 5 is a great CMS and there's already a way to get a blog-like effect (Page-List reverse chrono and RSS feed). Although I wouldn't say no to a blog block, there are some situations where you're essentially reinventing the wheel to get all the bells and whistles of a wordpress install.

I'd say that same thing about adding a wiki block. Cool, but really seems like not much of a payoff in terms of time and energy unless someone was just doing it for the challenge.

The best reason seems to be that client's might want it all folded inside the same CMS. However, one could sell them on the SEO benefits of having it on an entirely separate site...
marius replied on at Permalink Reply
marius
Hi jereme

First thank you for the blog guide.

I try to include this in my c5 site v5.3.1. It doesn't work. I think the object class code have changed?

Know anyone the new code for:

- AuthorUserName
- Date/Time is this:
$cobj->vObj->cvDatePublic
Is it possible to format the date/time on an easy way?
- exists a guide/howto to the C5 objects?

Thank you very much

marius
jereme replied on at Permalink Reply
jereme
You can access the publish date via the collection object:

<?= $c->getCollectionDateAdded('F j, Y') ?>

For more information about formatting:

http://us3.php.net/manual/en/function.date.php...
marius replied on at Permalink Reply
marius
Thank you - it works :)

And how you read out the author?

This code doesn't work:
<?= $c->vObj->Version($c,$cvID="ACTIVE", $extended=true)->getVersionAuthorUserName() ?>


Thanks

marius
ryan replied on at Permalink Reply
ryan
<?= $c->vObj->getVersionAuthorUserName(); ?>
marius replied on at Permalink Reply
marius
works also :-)

thanks
marius replied on at Permalink Reply
marius
Is it easy possible to read out the posted comments in the pagelist linked page guestbook?

example:

---

#pagelist block

posted by: admin
date: 18.10.2009
comments: 2
Text: short text

#pagelist linked page
posted by: admin
date: 18.10.2009
comments: 2
Text: full text

Comments:
test1

test2

Number of comments 2

---

Thanks

marius
marius replied on at Permalink Reply
marius
Hi

Have an other question about the "blog".

I would like to create a page type that displays the page title, author and posting time before the content.

I have created the page type and a new template file. In the template code i would like to read out the author, page title and the posting time.

<?= $c->vObj->getVersionAuthorUserName(); ?> 
<?= $c->getCollectionDateAdded('F j, Y') ?>


With the obove code, i receive a php error. How can read out the author and the creation date? Which object must i query for the information. What are the generally rule in C5 about the objects?

Thank you

greez

marius
marius replied on at Permalink Reply
marius
How can i get the object getVersionAuthorUserName() from the content block (view.php)? Can't find a solution :-(

please help
marius replied on at Permalink Reply
marius
lol i write with my self ;)

Have found the solution:

global $c;
    print $c->getCollectionName();  
    print $c->vObj->getVersionAuthorUserName();
    print $c->getCollectionDateAdded('j F Y');
arimaka replied on at Permalink Reply
Would be to improve the Scrapbook and make it into a blogging app. If I could just group my Scrapbook blocks into Categories I could display the data later in different ways on the sites.

I am not a blogger, but I work in music and film; and would love to post my recent works in blog format. It's really hard to do in C5, and in other tools it's been way easier.

I think lots more functionality needs to be added to the core on concrete5, to make it the ultimate platform for creating all kinds of web apps, and have easy ways for clients to control the front end and the back end as well.
frz replied on at Permalink Reply
frz
i know various developers are working on various blog add-on solutions for concrete5.

that makes sense to me, not every site i build has a blog in it, if you need to "blog" (Whatever that means) you should have choices..
marius replied on at Permalink Reply 2 Attachments
marius
Hi all

@frz a better solution for a news system would not be bad...

But "my" "news-system" is almost done. But i have one questions:

How can i read out the posted comments in the guestbook? See the example images. Exist a easy solution? ;)
synlag replied on at Permalink Reply
synlag
hi marius,

can you point me how you did count the comments?
Tried it like posted athttp://www.concrete5.org/community/forums/usage/thumbnails_in_5_3#1...

Any ideas?

thx
marius replied on at Permalink Reply
marius
Hi Synlag

I have no solution, this is only a dummy value. sorry
marius replied on at Permalink Reply
marius
lsiden replied on at Permalink Reply
Jereme, did you ever find a more complete solution?
jereme replied on at Permalink Reply
jereme
Keep your eyes on the Marketplace in the coming days for this very thing :)
zoinks replied on at Permalink Reply
So, I didn't follow ANY of that up there. I just read elsewhere that I can set up my own blog using pagelist.

Where can I find info about this "pagelist"? I've searched everywhere and the only place I find any info is the API which is useless for me as I need something a little more explanatory in a general context. I could read that API page for 3 hours and not be any the wiser for it.
Tony replied on at Permalink Reply
Tony
pagelist is one of the default blocks that comes install with concrete. Just create a page which will serve as your "blogroll", add a pagelist block to it, exit edit mode, and then start adding pages directly underneath that "blog roll" page.
zoinks replied on at Permalink Reply
LOL, wow that was easy and I don't even have a CLUE what I'm doing. That basically functions like a blog already. I guess what people are discussing above is how to get the truncated pagelist links to direct to a single page with the latest 10 blog posts or whatever rather than just 1 page at a time?

Is there anywhere I can read more about this pagelist feature? It seems like the standard blocks should have a little wiki section for each one somewhere, no? I can't seem to find it.
bcarone replied on at Permalink Reply
bcarone
Nate glad you were able to get that problem resolved.

Some of us are currently working on exactly what you are asking about the standard blocks that come with Concrete5. Be patient please.

There are no paid dedicated document writers for C5 and we are slowly getting there.

There will be several places very soon with some of the discriptions/uses of the standard blocks.

Thanks Bill
zoinks replied on at Permalink Reply
Hi I am getting this error on line 181:

Fatal error:

Call to undefined method CollectionVersion::Version()

in /var/www/domains/php.22graphics.com/docs/Concrete5/themes/22concrete/blog_post.php on line 181

---------
Line 181 is the code for the blog_post page as seen in Jereme's step-by-step coding example above:

Posted by vObj->Version($c, $cvID = "ACTIVE", $extended=true)->getVersionAuthorUserName() ?> at vObj->Version($c, $cvID = "ACTIVE", $extended=true)->getVersionDateCreated('Y') ?>
---------

Does that error message make any sense to anybody at all?

I know I can buy a blog block now, but there seems to be some problems with that add-on and I'd like to figure out how this stuff works, anyway.

I'm thinking maybe Concrete5 has changed something since these instructions were typed up, maybe?

Thanks.
jereme replied on at Permalink Reply
jereme
Hi Nate,

I haven't encountered this error before. Which version of Concrete5 are you running? Also, it shouldn't factor in, but which version of PHP is your server running?

Thank you,

Jereme
jereme replied on at Permalink Reply
jereme
Oh... Forgive me, I'm sick with a cold. These instructions are very very very out dated and are probably not even pertinent anymore.

Since then I paired up with another dev and we created the Blog add-on for Concrete5. You'll have to forgive me if I won't expose all of the secrets of how it works.

However, what you're looking for would probably be something like the following:

$c->getVersionObject()->getVersionAuthorUserName();


and

$c->getCollectionDatePublic();
zoinks replied on at Permalink Reply
Oh, you responded while I was responding. Okay, I'll try your new tips and if I can't get it to work, I guess I'll have to give up on understanding it and just buy the blog block.
zoinks replied on at Permalink Reply
Thanks for responding so quickly!

It's concrete5.3.3.1 and PHP 5.2.9
zedzephyr replied on at Permalink Reply
I'm planning a site with 100 information pages, built in concrete5 and concrete5 discussion forum. Also there would be a wordpress CMS so that I can install a wordpress plugin called directoryPress for health practioners to list their services. Another wordpress plugin will let people find practioners in their area using google maps zip code data.

Do you think a frankenstein creation like this involving both concrete5 and wordpress CMS would be able to live? My website experience is limited to HTML and CSS mostly, so I'm confused about whether all these wordpress plugins will interfere with concrete5?

Charlotte :)
zoinks replied on at Permalink Reply
You'd basically need 2 databases and you'd need to make WP and Concrete5 look the same by using 2 same-looking templates. I don't think you can integrate the 2 together, really. Or, if you could, I don't think you would want to as I'm sure it would be a huge hassle. But, asking a client to log into 2 different admin panels and back up 2 different databases is already enough of a hassle.


Question for database massagers: if Concrete5 just kind of dies, as can sometimes happen with free CMS, would it be easy to take the database and import that data into another CMS or would it basically be a colossal nightmare as I am imagining?
ScottC replied on at Permalink Reply
ScottC
well there is something pending that lets you bring your wordpress pages and blog posts over to concrete5, it is a bit limited as i wrote it for free and needed to stop somewhere :).

As for getting the data out of concrete5, it would be tailored to the site but getting the majority of content out of concrete5 might be a bit harder only because of how flexible the system is with arbitrary table names. It is certainly possible, and it might be a slight pain in the ass depending on the site.

I did a job where i had to move over 110 pages of content from one site to concrete5 just using copy and paste. It took 70-90 minutes so definitely not a deal-breaker.
zoinks replied on at Permalink Reply
" it is a bit limited as i wrote it for free and needed to stop somewhere :)."


Is it going to be for sale soon?
ScottC replied on at Permalink Reply
ScottC
whenever it gets approved :)
jordanlev replied on at Permalink Reply
jordanlev
If you just need a simple blog section on your otherwise-non-bloggy site, I've written up a tutorial on how to do that in Concrete5:
http://c5cookbook.com/recipes/make_a_blog...

It doesn't do archives or tagging, but for some situations it might work well.
getjoel replied on at Permalink Reply
getjoel
Has this issue been addressed by any chance? I guess I'm at a loss as to why anyone can't see that taking the first paragraph of the main body content and automatically inserting it into the description field wouldn't be absolutely obvious. Why would you think that having to create a page and then copy and pasting the first paragraph into the description field would be the easier path is beyond me?

Or even if your thought process is that when you create a page you should manually type in a page description and then once the page is created re-type and paste that description into the main body would be the better way to go...?

I must be missing something but with both of those scenarios it's redundant. I just had my fifth customer ask me why they have to copy and paste the information manually.. and I honestly don't even know what to tell them.

Is this being addressed on the next version of Concrete5?
JohntheFish replied on at Permalink Reply
JohntheFish
My addon Magic Heading does what you want, but through parsing the page in the browser and ajax to make sure it can get at any content from any source that is rendered on the page.

http://www.concrete5.org/marketplace/addons/magic-heading/...
jordanlev replied on at Permalink Reply
jordanlev
I agree that in some cases it doesn't make sense to have a separate description field. But note that it does have its uses because sometimes the "excerpt" that you show elsewhere on the site will actually have a different wording than the beginning of the content itself.

Anyway, you don't need to use the description if you don't want. I have a free addon in the marketplace called "Page List Teasers" which pulls the actual content from the page instead of using the Description field. You could also code in the retrieval of page content yourself (depending on what it is you're trying to do). Also check out the built-in blog functionality that comes pre-installed with Concrete5 now (assuming you've checked the "Install Sample Content" box during installation) -- this also pulls content directly from the pages for the excerpt instead of using the "Description" field".