Forum for discussing general topics related to Couch.
21 posts Page 2 of 3
KK wrote: Last I checked, 'home' was showing 68 errors in the console; most of the were missing resources.
All your relative links are messed up as they now have 'home' in them. This is classical relative link problem after turning on prettyURLs. You need to fix those manually in your templates.


Can you fix it for me please as I have no idea what is going on with it now, I made the index.php file the nested and clonable as could not use the about us page as the nested and clonable and all I did was do that, generated the htaccess file again and put the absolute link <cms:show k_site_link /> for the images so they would show up and the next thing I know the our services layout has gone

sorry buy my head has gone with it and give up with it, I have no idea what has happened or how to fix it
Ian, clearly you are struggling with prettyURLs.
I think it is time for you hire someone for professional help.
KK wrote: Ian, clearly you are struggling with prettyURLs.
I think it is time for you hire someone for professional help.


I don't have any funds available to do that and the client is not paying me until it's done
The issue I am struggling to get my head around is if the client creates a new page, it will have the same layout as the home page, can you quickly log into the cms admin side and check what I have done and tell if it is right or wrong so far. I am sure it is wrong
ianhaney50 wrote: the client is not paying me until it's done

It is a risky approach. However I am not here to discuss that.

See, If I needed full control of the layouts of specific pages in common cases where certain pages are fixed and permanent (about us, contact us, etc), I'd use page name's in condition:
Code: Select all
<cms:if k_nestedpage_name == 'about-us'>
   use layout for about-us
<cms:else_if  k_nestedpage_name == 'contact-us'/>
  use specific HTML for contact-us
<cms:else />
  use generic layout in all other cases, that includes any new pages created by admin
</cms:if>


Maybe it gives you an insight about next steps with your HTML..
trendoman wrote:
ianhaney50 wrote: the client is not paying me until it's done

It is a risky approach. However I am not here to discuss that.

See, If I needed full control of the layouts of specific pages in common cases where certain pages are fixed and permanent (about us, contact us, etc), I'd use page name's in condition:
Code: Select all
<cms:if k_nestedpage_name == 'about-us'>
   use layout for about-us
<cms:else_if  k_nestedpage_name == 'contact-us'/>
  use specific HTML for contact-us
<cms:else />
  use generic layout in all other cases, that includes any new pages created by admin
</cms:if>


Maybe it gives you an insight about next steps with your HTML..


ok so does that go in the index.php file I take it?, only thing I don't understand with it is if the admin creates a new page, it will use the generic layout and not the layout used for the about-us and I will keep having to add coding in the above to use the about-us layout
trendoman wrote:
ianhaney50 wrote: the client is not paying me until it's done

It is a risky approach. However I am not here to discuss that.

See, If I needed full control of the layouts of specific pages in common cases where certain pages are fixed and permanent (about us, contact us, etc), I'd use page name's in condition:
Code: Select all
<cms:if k_nestedpage_name == 'about-us'>
   use layout for about-us
<cms:else_if  k_nestedpage_name == 'contact-us'/>
  use specific HTML for contact-us
<cms:else />
  use generic layout in all other cases, that includes any new pages created by admin
</cms:if>


Maybe it gives you an insight about next steps with your HTML..


Sorry just trying to get my head around that coding and think I am understanding it more

If got it right, I would have the following

Code: Select all
<cms:if k_nestedpage_name == 'home'>
   HTML CODING FOR HOME PAGE
<cms:else_if  k_nestedpage_name == 'contact-us'/>
  HTML CODE FOR CONTACT US PAGE
<cms:else />
HTML FOR ALL OTHER PAGES AND PAGES CREATED BY ADMIN
</cms:if>


Idf that's right, I have added that to the index.php file but the homepage is showing the layout for the other pages and not the home page design layout
I don't know if you have a page named 'home'. From your murky description it seems you are trying to open index.php in the frontend -> if that is the case then change k_nestedpage_name == 'home' to k_is_home. You can always learn what helping variables are present via placing <cms:dump_all />.
trendoman wrote: I don't know if you have a page named 'home'. From your murky description it seems you are trying to open index.php in the frontend -> if that is the case then change k_nestedpage_name == 'home' to k_is_home. You can always learn what helping variables are present via placing <cms:dump_all />.


Cool think getting somewhere now as changed what you said and it's now showing the correct layout on index.php. Just few little issues.

1) How do I change the menu link as it's currently going to https://www.techiemonkey.co.uk/home/ but just want it to be https://www.techiemonkey.co.uk

In menu.html snippet file, I have the following code

Code: Select all
<cms:nested_pages masterpage='index.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>


2) How do I add content to the home page as text is missing, I have the coding below in amongst the layout coding but it's not showing for some reason

Code: Select all
<cms:editable name='welcome_text_content' toolbar='full' type='richtext'>
              The team at Techie Monkey have over 21 years of IT experience and specialise in the refurbishment and repair of second user PC's, laptops and Apple Macs.
<br><br>
Techie Monkey are your first choice for computer sales and repair in both Northern Lincolnshire and Yorkshire.
<br><br>
Please view our website, <a href="/shop/index.php" target="_blank">browse our shop</a>, and if you <a href="<cms:show k_site_link />contact.php">have any questions, please free to ask a member of our team for assistance</a>.
<br><br>
Thank you for visiting our website and looking at our services.
                  </cms:editable>


3) How do I get the page title to show in the <title> </title> tag as it's currently showing the url address?

Hopefully the 3 points makes sense, I apologise if not and for sounding fed up
ianhaney50 wrote: Just few little issues.

Hmm, why do you sound like it is a task for me or someone? Take a week, learn the stuff yourself.

I hinted at a probable solution (and glad it helped) simply because I want @KK to spend time on developing CouchCMS. This forum is not your to-do list and forum members are not working on sundays (which is today) so you could get a website a month or two quicker than it really deserves.
21 posts Page 2 of 3