Page 1 of 1
How do I link an Image to a CMS MS page? [Solved]
Posted: Fri Mar 02, 2007 10:58 am
by Clive
Hi to all, my first post.
How can I link an image to an existing page in the CMS-MS site. I can link any TEXT with the "cms_selflink page=THIS PAGE" but can't get it to work with an image. I can link an image to an external website OK using the URL link.
New installation CMSMS v1.0.2, MySQL v5.0.33, PHP v5.2.1
This program is to used as a college project, Review of CMS's. Tried Mambo and Drupal and spent weeks trying to get something to work Both suck ----- but using CMS-MS got a site together in a day.
Thanks
Re: How do I link an Image to a CMS MS page?
Posted: Fri Mar 02, 2007 11:08 am
by RonnyK
Clive,
on image-properties there is a second tab, where an URL can be set, this can also point to internal pages using:
Ronny
Re: How do I link an Image to a CMS MS page?
Posted: Fri Mar 02, 2007 11:31 am
by Clive
Tried that with:
Protocol = http://
URL = index.php?page=All bets are off
"All bets are off" is a valid page and spelt correctly.
Do I put quotes around the page=Page-To-Point-At I get the hand to tell the image is a link but "The page cannot be displayed" default error message on the returned page.
Re: How do I link an Image to a CMS MS page?
Posted: Fri Mar 02, 2007 11:40 am
by RonnyK
Clive,
it works for me, only my page-alias is never with blanks, on tab "options" under content is the page-alias set. In your case my alias would be "all-bets-are-off". Using this in the calling will work.
Ronny
Re: How do I link an Image to a CMS MS page?
Posted: Fri Mar 02, 2007 11:45 am
by kermit
Clive wrote:
How can I link an image to an existing page in the CMS-MS site. I can link any TEXT with the "cms_selflink page=THIS PAGE" but can't get it to work with an image. I can link an image to an external website OK using the URL link.
link to an internal page using just an image {cms_selflink}:
Code: Select all
{cms_selflink page='testpage' image='/uploads/images/jo-test-200x125.jpg' imageonly='true' alt='Alternate Text'}
where, page='pagealias' (in the 'options' tab of the target page) or page='pageid' (when editing the target page, look at the address bar.. content_id=pageid). pagealias is one word, and may contain auto-inserted dashes (-); pageid is a number.
link to an external site using an image {image} tag and html:
Code: Select all
<a href="http://www.external-link.com/">{image src='jo-test-200x125.jpg' alt='Alternate Text'}</a>
read the tag's 'help' text under extensions->tags for other parameters or limits... (note on paths: both the above display the same image, one tag needs the path info, the other works inside ./uploads/images/ and doesn't need a path)
Re: How do I link an Image to a CMS MS page?
Posted: Fri Mar 02, 2007 11:58 am
by Clive
Sorted thanks..........
RonnyK
I see from the website address bar that the page is titled "..../index.php?page=read more" and when I add index.php?page=read-more all works fine, and with the " - " between the words. The "read more" was the text used for the text link. And also the Protocol is set to "other"
And also thanks to kermit
clive
