| Author |
Message |
radu
Joined: 27 Feb 2006 Posts: 34
|
Posted: 06 Mar 2006 - 8:58 am Post subject:
getting pages using alias
|
|
|
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
|
|
|
radu
Joined: 27 Feb 2006 Posts: 34
|
Posted: 06 Mar 2006 - 9:05 am Post subject:
|
|
|
trial and error seems to do wonderful things
i had to use
page.typolink.parameter = page_alias
not
page.typolink.target = strings (page_alias)
now it works |
|
|
Back to top
|
|
|
moob

Joined: 11 Oct 2005 Posts: 132
|
Posted: 06 Mar 2006 - 9:42 am Post subject:
|
|
|
hi,
typolink.parameter="some_alias"
strings (some_alias): creates a link to the page with alias = "some_alias"
moob |
|
|
Back to top
|
|
|
|