Is there some reason why this does not work?
{exp:channel:entries channel="my_channel" author_id="CURRENT_USER" url_title="{segment_3}”}
OR
{exp:channel:entries channel="my_channel" author_id="CURRENT_USER" title="{segment_3}”}
It seems to work for channel forms and comments. It seems I cannot get an entry based on the title or URL alone. Strangely, I remember this worked in the past, but now I don’t get any results when I was building a new template. I can only get results using entry_id
First thing: don’t use the title to get an entry, since title’s don’t have to be unique. url_title should always be unique so better use that. Secondly you should add dynamic=”no” to get that specific entry. Your tag should look like: {exp:channel:entries channel="my_channel" author_id="CURRENT_USER" url_title="{segment_3}” dynamic=”no”}
Many thanks Jelle, it seems the dynamic parameter is the part I was missing, it works now both with title or url.
You are right about titles, except in this particular case for my channel, I create a unique title number for each entry, so they are unique, title is the same as url, this is why I used both for testing. I was planning on sticking to the url parameter.
I will try to read what the dynamic parameters does to avoid this in the future, since I noticed it’s not being used in my other channels.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.