Forum for discussing general topics related to Couch.
6 posts Page 1 of 1
Hi

I have found a few more issues that need help with as can't find a solution online

1) If I visit the about us page it comes up as https://www.techiemonkey.co.uk/about-us/about-us/ but it should be https://www.techiemonkey.co.uk/about-us/

Am guessing it's the same for the other pages as well. How do I solve that issue as looked on Google and couchcms forum for the same issue but can't find a solution

2) The home page does not have a page title for some reason, where the title should be, it's just got the url displayed, looking at the source code, it's got <title></title>

3) I have
Code: Select all
<section class="inner-header divider parallax layer-overlay overlay-dark-5" data-bg-img="<cms:show k_site_link />images/bg/about-bg.jpg">
in my about-us.php page but the data-bg-img is not showing the image on the front end but the filepath is correct

That should be the last of the issues if someone can help and provide a solution for the above issues please

Thank you in advance
Quick update regarding the file structure and pretty urls, if I turn the pretty urls off, I get https://www.techiemonkey.co.uk/about-us.php?p=9(about us page), https://www.techiemonkey.co.uk/about-us.php?p=12(it support page) and so on so that is working but when I turn on pretty urls it makes it about-us/about-us, about-us/it-support/ and so on

Guessing there must be a way to remove the about-us part of it for the file structure so it's just https://www.techiemonkey.co.uk/about-us, https://www.techiemonkey.co.uk/it-support and so on
Your links are relative and hence change their paths with prettyURLs active.

Please modify your code to make all your links absolute (this is discussed in the troubleshooting section of https://docs.couchcms.com/concepts/pretty-urls.html).

Hope this helps.
KK wrote: Your links are relative and hence change their paths with prettyURLs active.

Please modify your code to make all your links absolute (this is discussed in the troubleshooting section of https://docs.couchcms.com/concepts/pretty-urls.html).

Hope this helps.


How do I make them absolute? is that in the menu/html snippet file or somewhere else? my menu.html snippet file looks like the following

Code: Select all
<cms:menu masterpage='about-us.php' menu_class='menuzord-menu' />
I have been trying to solve the issue with the absolute links, I have amended the menu.html snippet file but not getting anywhere, I now the following coding but it still shows the about-us/ first in each link

Code: Select all
<cms:nested_pages masterpage='about-us.php'>
<ul class="menuzord-menu">
<li><a href="<cms:show k_nestedpage_link />"><cms:show k_menu_title /></a></li>
</ul>
</cms:nested_pages>


Please help as feel I am fighting a losing battle on this one as unsure what else to try

UPDATE: Been having a play and trying to work out the correct variable to use, I want to be able to use the name field from the couchcms admin side on the nested page as it is about-us and so on so have got the following in the menu.html snippet but is not 100% right as it's showing the link as https://www.techiemonkey.co.uk/About Us and so on. What is the variable for the name input field on the cms side below the title input field

Code: Select all
<cms:nested_pages masterpage='about-us.php'>
<ul class="menuzord-menu">
<li><a href="<cms:show k_site_link /><cms:show k_menu_title />"><cms:show k_menu_title /></a></li>
</ul>
</cms:nested_pages>
Got a good update, I have worked it out and the links are pointing to the right link now, the little issues I have now are below

Two of the links in the menu are pointer links as I have made them point to another page, how do I add them links in the menu.html snippet file?

On https://docs.couchcms.com/tags-referenc ... pages.html I see a parameter called k_pointer_link but unsure how to add that into the coding I currently have in menu.html

Code: Select all
<cms:nested_pages masterpage='about-us.php'>
<ul class="menuzord-menu">
<li><a href="<cms:show k_site_link /><cms:show k_nestedpage_name />"><cms:show k_menu_title /></a></li>
</ul>
</cms:nested_pages>


UPDATE: For now I have redirect the url to the correct url in the htaccess file but I do get ?fname=it-support-techie-monkey in the url so it looks like /support/index.php?fname=it-support-techie-monkey, is there a way to get rid of the ?fname=it-support-techie-monkey part?

I added Redirect /it-support-techie-monkey/ https://www.techiemonkey.co.uk/support/index.php to the htaccess file under RewriteEngine On line
6 posts Page 1 of 1

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 2 guests