Forum

Thread tagged as: Question, Configuration

Reuse data entry on other pages

Hi there, excuse me for asking what may be a simple question. I am pretty shaky at PHP and new to Perch.

I am planning to build a new master page that is basically title text and an image, which is simple to do but how can i use content within this page elsewhere.

Basically i have a section on the homepage that i'd like to display an image, link and a title from the latest 4 pages created by the editor. In Drupal i would usually quickly create a View and pull in the content fields.

Thanks for your help!

Rik

Richard Barwick

Richard Barwick 0 points

  • 6 years ago

A bit of digging has unearthed this in the help docs – https://docs.grabaperch.com/docs/content/perch-content-custom/

I think this would do the trick but if there is a walkthrough somewhere that would be useful.

Thanks!

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Thanks Rachel, i'll have a look.

Thanks again Rachel – this looks like it could be it!

I think what i need to do is;

  1. Create a new Master Page Template for the pages the editor will create. For example this will create '/page/1.php, /page/2.php, etc'.
  2. Use Content Custom to display the latest 4 pages created by the editor and pull in the fields from those pages
  3. Use a Content Template to control how these field are displayed and link to those pages.

In theory this should be simple enough

Drew McLellan

Drew McLellan 2638 points
Perch Support

Let us know if you have any problems.

Will do, a friend pointed me to this support link which looks perfect. Trying today.

https://solutions.grabaperch.com/architecture/how-do-i-create-list-detail-pages