内容管理系统用于不常见的目的 [英] Content management system for uncommon purpose

查看:114
本文介绍了内容管理系统用于不常见的目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要一个看似不适合通常面向文章的CMS设计的内容管理系统。



据我所知,大多数这些系统提供了一种简单的方法来创建文章(即用户查看的直接内容)并将它们存储在数据库中,以方便用户检索和组织。



但是,我想要呈现的信息不适合这个模板。我有一个MySql公司的数据库,由不同的属性描述,比如每个公司制造商的汽车零件。



CMS的需求是按页面组织不同的公司列表。说,我有页面A,我想列出与XYZ属性匹配的公司。将所有公司存储在一个数据库中并使用PHP调用它们而不是为每个列表创建平面HTML将会很方便。 (许多公司将在多页上)。理想情况下,我可以创建一堆自定义页面,每个页面都有一个自定义PHP片段来检索正确的内容。



但是,Joomla不允许使用PHP代码他们的文章,我猜很多其他系统都不是因为安全。



那里有一个坚固的系统适合我我想做什么?我宁愿不依赖可能在一两年内结束开发的非核心扩展。



谢谢。

Hi,

I have a need for a content management system that doesn''t seem to fit the usual article-oriented CMS design.

As I understand, most of these systems provide an easy way to create "articles" (i.e. the direct content viewed by users) and store them in a database for user-friendly retrieval and organization.

However, the information I want to present doesn''t fit this template. I have a database of companies in MySql, described by different attributes like what car parts each company manufacturers.

The need for the CMS would be to organize different lists of companies by page. Say, I have Page A, on which I''d like to list companies that match attributes XYZ. It would be convenient to store all companies in one database and call them with PHP rather than creating flat HTML for each list. (many of the companies would be on more than one page). Ideally, I could create a bunch of custom pages, each with a custom PHP snippet to retrieve the right content.

However, Joomla doesn''t allow PHP code within their articles, and I''m guessing a lot of other systems don''t either because of security.

Is there a solid system out there that fits what I''m trying to do? I''d rather not rely on a non-core extension that might end development in a year or two.

Thank you.

推荐答案

我不知道这样的事情,并且考虑到CMS的一个基本原则是灵活地做许多不同的事情我想象你不太可能找到确切的东西满足您的需求,因为它非常具体。



但是,我认为您所说的是向CMS添加自定义扩展/模块(例如作为Joomla)。扩展名将完全符合您的要求。

页面结构和设计(主题)由CMS提供,主题继续进入您的详细位,但您(扩展名)提供了结构和从数据库中提取数据的定义。



您建议您可以编写PHP,并且有很多关于如何编写CMS扩展的指南,Joomla 有一些 [ ^ ]。



如果你自己滚动,那么(a)你可以定制设计它可以满足您的需求,包括允许用户查看他们自己的公司/部件视图,以及(b)下次您需要做一些新的事情时,您会有一个现成的答案,自己动手: - )



Mike
I do not know of such a thing and given that one of the basic tenets of a CMS is flexible to do many different things I imagine it''s unlikely you''ll find something that exactly meets your need since it''s quite specific.

However, what I think you''re talking about is adding a custom extension / module to a CMS (such as Joomla). The extension would be the bit that does exactly what you want.
The page structure and design (theme) are provided by the CMS, the theme continues into your detailed bit but you (the extension) provide the structure and the define where the data pulled from the database goes.

You suggest you can write PHP and there are plenty of guides on how to write CMS extensions available, Joomla has some[^] in its documentation wiki I think.

If you do ''roll your own'' then (a) you can can custom design it to de exactly what you want including allowing users to see their own view of your companies / parts and (b) next time you need to do something new, you''ll have a ready made answer, do it myself :-)

Mike


你可能已经想出了一些事情,但对于遇到此问题的其他人,我建议Umbraco开箱即用(不仅仅是文章)。



查看我的文章如何开始: Umbrazure:在Azure上使用Umbraco的无限网站



Umbraco允许您以所需方式存储数据(在内容树中),获取您想要的数据(使用API​​获取Umbraco内容数据,或者使用您想要访问数据库中数据的任何数据库访问技术。



如果您希望用户通过CMS键入数据,但是将其存储在您的数据库中自己的数据库,也可以这样做。只需创建所谓的Umbraco数据类型(与编程语言数据类型不同)。它基本上是一个插入CMS GUI的用户控件。



您甚至可以使用URL重写,这样您只需要创建一个响应的页面不同的URL'并为每个URL生成不同的内容。我在上面的文章中展示了如何做到这一点(使用语言/区域)。



它是基于ASP.NET构建的,因此您可以使用Web窗体或MVC来制作你的网页。 Umbraco并不限制您访问数据或呈现数据的方式,因此天空是极限。



顺便说一下,上面的文章展示了如何公平地做某事如果您对Azure或其他云技术不感兴趣,可以以更简单的方式设置Umbraco。
You have already probably come up with something, but for anybody else who comes across this, I recommend Umbraco to do out of the box presentation (other than just "articles").

See my article for how to get started: Umbrazure: Limitless Websites with Umbraco on Azure.

Umbraco allows you to store data how you want (in a content tree), fetch data how you want (either fetch Umbraco content data with the API, or use whatever database access technique you want to access data in a database).

If you want users to type in data through the CMS, but have it be stored in your own database, that can be done too. Just create what is called an "Umbraco data type" (not the same as a programming language data type). It''s basically a user control that plugs into the CMS GUI.

You can even use URL rewriting so that you only have to create a single page that responds to different URL''s and generates content for each of them differently. I show how to do that in the above article (using language/region).

It''s built on ASP.NET, so you can use Web Forms or MVC to make your pages. Umbraco does not limit how you access data or present it, so the sky''s the limit.

By the way, the above article shows how to do something fairly advanced, but you can setup Umbraco in a much simpler way if you aren''t interested in Azure or other cloud technologies.


这篇关于内容管理系统用于不常见的目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆