Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get url from site tree id #26

Open
Thiyagarajantender opened this issue Apr 5, 2022 · 2 comments
Open

How to get url from site tree id #26

Thiyagarajantender opened this issue Apr 5, 2022 · 2 comments

Comments

@Thiyagarajantender
Copy link

Hi
i am using link filed as many and front end getting value like below.
In this i dont know how to get url from sitetreeid .

<% loop $Buttons %>
<% if $Type == "URL" %>
$Title
<% else_if $Type == "Email" %>
$Email
<% else_if $Type == "Phone" %>
$Phone
<% else_if $Type == "File" %>
$File
<% else %>
pp $Page pp
$getpagebyid($SiteTreeID)
<% end_if %>
<% end_loop %>

@michalkleiner
Copy link
Contributor

Use the has_one returned object through $SiteTree (without the ID).

@elliot-sawyer
Copy link
Owner

@Thiyagarajantender is this still an issue that needs to remain open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants