Page 1 of 1
Internal links
Posted: Mon Sep 26, 2005 11:40 am
by Dopple
I am trying to set up my nav bar on my template and I'm just wondering how to set up relative links for it? I have tried linking to the different content names like band.php and gallery2.php but this isn't working. Can anyone help me out here. I'm just wondering what the path would be for say a content part called demo.
Re: Internal links
Posted: Mon Sep 26, 2005 11:55 am
by Ted
{cms_selflink page='demo'} will get you to the demo page.
Re: Internal links
Posted: Mon Sep 26, 2005 12:08 pm
by Dopple
Thanks. If I was wanting to use it in relation to a tag like How would I then alter it to work with a button?
Re: Internal links
Posted: Tue Sep 27, 2005 4:34 am
by Ted
I believe {cms_selflink page='demo' text=''} SHOULD work. Though, I didn't test it. Kind of trying to catch up on the forums, as I've been away all day
Please let me know if it doesn't work and I'll pursue it a little further.
Thanks!
Re: Internal links
Posted: Tue Sep 27, 2005 11:32 am
by Dopple
That works a treat. Thank you very much. It's XHTML Strict DTD valid as well.
Re: Internal links
Posted: Thu Apr 27, 2006 9:50 am
by chipus
Hi Ted,
I got the problem. I tried to use the code but it's going wrong. Because what i want to do is to put this code into
a Content Page, not a Template. And
the code seem only work with the Template only.
Code: Select all
<td align="right">
<p>{cms_selflink dir="previous" lang='0' text='<img src="uploads/images/next-button.gif"'}
<br />
{cms_selflink dir="next" lang='0' text='<img src="uploads/images/pre-button.gif"'}</p>
</td>
This is the code that i put into the
Source of a content page. Because i want to have 2 button to go Previous and Next.
The attachment below is what i got when i exist the
Source and preview the page.
After that, i tried to go back to the
Source. And this is what i got:
Code: Select all
<td align="right">
<p>{cms_selflink dir="previous" lang='0' text='<img alt="" src="uploads/images/next-button.gif" /> {cms_selflink dir="next" lang='0' text='<img alt="" p="" src="uploads/images/pre-button.gif" /> </p>
</td>
Could you please help me.
[attachment deleted by admin]
Re: Internal links
Posted: Thu Apr 27, 2006 1:19 pm
by Russ
cms_selflink will work in contents... here is an example
http://www.cms.shoesforindustry.net/testmenu.html
So I'm not sure what you want? Is it just the images and paths? I'm also not clear why you might want to put this in 'contents' rather than a template.
Russ
p.s. looking at he code you could lose the tags? and the table?
Re: Internal links
Posted: Fri Apr 28, 2006 3:03 am
by chipus
hi Russ,
Thx for your reply.
I know that the cms_selflink will work with the content. However, when i try to use the image button, it's not work.
The reason why I want to use the button in the content, rather than in the template, because i don't want to have the next button and the previous button in every page.
Re: Internal links
Posted: Fri Apr 28, 2006 3:59 am
by Dr.CSS
i've made a modification to a copy of the prev./next links code to use an img. on
this page can you find them?
mark
Re: Internal links
Posted: Sun Apr 30, 2006 10:54 pm
by Dr.CSS
chipus
did you get it to work?
mark
Re: Internal links
Posted: Mon May 01, 2006 6:18 am
by chipus
maksbud wrote:
chipus
did you get it to work?
mark
hi Mark,
I think u use the selflink in your template. right?
I can do it too.
What i really want to find out is how to use the button, using the selflink in my content page
Thx for your help, but i still get nothing
