Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing Content Items as a Data StoreUsing Content Items as a Data Store
Previous
 
Next
New Post
2/2/2015 2:54 PM
 

Hello,

I'm curious about best practices if/when using the core Content Items as your primary data store. It doesn't seem like this is very common, but I've heard of some people doing it.

First, it seems like it would be nice to be able to keep everything in the content items framework. Using an example of a simple blog module... is that possible? Could I do the title and body in the title and content fields and then use metadata for everything else?

Second, I'd wondered about using JSON. Couldn't I create a simple "article" object and then serialize it and store that in the "content" field? That would end up working a bit like a NoSQL system - is there some obvious downside to that approach? Has anybody done anything like that?

Thanks,

Mike

 

 
New Post
2/3/2015 4:54 AM
 
Mike,
I strongly suggest staying away from this approach, as it is not intended use case of contentItem type.
If I understood Charles' approach correctly, contentItems should leverage core access to distributed content to provide centralized features like taxonomy, search, comments and rating. Unfortunately the current implementation has never been completed to support all these features and also suffers from an IMO important design constraint: instead of storing content, DNN should provide an interface to query the original object for content representations in required format (e.g. plain text, HTML, summary).
Note: Metadata is not intended to be used as property store, but store metadata according to a standard like Dublin Core (see http://en.wikipedia.org/wiki/Metadata...), in order to create an interface with other content stores or for translation.
I hope, we will get a chance to implement this properly for DNN next.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/3/2015 10:38 AM
 
Hi Sebastian,

Thanks for this - that all makes sense. I played with it yesterday for a while and tried putting together a simple blog module using the content items. It felt like it was exactly what you'd need for a blog, but that made me think it might not work so well for other things.

Interesting note about the metadata as well. I originally figured that it was just any old key/value pair you could throw in there - but it seemed a little more structured than that.

Ahh well - I guess we'll see if the content stuff gets more developed and made clearer in coming versions.

Hope all's well,

Mike
 
New Post
2/3/2015 12:23 PM
 
there is a master table for metadata types, which is specifying the options and it should be limited to properties defined in the metadata standard you are using.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing Content Items as a Data StoreUsing Content Items as a Data Store


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out