Friday, September 11, 2009

List of Articles for each author in ExpressionEngine

Below blog will describe the process to make a new page for article-list of each author. In the article list page OR article details page make a link from "Author Name" of that article with this new template/page. It will show you the list of articles published by that author. It will very useful for such blogging or news site, those have multiple authors and want to create such type of page.

There will be 2 templates for such, one will search the Article titles as per Author name and other will just embed that template and show in a decent manner.

Author Page:-
This template will show the list of articles of each author. Prepare the page-design as per your need and place the following type of of code in the body area OR where you want to show the list:-



Query Page:-
Following template is mainly responsible for searching the articles as per the author name from the database and prepare the list:-


Article List or View page Update :-
Just put the below type link from the Article author name with the Author page template as follows:-




If you face any difficulty to integrate these code, feel free to put comments here. We will try to fix the problem.

Monday, September 7, 2009

Including YouTube videos & image and how they should be displayed in the EE Articles

Task Details :-

The editor can insert youtube videos by the following procedure:

• Includes in the text of the article the following tag: {YOUTUBE_VIDEO_MIDDLE}
• Enter the identifier in the custom field “youtube”
• Enter the alignment in the custom field “youtube_align”.

There are two problems related to the insertion of youtube videos:

• If the editor enters a youtube video, but also an image, the re-sizing of the image is not working as it should in the permalink.
• If the user enters a you-tube video in place of the image (i.e. on the top-left), it is not being displayed of the appropriate size in the Artcle List page.

Action desired:
• If a youtube video is inserted in the middle of the article (not on the top-left) and an image is inserted in the right usual place (top-left):
o The size of the image should be height 90px (for Article List page) and height 200px (for permalink).
o The size of the video in the permalink should be 230px width.
• If a youtube video is inserted at the top-left instead of an image:
o The video’s height in the Article List page should be 90px.
o The video’s width in the permalink should be 230px.

YouTube Template:-



Article List Page:-



Permalink Page :-

Friday, September 4, 2009

Including a YouTube video in ExpressionEngine articles

Following blogs are details of including a YouTube video in articles of EE. The video should be displayed instead of the usual image, i.e. on the top left of the article OR any other position where you want to set.

References
http://expressionengine.com/wiki/Embedding_YouTube_movies/
http://expressionengine.com/wiki/Embedding_YouTube_Movies_w_Reusable_Template/

This is the template used to display the articles in the following format:

















We have to update this as follows with following features:-



• Width of 230px.
• Height proportional as per usual proportions of YouTube videos.
• The text should appear around the video, as shown in the image above.






Solution :-
1. We first include a new field as "Video_Name" for the weblog to enter the YouTube Video link.
2. Prepare a Blog with a youtube video link such as http://www.youtube.com/watch?v=T70xKdjuK8A
3. Save the blog.
4. Open the template who is responsible to show the article details.
5. Use this following code:-