Download  |  Search  |  Log in  |  FAQ  |  Memberlist  |  Online  |  TYPO3.org Developer Resource
Home » TypoScript » Other
Post new topic   Reply to topic Page 1 of 1 [3 Posts] getting pages using alias
Author Message
radu



Joined: 27 Feb 2006
Posts: 34

PostPosted: 06 Mar 2006 - 8:58 am    Post subject:  getting pages using alias Reply with quote

i have a field which is supposed to link to a certain page in my page menu using the page's alias...

i've mapped the element, set it as typoscript object, named it sitemap_link and added the following typoscript code

Line:  Code:
1
2
3
4
5
6
7
lib.sitemap_link = TEXT
lib.sitemap_link {
value = SITEMAP
typolink.target = strings (sitemap)
}
 Show complete code


the page's alias is "sitemap".
it just gets the current page(current id). where did i do wrong?
Back to top
View user's profile Send private message
radu



Joined: 27 Feb 2006
Posts: 34

PostPosted: 06 Mar 2006 - 9:05 am    Post subject: Reply with quote

trial and error seems to do wonderful things Very Happy

i had to use

page.typolink.parameter = page_alias

not

page.typolink.target = strings (page_alias)

now it works
Back to top
View user's profile Send private message
moob



Joined: 11 Oct 2005
Posts: 132

PostPosted: 06 Mar 2006 - 9:42 am    Post subject: Reply with quote

hi,

typolink.parameter="some_alias"

strings (some_alias): creates a link to the page with alias = "some_alias"

moob
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Home » TypoScript » Other
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum