Forum

Thread tagged as: Question, Problem

perch_page_attribute()

I am currently working on a new site Multi-lingual. I copy the pages of the original language to another folder that is named with the name of the translated language. I can show the editable areas of the home page with the command perch_custom because I can give the name of the original page. The problem is that I can not view the editable areas related to page: perch_page_attribute() display nothing on the page that is translated into the other folder. Is it possible to use a perch_page_attribute_custom order?

Emmanuel Neuhaus

Emmanuel Neuhaus 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you know the ID of the page you want the attributes from, you can use that:

perch_page_attribute('title', [
    '_id' => 123,
]);

Brillant! It's ok now.