Jump to content

How to relate page and corresponding "editing" page in admin?


Clarity
 Share

Recommended Posts

Hello,

I have language field on some template. Need to get data from this field via API in order to send it to settings. But if I write, say, 

$page->language

, I get the data only on the page where it is called, but not on "editing" page.

So how to get data from $page to "editing" page?

Link to comment
Share on other sites

Thank you, but not quite. I meant how to get the page data from "editing" page but not reverse.

EDIT: Problem solved, $pages->get($input->get->id)->language performs the trick.

 
 
Edited by Clarity
Problem solved.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...