Episode 2: Dynamic page title
Arthur Bahad...
7 posts
|
Hi, Odd behavior with my code. I matched the exact EE code… ...and the site-index.php displays the first article title… ...rather being blank. I hope this makes sense, |
Ryan Irelan
73 posts
|
Arthur, can you paste in the whole template? I’m not sure I understand what you’re seeing. |
Arthur Bahad...
7 posts
|
This is my (news) index.php file… {embed=”includes/document_header” title=”{exp:weblog:entries weblog=”news_articles” limit=”1” status=”Open|Top Story|Featured Top Story”}{title}{/exp:weblog:entries}”}
<! <!{embed=”includes/masthead_sitemap”} {embed=”includes/main_menu”}
{exp:weblog:entries weblog=”news_articles” limit=”1” status=”Featured Top Story”}
<!{title}By {author}{article_excerpt} Read more… {/exp:weblog:entries}
{exp:weblog:entries weblog=”news_articles” limit=”2” status=”Top Story”}
<!{title}By {author}{article_excerpt} Read more… {/exp:weblog:entries}
{exp:weblog:entries weblog=”news_articles” limit=”1” status=”Top Story” offset=”2”}
<!{title}By {author}{article_excerpt} Read more… {/exp:weblog:entries}
<! <!Women’s Meeting » Thu @ 10:00 a.m. We exist and believe…We exist to love and glorify God, evangelize the lost, and develop reproducing disciples of Jesus Christ. read more… → We believe the words of the Bible, in the sixty-six books of the Old and New Testaments, are inspired by the Holy Spirit. These Scriptures are, therefore, the sole basis for our faith and practice. While Scripture was written through the instruments of chosen men, it originated in its entirety with God, so that it speaks with God’s authority as it reflects the backgrounds, styles, and vocabularies of the human authors.†
<! <!</body> </html> and partial include of document_header.php <!DOCTYPE html PUBLIC ”-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"><head> <title>ABBC Pasadena » {if “{embed:title}”}{embed:title}{/if}</title> You may see online at… The title is the title from left column, first Top Story. Instead of being blank. |
Arthur Bahad...
7 posts
|
@
<! <!{embed=”includes/masthead_sitemap”} {embed=”includes/main_menu”}
{exp:weblog:entries weblog=”news_articles” limit=”1” status=”Featured Top Story”}
<!{title}By {author}{article_excerpt} Read more… {/exp:weblog:entries}
{exp:weblog:entries weblog=”news_articles” limit=”2” status=”Top Story”}
<!{title}By {author}{article_excerpt} Read more… {/exp:weblog:entries}
{exp:weblog:entries weblog=”news_articles” limit=”1” status=”Top Story” offset=”2”}
<!{title}By {author}{article_excerpt} Read more… {/exp:weblog:entries}
<! <!Women’s Meeting » Thu @ 10:00 a.m. We exist and believe…We exist to love and glorify God, evangelize the lost, and develop reproducing disciples of Jesus Christ. read more… → We believe the words of the Bible, in the sixty-six books of the Old and New Testaments, are inspired by the Holy Spirit. These Scriptures are, therefore, the sole basis for our faith and practice. While Scripture was written through the instruments of chosen men, it originated in its entirety with God, so that it speaks with God’s authority as it reflects the backgrounds, styles, and vocabularies of the human authors.†
<! <!</body> </html> @ |
Arthur Bahad...
7 posts
|
My apologize for all that mess… The code is located here… |
Ryan Irelan
73 posts
|
Arthur, you most likely edited this template because I don’t see |
Arthur Bahad...
7 posts
|
Hi Ryan, Yes. I’m using your tutorial with a real project. Oddly everything is working properly in the article view page(s). However, at the index page, title is being picked-up from one of the article, instead of being a blank spot. I will dig deeper to inspect. |
7 posts, 2 voices
