HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Drupal 5 to ocP: Comments

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#87671 (In Topic #17854)
Avatar

Well-settled

Getting Drupal 5 comments to an ocP site

Consider this a sub-topic of the thread about Drupal5 to ocP. After a bit of research I have concluded this is going to be the most obnoxious part of the move. Here's why.

In Drupal, everything is a node. That is, a blog entry, a forum topic, a photo, what is called a book page which is similar to a catalog entry, ... Nodes can have comments. Thus, to Drupal, a forum followup post, or a followup to a blog entry, photo, ... is a comment. Not so with ocP.

Thus, the first piece of the picture is to decide what (type of node) a comment belongs to. Each type may need some possibly different flavor or processing. Forum posts should be relatively easy but, for other types, it is not clear yet. A Gallery can have a threaded comment, for example, but CEDI does not. No solution yet, just something serious to think about.
Back to the top
 
Posted
Rating:
#87673
Avatar

CEDI posts basically are comments. Otherwise ocPortal stores comments in topics on the forum, linked to the content via a special identifier code that combines the name of the content-type and the ID of the content type the comment topic is for.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87674
Avatar

Well-settled

OK, that clarifies why comments "everywhere else" seem to work. It should be easy to get them ported.
The CEDI issue is an interesting one. CEDI actually does what I wanted in the first place but build with Books in Drupal. The idea was that the pages are authoratative and arranged in a hierarchy. The comments are intended to offer new information/suggestions that would then get incorporated into the book pages themselves.
CEDI offers the right structure for that. We would then point to forums where general discussion is needed. So, the real issue is how to deal with the current "swamp" of comment-filled book pages.
The best approach may be to actually clean up all this pages first so there will be no comments at import time. I need to evaluate the magnitude of that task.
Back to the top
 
Posted
Rating:
#87675
Avatar

Well, CEDI has two display methods. It's controlled via an option on each CEDI page.

  1. CEDI posts showing inline, as the primary content
  2. CEDI posts being initially hidden, used for discussion

'2' is probably want you want. So you shouldn't need to involve the forum, just make sure the 2nd mode is enabled for your imported CEDI pages.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87758
Avatar

Well-settled

Note to self/book folks: two CEDI modes is important.

Now, the good news. Here are my counts:
  • 544 book nodes
  • 125 book nodes with comments
  • 1025 total comments attached to book nodes
This is small enough that cleaning it up so there are no comments in book nodes before conversion makes sense. From experience, I know that when a book node has 10 comments, it is likely to be one useful piece of information and 9 comments that are just chatter.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: