Entity Data Extras

Component ID

2277451

Component name

Entity Data Extras

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

519

Component created

Component changed

Component body

Description
--------------------------
Add data_extras field to Entity, used as $user->data field.
Current support for node, taxonomy_term, file, user and bean.

Installation
--------------------------
1. Copy the entire entity_data_extras directory the Drupal sites/all/modules directory.
2. Login as an administrator. Enable the module on the Modules page.

Sub module: Entity Data Extras Plus
--------------------------
Implements of Entity Data Extras:
- Suport add extras class(es) to node, taxonomy_term, bean.
- Suport choose template for node, taxonomy_term, bean.
- Suport choose page template when view full node, taxonomy_term like Wordpress Page Template.

Installation Entity Data Extras Plus

--------------------------
1. Copy the entire module directory the Drupal sites/all/modules directory.
2. Login as an administrator. Enable the module on the Modules page.
3. Config Node content types or Bean content types at
admin/config/content/entity_data_extras_plus

Create template
--------------------------
Entity Data Extras Plus support you can create and choose custom template. To choose template first you need create template. Template create as normal template.
For Node template you create template with format node--[anyname].tpl.php
For Taxonomy termtemplate you create template with format taxonomy-term--[anyname].tpl.php
For Page template you create template with format page--[anyname].tpl.php
For Bean template you create template with format bean--[anyname].tpl.php

Next you need type identify name for template. Example you need create hompage template. Create a template with name: page--homepage.tpl.php place in your theme folder. In page--homepage.tpl.php you need type identify name like bellow:

<?php
/*Template Name: Page  Homepage*/

// Custom code for template here.


?>

Now you can select Page Homepage when edit a node. Sometime you need clear all cache for template effect with your selected.

Same for Node, Taxonomy Term and Bean template.

With entity has view_mode you can create custom template with view_mode
Example for node:
node--[anyname].tpl.php
node--[anyname]--teaser.tpl.php