My client is going to be creating entries with custom field content. But on the same page will be listings from another channel in a particular category. I am looking for options but I was thinking of making them choose from the same list of categories. If I can get the id of the category associated with the PAGE they are viewing and then assign it to the channel entries category= parameter I could pull this off. Here is some example code:
{exp:channel:entries channel="trip_type_pages" limit="1" status="open|Archived" disable="comments|trackbacks"}
<h1>This is inside trip_type_pages.</h1>
That means I have access to any custom field data associated with this entry based on the URL. For example:
The title of this page = {title}
{/exp:channel:entries}
<h1>Below are channel listings from another channel based on the category that the above entry is in.</h1>
{exp:channel:entries channel="trips" category="NEED DYNAMIC CATEGORY HERE" dynamic="off" status="open" orderby="trip_dates" sort="asc" disable="comments|trackbacks"}
{title}
{/exp:channel:entries}
Or if there is another way to go about this, I am all ears.
I thought about using Playa, but that means they would have to select the individual entries by hand. If a new entry was added, they would have to go back to the page and update it manually.