Problems, need help? Have a tip or advice? Post it here.
10 posts Page 1 of 1
Hello KK sir and couch team.
Hope you all will be fine.
I have made three sub folders in one main folder and i am using bootstrap.Now the issue is i want to direct a link that is link a from sub folder page to main page and it is not working via k_page_link.
example link
mysite.com/channels/hum-t-v/episode/episode.html
this is the page and now i want to redirect my link to the main index page
like this
mysite.com/index.php#channels
i used <a href="<cms:show k_site_link />/index.php#channels">Channels</a>
or
<a href="<cms:show k_site_link />#channels">Channels</a>
but those ways not working but when i used
<a href="../index.php#channels">Channels</a>
it worked for the first subfolder but for other folders with in this subfolder those links not working.
Kindly help me thanks
Do not use slash here:
<a href="<cms:show k_site_link />/index.php#channels">Channels</a>
--
Proper way:
Code: Select all
<a href="<cms:show k_site_link />index.php#channels">Channels</a>
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Sir i have tried it already but still it gives 404 error
below i am giving the live demo of the website
http://dramaserials.org/channels/hum-t- ... ode-1.html
On top nav bar click on miscellaneous and you will get to 404 page as i have already tried your suggestion.
Kindly sir check it out and correct me
Thankyou
Your page shows this:
<a href="../index.php#misc">MISCELLANEOUS</a>


Check your source. k_site_link can't give this url..
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
sir below is m y test source code for misc. Link currently em using on site
Code: Select all
<ul class="nav navbar-nav navbar-right">
   <li><a href="../index.php#myPage">HOME</a></li>
        <li><a href="<cms:link masterpage='index.php#channels'/>">CHANNELS</a></li>
        <li><a href="<cms:show k_site_link />index.php#channels">MISCELLANEOUS</a></li>
        <li><a href="../index.php#luminous">LUMINOUS</a></li>
   <li><a href="../index.php#about">ABOUT US</a></li>
   <li><a href="../index.php#contact">CONTACT</a></li>
      </ul>

In above as you can see i have tried the possible ways.
The miscellaneous link should be point to the desired location instead it sticks and point with in the folder
What are the desired urls for all your links then?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Sorry sir i did not understood can yo explain it in brief?
The problem is I don't understand you either.
If you post here links as you want them to be, then we can figure out the correct code.
For example, 'home', i guess, points to the root of the site. So, you can use
<cms:show k_site_link />.
The rest of the pages should also point somewhere. But only you know where :)
Write here the destination for each link. And also full details of your folder structure, and template definition. Then I can certainly help without guessing.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Try the below code
Code: Select all
<ul class="nav navbar-nav navbar-right">
   <li><a href="<cms:show k_site_link />#myPage">HOME</a></li>
        <li><a href="<cms:link 'index.php' />#channels">CHANNELS</a></li>
        <li><a href="<cms:link 'index.php' />#channels">MISCELLANEOUS</a></li>
        <li><a href="<cms:link 'index.php' />#luminous">LUMINOUS</a></li>
   <li><a href="<cms:link 'index.php' />#about">ABOUT US</a></li>
   <li><a href="<cms:link 'index.php' />#contact">CONTACT</a></li>
      </ul>


I have adapted the snippet you provided.
I have assumed from that snippet that your site is all on on template/file (index.php) and that you use anchor names for links. As you can see I have used <cms:link> to link to the template (index.php) and then appended the various anchor names to the end as per your snippet.

Hope this helps, your question was very difficult to understand.

Dave
Image
Dear trendoman, Bartonsweb Sir,
thanks for both of your support by trying the method of Bartonsweb my issue is resolved,
i admire my question was difficult as i didnt provided thed details properly :oops: but next i will take care to submit issues correctly.
Once again Thanks to all of you :)
10 posts Page 1 of 1