The Sample App
Hello
i have just downloaded the sample APP and wondering if there as any documentation for it
as im not sure how to display the items i have added onto the front end
thanks
Ant
Hello
i have just downloaded the sample APP and wondering if there as any documentation for it
as im not sure how to display the items i have added onto the front end
thanks
Ant
The documentation is the API docs, which start here: https://docs.grabaperch.com/api/
yh i have been looking there but not understanding it
is there no video on how to make / use a app
as i want to create a app to publish staff onto the site and then display the staff in different areas of the site
Hi Anthony,
If I am understanding correctly you can probably do what you want with core Perch functionality without making an app.
The Perch demo site here has a 'Team' section which shows staff members:
https://github.com/PerchCMS/perchdemo-swift
You could then use this data in different parts of the site using
perch_content_custom()
ah ok that sounds good
could you help with showing me example code for displaying the content on another page
i want the staff to display on the staff page but then display 4 staff on the homepage
happy for you to add on skype live:anthony_5917
Thanks
Ant
Your best bet is to look at the docs here, there are a few examples:
https://docs.grabaperch.com/docs/content/perch-content-custom/
You basically specify a page and region to pull the content from, and then a template to display that content.
thanks i will have a look
im having a few small issues
i manage to get this working on one test site but i cant on another
so far i have this
my index.php has
/launches/index.php has this
trying to get this data https://slbs.myboxproject.co.uk/launches/
to display on homepage but using a diffrent template
launch_details looks like this
What problem are you having?
the content does not display
You're sorting by
date
but your field is calledlaunch_date
.ok thanks
also whilst your here
the read more tag it takes you to the page where that item is displayed could it be adjusted to tak you to a page to show just that content
like a blog post when you click read more it would take you to that post rather than a page of posts
How do I create list and detail pages in Perch? https://solutions.grabaperch.com/architecture/how-do-i-create-list-detail-pages
thanks
ive managed to do that however both items link to the same post
https://slbs.myboxproject.co.uk/launches/
think i figured it out
i needed the slug to be the date rather than title
as im importing some old data that does not have a title
but looks like it has to be a title
The slug can be pretty much anything.
i set it as the date field but wont work
Is this a bug or am I doing something wrong?
Thanks
Ant