krea / EE_Field_Pack

ExpressionEngine public fieldtypes by Krea.com
5 stars 0 forks source link

EE_Field_Pack

Field types for ExpressionEngine by Krea.com.

Included field types

Files - basic usage

{exp:channel:entries channel="test_channel_1" limit="10"}

    <h1>{title}</h1>

    {!-- Simplified case --}
    {content_elements}

        {files}
            Attachments:
            {file}
                <table>
                    <tr><td>Caption</td><td>{caption}</td></tr>
                    <tr><td>Dir</td><td>{dir}</td></tr>
                    <tr><td>Size</td><td>{size}</td></tr>
                    <tr><td>Server path</td><td>{server_path}</td></tr>
                    <tr><td>URL</td><td>{url}</td></tr>
                    <tr><td>Extension</td><td>{extension}</td></tr>
                    <tr><td>Thumb</td><td>{thumb}</td></tr>
                </table>
            {/file}
        {/files}

    {/content_elements}

{/exp:channel:entries}

Embed video - basic usage

Content elements field type usage:

{exp:channel:entries channel="your_channel_name" limit="10"}
    <h2>{title}</h2>
    {content_elements}
        {embed_video}
            {output} or use YouTube video ID: {video_id}
        {/embed_video}
    {/content_elements}
{/exp:channel:entries}

Standalone field type usage:

{exp:channel:entries channel="your_channel_name" limit="10"}
    <h2>{title}</h2>
    {your_name_for_embed_video}
        {output} or use YouTube video ID: {video_id}
    {/your_name_for_embed_video}
{/exp:channel:entries}

Supported formats