I am building landing pages that will be used as direct links, not from a list on a catch all type page. I want to use one template, no categories. I am showing content from two different channels, one for the landing page and one for the "program" area. I am using an embed and {if} statements for the program channel that is nested within the other.
This all seems to be working, although to have the embedded program channel content display, I have to include the folder structure in the url_title field for the entry (so, instead of just putting "caribbean_culture" or "examine_change" in the url_title field, I'm having to put "template_group/template/url_title" or else the embedded channel content won't show up.) And then after it saves, its converted to template_group_template_url_title.
However, I'm not able to have the URL pull the specified entry. Instead, it just pulls the first or the last, depending on how I have the sort set up. So, using this:
{exp:channel:entries channel="landing" disable="member_data|pagination" sort="desc" limit="1"}
I get the same entry for either of these URLs, although they should actually show different entries:
http://www.sea.edu/learn_more/sea_semester_voyages/caribbean_culture http://www.sea.edu/learn_more/sea_semester_voyages/examine_change
If I change the sort to 'asc' in the channel:entries tag, then I do see the other entry, but again, at both URLs. I have the functionality of the single entry displaying on a page working on other templates in the site, but they are fed by an initial link on another page, that uses
href="template/{url_title}"
to build the page.
Is there some parameter to include in the channel:entries tag that uses the url_title to dictate the entry that is on the page that matches the URL? Or some other solution?
I tried "require_entry" to no avail.