DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Structure Content DB Schema

 4 Replies
 2 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 33
Growing Member
New Poster
New Poster
Congrats on posting!

Do all the DNN structured content tools use the same database schema? I'm thinking about Open Content, 2sxc, Live Visualizer and FnL. What I mean is, is a standardized DB schema part of this thing called "structure content," or does each vendor do it's own thing? If it's consistent, is it documented somewhere?

We use a few of these tools and sometimes would like to use standard SQL on the tables. The manner in which our data is stored is a mystery. 

Thank you. 
John  

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

I don't know about FnL, that is before my time :-) 

OC, 2SXC and LV all use json, AFAIK. 

2SXC and LV can retrieve data from the DB as a source. 
If you want to use OpenContent and also query the database, you might want to take a look at https://github.com/EasyDNNsolutions/DNNTokens

The tokens from this extension can also be used in OC. 

Advanced Member
Posts: 208
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Any generic data that is based on template/generic fields is going to be more complex than any standard database project, that is the price you pay for dynamic data.
Like Tycho says, some use json, some use a standard table arranged with primary ID and parentID (I think DNNsharp use that), OpenStore and RocketCDS use XML.
I don't think any use a standard format defined by DNN. But I may be proven wrong.

To overcome the data extraction problem I created a set of views for OpenStore, that looked at the XML in an easy to understand way. However, I never heard of anyone using it apart from me, so I did not bother doing that for RockteCDS. The difference between json and XML is that while json is popular, jpath is not as good as xpath, but both can be easily converted to whichever you prefer.

Creating a set of views for each system may be an option for you, but with difficult structures it may be a hard and long process.

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Most modules use a unique DB schema, but usually in the same database as DNN itself. Not many extensions made use of the underlying ContentItems data structure, although DNN makes use of it a lot. Developers find it easier and faster to just define their own tables.
Growing Member
Posts: 33
Growing Member
New Poster
New Poster
Congrats on posting!

Thank you all! That's what I suspected. I'm a novice developer, but the more I use structured content, the more I feel it's wonderful for somethings, but for others, like Will says, it's easier and faster to create your own tables. 

Always appreciate the knowledge and participation here. Thanks again. 

John 

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved