[solved] Photo with external link on pages - how does this actually work?

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"
Post Reply
seecyd
Forum Members
Forum Members
Posts: 10
Joined: Thu May 07, 2009 1:57 pm

[solved] Photo with external link on pages - how does this actually work?

Post by seecyd »

I have a photo on a page, that is set up through a template, etc.,

Below is how it is written on my template :

{content_image block="video1box" dir='images' class="video1box"}

So, basically, I want to be able to create an external link so that my client can change the link as well, since we can already change the photo.

Please help!

thanks SD
Last edited by Anonymous on Mon Jul 20, 2009 12:09 am, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Photo with external link on pages - how does this actually work?

Post by jmcgin51 »

I see that 30 people have viewed this with no responses.  Perhaps they're all as confused as I am.  :o

Can you try again to explain exactly what you're doing and what you're hoping to accomplish?

Also your CMSMS version
seecyd
Forum Members
Forum Members
Posts: 10
Joined: Thu May 07, 2009 1:57 pm

Re: Photo with external link on pages - how does this actually work?

Post by seecyd »

$CMS_VERSION = "1.5.4";
$CMS_VERSION_NAME = "Carolina";
$CMS_SCHEMA_VERSION = "31";

Ok. Here goes. On my template, I have a page with photos of horses. On my original site, when anyone clicks on this photo, you get a pop up 500px x 500px with a YouTube video that plays of the horse in competition. (www.ecuriedavidgiffon.fr/ventes.html)

So, here in cms, I have the photo of the horse and the description all down fine! Looks great, works great. My client can now go and change the photo of the horse(s) and description whenever he wants. Now, I know how to put a direct link to the photo putting the code directly into my template. But what I'd rather do is set-up a way for my client to change this within another box, away from the template, say like on the "page" - like an editor could change this as well. I don't want him having to do this on the template section.

So, I noticed that when I go to "Pages" There is a set-up called "External Link" where it can be associated with the parent page, and I can pick a photo (from the list) and set-up a url link to it. Perfect! However, because I don't see anything happening on my preview... as in no link occurring with this particular photo at all. I am confused as to the purpose of the External Link "page" set-up.

Now, 1) if that "external link" page is not for this purpose, what is it for? 2) If it is, what is the code that I put next to what I have below so that this external link works? and 3) Is there a way that I can create a 'tag' so that my client can change the link information?

Ok, I will stop here to see if this is enough to go on for now. Below is the template "line" where the box is created and where the photo is. I don't know where I add the information to create the link.

Video1box is the css name of the box, size etc. where the photo goes. Content_image block is obv. where my client can go on the "page" to change to whatever photo he wants. Now, how can I set up where he can change the link or add a link to any photo - without sending him to the template?

{content_image block="video1box" dir='images' class="video1box"}

Thank you for your time. I have looked everywhere for some information on this "external page" and have not found the answer.
viebig

Re: Photo with external link on pages - how does this actually work?

Post by viebig »

1. The purpose of the external links, is to integrate the Menu Manager with external links to other webpages not generated by CMSMS.

2. I have no clue on what you want to do. Your page have 3 images, why are you using content_image ? Thatś a strange way to use this tag.. but..

Try this

Put this in the top of your template

Code: Select all

{content block='Image Link 1 wysiwyg='false' oneline='true' assign='imagelink1'}
{content block='Image Link 2' wysiwyg='false' oneline='true' assign='imagelink2'}
{content block='Image Link 3' wysiwyg='false' oneline='true' assign='imagelink3'}
Then you can.. for example.. do this:

Code: Select all

<a href="{imagelink1}">{content_image block="video1box" dir='images' class="video1box"}</a>
<a href="{imagelink2}">{content_image block="video2box" dir='images' class="video2box"}</a>
<a href="{imagelink3}">{content_image block="video3box" dir='images' class="video3box"}</a>
Now when you edit that page you'll see 3 new fields, where the user can input the url manually

Good Luck
seecyd
Forum Members
Forum Members
Posts: 10
Joined: Thu May 07, 2009 1:57 pm

Re: Photo with external link on pages - how does this actually work?

Post by seecyd »

OK!! I will try that!!! Thank you for some direction...
seecyd
Forum Members
Forum Members
Posts: 10
Joined: Thu May 07, 2009 1:57 pm

Re: Photo with external link on pages - how does this actually work?

Post by seecyd »

I tried the above code and everything shows up fine. I go to "pages" to input the url into the box that shows up.
I look to see if the link works and it doesn't...


:-\
Last edited by seecyd on Fri May 08, 2009 9:04 am, edited 1 time in total.
seecyd
Forum Members
Forum Members
Posts: 10
Joined: Thu May 07, 2009 1:57 pm

Re: Photo with external link on pages - how does this actually work?

Post by seecyd »

PROBLEM HAS BEEN SOLVED.

Thank you to those who took the time to help me out here. I'm not sure what it was that was said but it made me rethink why I was complicating my life.

So, I created a content blocks to insert the images and there I created the pop up link I wanted. Now my client can change all this stuff without having to worry!

For some reason, I was thinking like a designer and the blocks of images had different functions than that of text...

Voila, merci beaucoup!

Cheers!
seecyd
Forum Members
Forum Members
Posts: 10
Joined: Thu May 07, 2009 1:57 pm

Re: (SOLVED) Photo with external link on pages - how does this actually work?

Post by seecyd »

I don't know how to put (SOLVED) in the title ... but it is SOLVED.
Post Reply

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