Bysoft China's Blog > Your Resource To Keep Up With the Web!

Share Our Knowledge, Share Our Passion
  • rss
  • Home
  • About Us
  • SERVICES
  • WORKS
  • START ECOMMERCE WEBSITE
  • START CMS WEBSITE
  • CONTACT US

eZ publish: Custom root node

Florence SONG | August 13, 2010

One of many key features of eZ publish is flexibility. You can customize almost anything from content structure to output presentation. In this short tutorial I will show how to specify a custom default root node class.
By default, eZ publish uses a root node ID 2 in content structure (“Content structure” tab) tree based on the folder class, and in many cases that is sufficient. However, sometimes we want to use our own custom class as the site’s front page. A custom class allows us to build a complex front page that uses a different layout than the rest of the site. Rather than extending the default folder class with attributes that are only used on the front page, creating a custom class gives us the flexibility to build a custom front page without impacting the rest of the site.
First we need to create new content class. You can define your new content class in the Administration Interface. Click the Setup tab, then select the Classes option from the left menu. I will not describe this process as it is very well explained in the eZ publish technical manual.
Note that your custom class must be marked as a ?container? in order to display content from within the content structure tree.
Once the content class is ready to use, create a new content object as an instance of your new class somewhere under the root node. Now we can swap the eZ publish root node with the newly created object. Click the left mouse button on the folder icon beside the root node folder name and select “Advanced->Swap with another node” from the context menu.

In browse mode choose the newly created object and click the “Select” button.

Done. Now you can edit your root node and populate the attributes of your custom class with content.
Next we need to configure the content structure tree.
Edit the file “settings/siteaccess/(your_admin_siteaccess)/contentstructuremenu.ini.append.php” and add your class to the list. Your configuration file should contain the following data:
[TreeMenu]
ShowClasses[]
ShowClasses[]=folder
ShowClasses[]=user_group
ShowClasses[]=custom_class
*/ ?>
Save your settings and clear the cache. After the page reloads, you should see your custom front page in the content structure, similar to the picture below:

Now you can assign a template to your custom class or make a node override for node ID 2 and make nice front page for your site.

Categories
Content Management (CMS), Ecommerce
Tags
CMS, Ecommerce, eZ publish
Comments rss
Comments rss
Trackback
Trackback

« How to make your B2C website stand out in China? Web engineer certification and Bysoft’s certified engineers »

11 Responses to “eZ publish: Custom root node”

  1. Sifali Bitkiler says:
    November 19, 2010 at 21:28

    Hello mans did you have old archives ? I deal article build up pro me … ..

  2. metin2 says:
    December 1, 2010 at 03:40

    very good \o/

  3. bilstein says:
    May 10, 2011 at 02:35

    Yay google is my world beater assisted me to find this great website ! .

  4. Bobby franks says:
    June 30, 2011 at 12:51

    Love your site and all your tips.

  5. dermabrazja says:
    July 12, 2011 at 15:22

    Yet another thing I would like to convey is that rather than trying to match all your online degree training on days and nights that you complete work (since the majority people are worn out when they come home), try to obtain most of your instructional classes on the saturdays and sundays and only one or two courses on weekdays, even if it means taking some time off your saturday and sunday. This is beneficial because on the saturdays and sundays, you will be extra rested as well as concentrated in school work. Thanks alot : ) for the different tips I have discovered from your site.

  6. romanse says:
    July 25, 2011 at 17:04

    I have really learned some new things by means of your blog site. One other thing I’d prefer to say is that newer laptop operating systems tend to allow more memory to get used, but they in addition demand more memory space simply to function. If a person’s computer can’t handle a lot more memory and also the newest application requires that storage increase, it might be the time to shop for a new Computer system. Thanks

  7. Motorcycle Oil Tank says:
    August 7, 2011 at 04:56

    I just enjoy following these stories. It truly makes my day.

  8. Jérôme says:
    August 10, 2011 at 03:02

    Original article here: http://serwatka.net/blog/ez_publish_custom_root_node – I’m sure you’ve only forgotten to mention the original author, haven’t you, Florence :) .

  9. Walker Game Ear High Definition says:
    August 12, 2011 at 06:45

    Hello,Your site is very interesting site. I will come back to visit again and I Tweet this page to a friend of mine already.

  10. http://www.bottespascher.net/ says:
    November 6, 2011 at 06:44

    Hello there, you have here a quite good webpage at present! I enjoy a lot a finely updated post.

  11. Sebastien says:
    November 17, 2011 at 11:43

    I believe you have observed some very interesting points, regards for the post.

Leave a Reply

Click here to cancel reply.

Recent Posts

  • The constraints of the Chinese Internet
  • The Chinese Delivery Methods
  • 5 simple development tricks for a faster web application
  • The Chinese Payment Modules
  • Synchronization
  • Always be releasable
  • Sina Weibo and the brands
  • The most influential Chinese e-commerce websites
  • X.commerce, New International Opportunities for E-Commerce Solution Providers
  • Case Study for Etam

Categories

  • Content Management (CMS)
  • Ecommerce
  • FAQ Shopmaker – Standard Ecommerce
  • Internet
  • Magento
  • News
  • PHP
  • References
  • Search Engine Marketing (SEM)
  • Search Engine Optimization (SEO)
  • Web Design
  • Web Development
  • Web Technologies
  • Webmarketing

Tags

api asia b2c Baidu business bysoft Bysoftchina c2c china CMS company cpc Design Ecommerce ecommerce navigation education ergonomics eZ publish Google integration interview japan Joomla! lecture Magento open source PHP php engineer ppc press programming sem seo shanghai shopmaker social media symfony tips tutorial web application Webmarketing website cache zend zend framework Zend PHP 5

Recent Comments

  • palawan tourist spots on open source solution help you cut 35% from e-commerce costs
  • {Play Java Games|Java Gaming|Java Games} on Tips For A More Effective Paid Search Campaign
  • kredyty mieszkaniowe warszawa on Baidu.com plans to launch an instant messaging service
  • Alan on The Pros and Cons of Single-Page Checkout
  • nadruki reklamowe na odziezy on Baidu.com plans to launch an instant messaging service

Pages

  • About Us

Archives

  • February 2012
  • January 2012
  • October 2011
  • September 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • June 2009
  • May 2009
  • February 2009
  • January 2009
  • October 2008
  • April 2008
  • March 2008
  • February 2008
  • December 2007
  • November 2007
  • August 2007

Bysoft China

  • Consulting
  • Content Management
  • E-Commerce
  • Graphic Design
  • Magento
  • Marketing Website
  • Programming
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox