Hot answers tagged

11

You can include the author's name and a link using the author and author_id variables. For example: {exp:channel:entries channel="blog"} <h2>{title}</h2> {body} <p>Posted by <a href="/blog/author/{author_id}">{author}</a></p> {/exp:channel:entries} Then, at its most basic, create a template to display posts ...


4

You might could do something like this (php must be enabled on input) <?php $entries = array(); $sql = "SELECT author_id as author, max(entry_id) as entry_id FROM exp_channel_titles WHERE channel_id = '4' AND status = 'open' GROUP BY author ORDER BY entry_id DESC LIMIT 10"; $...


3

You'll need to write a custom fieldtype to achieve this - I can't think of any existing fieldtypes that could accomplish this for you. So in your fieldtype, you'd query exp_playa_relationships for all parent_entry_id's where where child_entry_id was equal to the entry_id associated with ee()->session->userdata('member_id'). (Not sure how Profile:Edit ...


2

You can do this using {exp:zoo_visitor:details url_title="{segment_3}"} {exp:channel:entries channel="blog" author_id="{member_id}"} <h2>{title}</h2> {body} {/exp:channel:entries} {/exp:zoo_visitor:details} But by performance I would choose query: {exp:query sql="SELECT author_id FROM exp_channel_titles ...


2

There isn't any tag available for entry revision. You can do it with following code example: {exp:channel:entries channel="CHANNEL NAME" ...........} <li>Created: {entry_date format="%m/%d/%Y"}</li> <li>Author: {author}</li> {exp:query sql="SELECT exp_members.screen_name AS revision_author, exp_entry_versioning....


2

Sadly the default EE Edit screen does not allow you to easily sort by authors but this is a great use case for Zenbu. Zenbu allows the admin to filter the content easily by author or even custom field data.


2

Compare to the member_id global variable: {if member_id == author_id} Or use the alternative syntax: {if logged_in_member_id == author_id} Just remember that global variables are parsed at the end of parsing stages. So, the content inside the conditional will bee removed only after all previous parsing stages. Because of that, you should not put an embed ...


2

You will need to goto Members > Member Groups > [The member group the member is a question of] Edit Group > Scroll down to Member Account Privileges. Look for "Include Members in PUBLISH page multi-author list?" and select "Yes". You shouldn't need to assign the entry to yourself as an admin though you should be able to edit it fine either way.


2

Assuming you're not using stash, you can simply use an embed within your main channel entries tag and pass the embed the author_id of the current author and the entry_id of the article being displayed: {embed="sidebar/authorlist" author_id="{author_id}" entry_id="{entry_id}"} and in your embed: {exp:channel:entries channel="..." dynamic="no" author_id="{...


1

To my knowledge, ExpressionEngine does not do entry locking out of the box. Most likely you will need an extension to enable this behavior. I used to have one back in the days of EE1, but I haven't had a need for it since then. If you are on EE2, there is an extension on devot:ee called Lock Entry that might work for you. I have not used it, but other ...


1

SOLVED using an embed here is the embed: {exp:channel:entries channel="commentary" limit="12" dynamic="no" author_id="{embed:author_id}"} <li><a href="{title_permalink=commentary-test}/">{title}</a></li> {/exp:channel:entries} Parent page: {embed="commentary-test/author" author_id="{author_id}"}


1

The method Jamie mentioned will indeed work. You can also try and use Low Author, which saves the author screen name as a searchable read-only field. Add that field to your entries, and you'll be able to use keywords to search by author. Edit: If you're using Low Search 4+, you can now also use the Members filter. Once installed, use the parameters members:...


1

I don't know if anything has changed in more recent versions, but Low himself suggested using Solspace's Preparse addon for cases like this: http://gotolow.com/blog/searching-non-field-data-with-low-search


1

it should be work , but it doesn't I think it is a bug. anyway u can work around this problem with exp:member:custom_profile_data {exp:member:custom_profile_data} {exp:channel:entries author_id="1|{member_id}" channel="foo" disable="categories|category_fields|member_data|pagination" dynamic="no" orderby="entry_id" ...


1

Something like this should work. You have to make a 2 steps verification: {!-- Ensure user is logged in --} {if logged_out} {redirect="/login"} {/if} {!-- Check if user can view this entry --} {exp:channel:entries channel="mychannel" disable="custom_fields|categories|category_fields|member_data|pagination|trackbacks" dynamic="off" ...


1

You'll need to either do 2 channel entries calls - once for the authors, then again for the posts, or use something like stash to limit it to only one loop (but probably not suitable in this instance as the authors list needs to be by edit date). Although you don't define what "most active authors" is actually classed by, I've assumed latest post or edit ...


Only top voted, non community-wiki answers of a minimum length are eligible