Not sure why this has to be so complicated. I was able to follow the tutorial to setup Couch to create my articles and display the individual articles. Using Couch to display a list of these articles has been a nightmare.
My individual articles are at http://www.mydomain.com/html/news_articles.php?p=113 and I obviously want a list of these articles to appear at http://www.mydomain.com/html/news_articles.php
Using the tutorials I am told to embed the page that displays the list using:
<cms:else />
<cms:embed 'articles.php' />
</cms:if>
articles.php is the page I have created to view the article list. When I try to visit http://www.mydomain.com/html/news_articles.php to view the list I get an error saying the file articles.php cannot be found in the /snippets directory - so I added articles.php to the /snippets directory in my Couch install and the page loads. Awesome that works ... but now we arrive at the main reason I need help.
When I go to http://www.mydomain.com/html/news_articles.php I see my template and code that is a part of articles.php my template loads but I get a new Couch error:
Error: masterpage: "/news_articles.php" not found.
I've tried changing the path of "/news_articles.php" to everything I can think of to match the actual location of "/news_articles.php" which is http://www.mydomain.com/html/news_articles.php but all Couch does is print the same error.
So I'm spinning in circles here. I don't understand what I am doing wrong. All I want is a list od the articles. The date and article title. I don't need a preview of the article on the listing page- very simple. But not so simple with Couch. Can anyone help me make this process a little more straightforward please? I'm assuming once I get this issue resolved the articles will be listed.
Also, when I am typing articles and I click on source and try to embed YouTube code to display a video in my article Couch outputs the HTML code as text. Why??? How do I get around that?
My individual articles are at http://www.mydomain.com/html/news_articles.php?p=113 and I obviously want a list of these articles to appear at http://www.mydomain.com/html/news_articles.php
Using the tutorials I am told to embed the page that displays the list using:
<cms:else />
<cms:embed 'articles.php' />
</cms:if>
articles.php is the page I have created to view the article list. When I try to visit http://www.mydomain.com/html/news_articles.php to view the list I get an error saying the file articles.php cannot be found in the /snippets directory - so I added articles.php to the /snippets directory in my Couch install and the page loads. Awesome that works ... but now we arrive at the main reason I need help.
When I go to http://www.mydomain.com/html/news_articles.php I see my template and code that is a part of articles.php my template loads but I get a new Couch error:
Error: masterpage: "/news_articles.php" not found.
I've tried changing the path of "/news_articles.php" to everything I can think of to match the actual location of "/news_articles.php" which is http://www.mydomain.com/html/news_articles.php but all Couch does is print the same error.
So I'm spinning in circles here. I don't understand what I am doing wrong. All I want is a list od the articles. The date and article title. I don't need a preview of the article on the listing page- very simple. But not so simple with Couch. Can anyone help me make this process a little more straightforward please? I'm assuming once I get this issue resolved the articles will be listed.
Also, when I am typing articles and I click on source and try to embed YouTube code to display a video in my article Couch outputs the HTML code as text. Why??? How do I get around that?