Learn

Share Your Knowledge!

This fast-growing section of our site is the new one-stop shop for educational materials for ExpressionEngine with rich and expert content, from both EllisLab and the community. Submit your article, tip, or solution today!

  • Media Portfolio Channel Set

    in: Resources, Channel Sets

    Quickly create a Media Portfolio Channel in ExpressionEngine for your work with this Channel Set.

    The Media Portfolio Channel Set comes with custom fields, statuses, and categories to get you up and running fast. Further customizations can be made to tailor your portfolio, but here’s what’s inside:

    Custom Fields

    • {portfolio_images}: a Grid field for images of your work
      • :image - a File field to hold the image
      • :caption - an optional Textarea to provide a caption to the image
    • {portfolio_description}: a Textarea to describe your work
    • {portfolio_files}: a Grid field for downloadable non-image files of your work (PDFs, zip files, etc.)
      • :file - a File field to hold the file
      • :description - an optional Textarea description for the file

    Statuses

    • Open: published
    • Closed: not published
    • Featured: to call special attention to the entry

    Categories

    • Branding
    • Design
    • Development
    • Print

    Sample Tags

    {exp:channel:entries channel='portfolio' limit='1' require_entry='yes'}
    	{if no_results}
    		{redirect='404'}
    	{/if}
    
    	<h1>{title}</h1>
    
    	{if has_categories}
    		<div>Categories:
    			<ul>
    				{categories}
    					<li><a href="{path='portfolio/index'}">{category_name}</a></li>
    				{/categories}
    			</ul>
    		</div>
    	{/if}
    
    	{portfolio_description}
    
    	{if portfolio_images:total_rows > 0}
    		{portfolio_images}
    			<figure>
    				<img src="{portfolio_images:image}" alt="{portfolio_images:caption}">
    				<figcaption>{blog_image:caption}</figcaption>
    			</figure>
    		{/portfolio_images}
    	{/if}
    
    	{if portfolio_files:total_rows > 0}
    		<ul>
    			{portfolio_files}
    				<li>{portfolio_files:file wrap='link'}</li>
    			{/portfolio_files}
    		</ul>
    	{/if}
    {/exp:channel:entries}
    | Read in 2 minutes

ExpressionEngine News

#eecms, #events, #releases