Editing just the link?

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
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Editing just the link?

Post by Rabel »

I am new to cmsms and I want to set it up so that a javascript img with a rollover can be edited to go to another page on the site. But I just want them to just be able to edit the link. So that they cant mess up the design. I must be missing something on creating links, I appreciate your help.

Thanks,
Randy
JeremyBASS

Re: Editing just the link?

Post by JeremyBASS »

This is not a get area to post a question like this, it's more of a product question.. That being said.. In the admin area under the extensions menu in the tags... That has a few different tags for links.. all which you can use with images... cms_self link is your best bet.. Take a look around or check out the wiki on here about link.. Hope that helps cheers. -Jeremy
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Re: Editing just the link?

Post by Rabel »

Hi Jeremy,
thank you for your reply but I would like to have it so that these links can be changed in each page using the template. So maybe they use a dropdown list or can just enter the page id or something, but selflink appears to have to be built into the template. I have been looking through the documentation but havent figured it out yet. Any one have ideas?

Thanks,
Randy
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Re: Editing just the link?

Post by Rabel »

ok thats fine Dr. I can do the rollover with css but how can I set it so that I can change the link. Sorry I must be missing something.

I have a site where there is multiple projects that will have a project page, then a step through of multiple images that I could use cms_self link with next and prev for, and also a project description page. The description page is what im having trouble creating links for, I cannot set this in the template using cms_self link as far as I know, because it will be a different page number and alias for each description page.

Please let me know what im doing wrong? I appreciate the help.

Thanks.
Randy
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Re: Editing just the link?

Post by Rabel »

Sorry Doc, due to some previous issues that is against our policy now. But I will try to explain a little more. Thanks.
The pages page? basically would look like this

Home
Projects
Project1
-Project1image1
-Project1image2
-Project1image3
-Project1description
Project2
-Project2image1
-Project2image2
-Project2description

So I have a template for the projectimage pages that I can use the next and previous cmsselflink code for and next and previous button, but how can I set the template to go to the projectdescription page if it is not the next page. There could be any number of projects or images so I cant set the page number or name in the template.

So I need to set it so that the projectimage template can change the description image link in the edit content page.
Is the best way around this to just set a content piece where you pick the description image, the rollover and the link to the page. I dont like this way but is this how it should be done.

Thanks again
Randy
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Re: Editing just the link?

Post by Rabel »

Im missing something right Dr.? I think this should be very common coding. Please any ideas are appreciated.
Peciura

Re: Editing just the link?

Post by Peciura »

A page for one picture ? That is to much honor for simple picture :) .

For this page structure i would use Cataloger, where  you can assign pictures to every cataloger item.

If you still want to use content pages why not use extra fields or add custom fields, do some stuff with FancyBox or LightBox and add some tabs or virtual pages ? Add this smarty code below and look want happens when editing page {conten}

Code: Select all

{content_image dir='images' block='image1' assign='foobar' label='Image 2 (Do Not Use Thumb)' urlonly=1}
{if !empty($foobar)}<img src="{$foobar}" alt="{content block='Image 2 Alt' oneline='true'|strip_tags|escape:"htmlall"}" />{/if}
For more info refer to help page of each tag.
Pagination is described here http://forum.cmsmadesimple.org/index.ph ... l#msg76578 or
http://forum.cmsmadesimple.org/index.ph ... 422.0.html
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Re: Editing just the link?

Post by Rabel »

Thanks Peciura,
But we have other things going on those pages then just the image and I found the easiest way was to do it that way so that the client would have the easiest time sticking to the design.

I think maybe Im asking the wrong question though. How would I go about using the menu manager and creating a menu for these projects. Maybe that would work better since im trying to create a template that there could be any number of projects or images so I cant set the page number or name in the template. Thanks again.

Randy
Peciura

Re: Editing just the link?

Post by Peciura »

we have other things going on those pages then just the image
Can you provide link to page ?

Actually you can do a lot with MenuManager but i doubt this solution is scalable enough.
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Re: Editing just the link?

Post by Rabel »

Im sorry Peciura that is against our company policy now. I will try to explain it.
Can you explain how "you" would make a link in a template to a page that doesnt exist yet. 

You would create the description page from its template and then create the Project page from its template, this template (project page) has a link to go to the description page on it.

How would you go about doing this?

Thanks
Randy
Peciura

Re: Editing just the link?

Post by Peciura »

First thing i would do - made 'Project_X_description' the first child of 'ProjectX' page. Because it is always there

Code: Select all

Project_X
-Project_X_description
-Project_X_image1
-Project_X_image2
-Project_X_image3
Then if you need link to 'Project_X_description' from 'Project_X' call MenuManager

Code: Select all

{menu  template='simple_navigation.tpl'  number_of_levels='1' start_element="`$friendly_position`.1"}

Depending on naming rules (if any), you could use parameter 'includeprefix' instead.

But if you need 'Project_X_description' to be the last child - you can append menu level with 'Internal Page Link' to hidden 'Project_X_description' or
use module CGSimpleSmarty

Code: Select all

{$cgsimple->get_children('','','children')}
{foreach from=$children item='temp' name='temp'}{/foreach}
{cms_selflink page=$children[$smarty.foreach.temp.index].id}
Rabel
Forum Members
Forum Members
Posts: 31
Joined: Thu Mar 25, 2010 9:54 pm

Re: Editing just the link?

Post by Rabel »

Thanks Peciura, i am trying to work with the cgsimplesmarty module.
I have to put description at the end because if you use the next buttons you would go through the images and then come to the description.

But guys i dont think it should be this hard, It can be easily done with the content WYSIWYG editor using the "create link to a cmsms-page". Is this something that is going to be added in the future releases. Honestly, I was having a hard time selling cmsms to my co-workers and without this piece I cant recommend it as a viable option on future sites.

Randy
Peciura

Re: Editing just the link?

Post by Peciura »

Well it looks like
when page Project_X is being added Project_X_description does not exists,
when it is finally created, its hierarchy position can fluctuate, also
it seems there are no page naming rules or any other  mean to distinguish page you need. 

I think you are very close to solving puzzle,- "which came first, the chicken or the egg?" :D And it took to write 3 lines  only :)

CMSms contains some very versatile tools but of course you should be aware of them. Major opinion is that if your site is mainly e-shop, blog, forum - you should consider systems  designed for that particular task.
Post Reply

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