# Is it possible to read the content of one or more specific pages and place them on the landingpage

**URL:** <https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992>\
**Category:** Help and Support\
**Created:** [April 20, 2024, 6:20pm UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992 "2024-04-20T18:20:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aarbee](https://forum.phpvms.net/user_avatar/forum.phpvms.net/aarbee/32/204_2.png) [@aarbee](https://forum.phpvms.net/u/aarbee)\
**Post date:** [April 20, 2024, 6:20pm UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992/1 "2024-04-20T18:20:16Z")

</div>

I have created a copy of the default layout, and I ask myself if it is possible to add news and read out a specific page(s) so that I can edit them via the admin module instead of constantly changing the home.blade.php?

&nbsp;

I managed to put the latest news items there via&nbsp;{{ Widget::latestNews([‘count’ =\> 3]) }}  
But I wonder how to read out a page.

&nbsp;

Thanks ahead.

&nbsp;

RobB

---

<div class="post-metadata">

**Author:** ![DisposableHero](https://forum.phpvms.net/user_avatar/forum.phpvms.net/disposablehero/32/1457_2.png) [@DisposableHero](https://forum.phpvms.net/u/DisposableHero)\
**Post date:** [April 20, 2024, 10:29pm UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992/2 "2024-04-20T22:29:18Z")

</div>

Try using html / iframe or with some php (and laravel) knowledge you can read data with curl (or guzzle) and then process it or you can place widgets to that home.blade.php once and then forget it completely.

&nbsp;

It all depends what you need and how you want to do it but most of the time anything is possible.

&nbsp;

Good luck

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![aarbee](https://forum.phpvms.net/user_avatar/forum.phpvms.net/aarbee/32/204_2.png) [@aarbee](https://forum.phpvms.net/u/aarbee)\
**Post date:** [April 20, 2024, 11:11pm UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992/3 "2024-04-20T23:11:28Z")

</div>

Ow. Confused.&nbsp;  
I know html, but an iframe will show evertything including the header and footer, which is not what I want.  
I tried this SQL command, which is showing the body in mysql, but it simply prints the command in my html.

&nbsp;

I tried to understand Laravel and Curl, but it is not giving me what I want. So I tried some php and sql, but that did not work either.

$sql = “SELECT body FROM `pages`\n”  
. “where id="1";”;

&nbsp;

But thanks for trying to point out/help.

&nbsp;

RobB

---

<div class="post-metadata">

**Author:** ![DisposableHero](https://forum.phpvms.net/user_avatar/forum.phpvms.net/disposablehero/32/1457_2.png) [@DisposableHero](https://forum.phpvms.net/u/DisposableHero)\
**Post date:** [April 20, 2024, 11:33pm UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992/4 "2024-04-20T23:33:07Z")

</div>

As I wrote in my first reply, it all depends on what you want to achieve, the method will then become relevant…

&nbsp;

I would **not** recommend running connections and sql queries inside blade files but in the end it is your va and install, it will be up to you

&nbsp;

Good luck.

---

<div class="post-metadata">

**Author:** ![aarbee](https://forum.phpvms.net/user_avatar/forum.phpvms.net/aarbee/32/204_2.png) [@aarbee](https://forum.phpvms.net/u/aarbee)\
**Post date:** [April 21, 2024, 12:50am UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992/5 "2024-04-21T00:50:43Z")

</div>

&nbsp;

what I want is a frontpage, with public access without login and some text, images, lets say info.  
And the content/body should be extracted out of a page that was created in the admin, under pages.  
Only 1 one page, so the info is easy to edit in a html environment, instead of editing the php page with html elelements.  
Not specific for me, but other admins, are not good at html.

I know HTML/CSS.

&nbsp;

RobB

---

<div class="post-metadata">

**Author:** ![DisposableHero](https://forum.phpvms.net/user_avatar/forum.phpvms.net/disposablehero/32/1457_2.png) [@DisposableHero](https://forum.phpvms.net/u/DisposableHero)\
**Post date:** [April 21, 2024, 10:10am UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992/6 "2024-04-21T10:10:18Z")

</div>

> 9 hours ago, aarbee said:
> 
> &nbsp;
> 
> what I want is a frontpage, with public access without login and some text, images, lets say info.  
> And the content/body should be extracted out of a page that was created in the admin, under pages.  
> Only 1 one page, so the info is easy to edit in a html environment, instead of editing the php page with html elelements.  
> Not specific for me, but other admins, are not good at html.
> 
> I know HTML/CSS.
> 
> &nbsp;
> 
> RobB

&nbsp;

So you want a “landing page”, preferably outside of phpvms v7 namespace, something like a wordpress website which you can edit as you wish.&nbsp;It may not be that easy to achieve, because v7 “pages” system is not designed for that purpose. You can still have it by some tricks and injection logic of laravel but I am not sure that it will give you the best results out of the box.

&nbsp;

At minimum, you may need a modified app.blade.php which will be used only for that home.blade.php, and in that home.blade you can load a “page” created at admin side by (or maybe you can load more as per your design needs). And then display it without escaping html special chars, so it can be displayed as designed in a WYSIWYG editor.

&nbsp;

Or you can have a real landing page, with any CMS you like to use (like WP or Joomla etc) and have your phpvms v7 located under a subdomain like many of VA’s around. Imagine [https://phpvms.net](https://yourva.com)&nbsp;(landing site) and [https://demo.phpvms.net](https://crew.yourva.com)&nbsp;(phpvms v7)

&nbsp;

Good luck

---

<div class="post-metadata">

**Author:** ![aarbee](https://forum.phpvms.net/user_avatar/forum.phpvms.net/aarbee/32/204_2.png) [@aarbee](https://forum.phpvms.net/u/aarbee)\
**Post date:** [April 21, 2024, 2:02pm UTC](https://forum.phpvms.net/t/is-it-possible-to-read-the-content-of-one-or-more-specific-pages-and-place-them-on-the-landingpage/13992/7 "2024-04-21T14:02:59Z")

</div>

Understood.  
Just to be clear, I like PHPVMS and gives me what I need. (I checked other tools too, that do the same a year ago, but I decided to continue with v7 after v2 and v5) I just wanted to make the startingpage a bit better and easier to maintain by other staffmembers.  
But I can live with it by maintaining the frontpage myself, as it is not being changed that much.

&nbsp;

Thanks for the advice.
