Hey all. I’m very new to ExpressionEngine. So far I really like it. I’ve been searching around for this answer and haven’t found anything.
I’m attempting to link directly to a particular entry. I figure the best way to do this is to pass a php variable through via a url (e.g. [...]/portfolio/index.php?entryid=5). And then call the entry using the standard code:
<?php $_GET["entryid"] ?>I have enabled php in this particular template already. I’m also concerned that that there is a more efficient way to accomplish this task natively within ExpressionEngine. Please let me know if you guys can maybe give me a pointer in the right direction?
My current code is as follows. The key line comes directly after the snippet {header} tag.
<html>
<head>
{exp:channel:entries channel="portfolio_pages"}
<title>Paredes Creative • {project_client} | {project_category}</title>
{/exp:channel:entries}
{headincludes} <!-- Includes style sheets, typekit -->
</head>
<body>
{header}
{exp:channel:entries channel="portfolio_pages" entry_id="<?php $_GET["entryid"] ?>"}
<div class="portfolio_highlight" url('{project_highlight}');"></div>
<div class="portfolio_headline">
<div class="p_title">
{project_client}
</div>
<div class="p_category">
{project_category}
</div>
</div>
<div class="breakfloat"></div>
<div class="index_content_wrapper">
{project_description}
</div>
<div class="center">
{project_image_1}
{project_image_2}
</div>
{/exp:channel:entries}
</body>
</html>I appreciate the assistance!