using additional parameters from internal link in template

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
larsemann
New Member
New Member
Posts: 4
Joined: Mon Aug 11, 2008 11:11 am

using additional parameters from internal link in template

Post by larsemann »

hello,

how can i use the additional parameters, when i create an internal link?
and where can i find any description of their right use?
can i use them in my template?

help! it is frustrating…

sorry, for creating a new topic, but searching the board doesn't deliver any solution so far.

thank you
Last edited by larsemann on Mon Aug 11, 2008 11:23 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: using additional parameters from internal link in template

Post by RonnyK »

Do you mean the {cms_selflink}?

Under Extensions -> Tags -> cms_selflink are all parameters shown that this tag takes....

Ronny
larsemann
New Member
New Member
Posts: 4
Joined: Mon Aug 11, 2008 11:11 am

Re: using additional parameters from internal link in template

Post by larsemann »

hello,

i don't think so.

if i create an 'internal page link', there is the input field 'Additional Parameters:'.

is it possible, to use this value in my template? and how?
cms_selflink seems to be not, what i m looking for…

of course, thank u for answering!
larsemann
New Member
New Member
Posts: 4
Joined: Mon Aug 11, 2008 11:11 am

Re: using additional parameters from internal link in template

Post by larsemann »

okay, i have not found a solution yet, but i'm trying to explain my problem.

i've got a multilingual site and i want to use just one photo gallery, which is linked in every menu

beacuse i always want to use the same photo gallery for every language, i linked them in the menus internal and f.e. after clicking 'photos' the album and the english menu are supposed to be displayed.

so, i tried to use the additional parameter to assign the 'start_element' in the template to react in the menu-tag on the start_element, but this won't work, i guess ;)

{if $start_element }
{menu start_element=$start_element show_root_siblings='1'}
{else}
{menu start_level='2'}
{/if}
Last edited by larsemann on Mon Aug 11, 2008 6:32 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: using additional parameters from internal link in template

Post by Dr.CSS »

Still not quite sure what you are trying to do, but if you have 2 lang. and want the english album page to show on other lang. side you can use the Content Type: internal link to make a menu item for the other lang....

What other parameters do you want to add for why?...
larsemann
New Member
New Member
Posts: 4
Joined: Mon Aug 11, 2008 11:11 am

Re: using additional parameters from internal link in template

Post by larsemann »

Hello,

i decided to upload a screen of my content layout-

Image

1. german language
2. english
5. photo album

i link internal to the photo album on 5. with 1.7 'Foto-Galerie' in the german menu and with 2.7  'Photos' in the english menu.

now i want to send a parameter with the link to point out which menulanguage is selected and is supposed to be displayed.

maybe there is a different and easier way.

thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: using additional parameters from internal link in template

Post by Dr.CSS »

Have you tried the MLE of CMSMS?... would be easier to work with...
Post Reply

Return to “Developers Discussion”