Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
I have installed Couch and starting changing my html template according to the tutorial.

I put <cms:embed 'navbar.html' /> in the index page and subsequently added the navbar.html to the snippets folder. However when i test my template on wamp none of the links work. The links when clicked output the index page. what am i doing wrong?

When i check the source code (on firefox) i see only the link to the index page on href tag... the rest of the about us and contact us links are blank
Hi,

Can you please post the contents of navbar.html here?

Thanks.
<nav>
<div class="menu-button">Menu</div>
<ul class="flexnav">
<li><a href="<cms:link 'index.php' />" <cms:if k_template_name=='index.php'>class="active"</cms:if> >Home</a></li>
<li><a href="<cms:link 'about.php' />" <cms:if k_template_name=='about.php'>class="active"</cms:if> >About</a></li>
<li><a href="<cms:link 'solutions.php' />" <cms:if k_template_name=='solutions.php'>class="active"</cms:if> >Solutions</a></li>
<li><a href="<cms:link 'projects.php' />" <cms:if k_template_name=='projects.php'>class="active"</cms:if> >Projects</a></li>
<li><a href="<cms:link 'partners.php' />" <cms:if k_template_name=='partners.php'>class="active"</cms:if> >Partners</a></li>
<li class="omega"><a href="<cms:link 'contacts.php' />" <cms:if k_template_name=='contacts.php'>class="active"</cms:if> >Contacts</a></li>
</ul>
</nav>
Thanks.

The cms:link tag, as you know, takes a template's name as parameter e.g.
<cms:link 'partners.php' />
We just need to ascertain that, in the code above, there indeed is a template named 'partners.php'. It is easy to make a mistake here as, for example, if the partner template happens to be within a subfolder named 'xyz', its name would become 'xyz/partners.php' (i.e. have the folder name prepended to it).

To know the exact name of a template, please hover the mouse on the template's entry in admin-panel's sidebar - a tooltip will show the name as recognized by the system.

Can you please double-check all template names using the method mentioned above?
Thank you so much for your prompt response and the awesome tips.

However, I have noted that when i add the cms tags to a new page (for example partners.php) i have to log out and then point the browser to the file (e.g. in this case > http://localhost/couchtest/partners.php) it then redirects me to the couch login page where i am prompted to enter my log in credentials. After that process i can now access the file whether logged in or not and when i check my (Firefox) source i can see the page correctly linked in the href tags (as in my navigation snippet). Is this standard?

Once again. Thank you.
You are welcome :)
when i add the cms tags to a new page (for example partners.php) i have to log out
You definitely don't have to log out for adding a new template. In fact you need to be logged-in as super-admin for adding a new template - else Couch will show you a login box to enter your super-admin creds (which explains what you observed next).
Thank you for your help. I was able to test and i must say i do love Couch Cms. I have created a dummy file for a client to test and see if they like it. I browsed through the discussion and saw a twitter addon which i integrated and it was seamless! has anyone done a facebook-feed add on?

Thank you for these great product. I will definitely be buying in the coming week or two.
7 posts Page 1 of 1