开发者

CMS template creation and jQuery integration

First off I should say that I don't have any experience in working with a CMS.

I have 2 general questions about CMS:

  • How easy is it to create a template? I have strong CSS/XHTML skills, is creating a template as easy as writing the markup or does it have to be done in a very rigid way?
  • How is jQuery support in CMS systems? I like what you can do with jQuery and would like to incorporate it into the next couple of sites that I will do.

ED开发者_StackOverflowIT:

So far answers are asking which CMS, I don't have any in mind. Any suggestions welcome, open source and non .NET preferable.


Question 1:

It is quite easy. You just create your mark up with XHTML/CSS as you've always done. The point is that you have to leave placeholders/holes/(divs with nothing in them)/li's to store dynamic content.

Remember you'll still have to choose a CMS framework from the variety out there. I find Wordpress great.

Question 2:

Just like you've always done in your previous sites. Just include the jQuery library on all templates and write you jQuery script as you go.

I'll be back with more info.

UPDATE:

For Wordpress templating check this:

  • Designing for WordPress: Complete Series & Downloads

For jQuery integration:

  • Using jQuery with WordPress

  • Using jQuery in your WordPress theme

  • Another one

  • 5 tips for using jQuery with Wordpress

I hope it helps you get started. It helped me.

UPDATE:

I don't know why the links are not working.

  • Another one (http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/)

  • 5 for using jQuery with Wordpress (http://www.ericmmartin.com/5-tips-for-using-jquery-with-wordpress/)


If you mean jQuery integration in the front-end, you should be able to add any jQuery logic you want to the front-end templates by just including jQuery and your JavaScript. It sounds like you've got a hammer and now you're looking for a nail. I don't really see why CMS-driven sites would be any different for jQuery/ JavaScript logic.


How easy is it to create a template? I have strong CSS/XHTML skills, is creating a template as easy as writing the markup or does it have to be done in a very rigid way?

This totally depends on the CMS. Some CMS's use plain HTML with some Template or Scripting language variables in it. That will be pretty straightforward to get into. Other CMS's use complex XML/XSLT-based templating languages that take some time to learn. I found Genshi (used as a template engine in the popular Trac project management system) very complex for example.

jQuery support in the front-end is usually down to the template used, except if the CMS comes with pre-built front-end controls that require a Javascript framework like jQuery or Prototype.

Bottom line: It really depends which CMS we are talking about.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜