How do I link an Image to a CMS MS page? [Solved]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Clive

How do I link an Image to a CMS MS page? [Solved]

Post 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
Last edited by Clive on Sun Mar 04, 2007 1:59 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How do I link an Image to a CMS MS page?

Post 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:

Code: Select all

index.php?page=PAGE-TO-POINT-AT
Ronny
Clive

Re: How do I link an Image to a CMS MS page?

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How do I link an Image to a CMS MS page?

Post 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
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: How do I link an Image to a CMS MS page?

Post 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)
Last edited by kermit on Fri Mar 02, 2007 12:00 pm, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Clive

Re: How do I link an Image to a CMS MS page?

Post 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 :D
Locked

Return to “Layout and Design (CSS & HTML)”