News items

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 18, 2008   (RSS)

By Berkowitz - February 18, 2008 - edited: February 18, 2008

Hi,

I have 2 questions.

Number 1:

this is one of my test pages
http://www.1id.be/pages/Hardsoft.php

As you can see when you go to the page you have my menu on the left side and an iFrame on the right of it. When you click one of the menu items my pageviewer loads in my iFrame.

But when you get on the page my iframe is blank. Now my question is, is it possible to always show the first item of my menu in my iFrame.


Second question:

This is another test page.
http://www.1id.be/test.php

Here i'm showing a news item on my page and when you click 'meer info' (translation: more info) you just get a white page, which is normal since my pageviewer is a white page because again it's purpose is to be viewed in my iFrame. So what i want is that my link 'meer info' links like this:

http://www.1id.be/pages/NL/news.php

with my news item loaded in my iFrame.


Thanks in advance
Berkowitz

Re: [Berkowitz] News items

By Dave - February 18, 2008

Hi Berkowitz,

>is it possible to always show the first item of my menu in my iFrame.

Yes, create a list viewer called "firstPage.php" (or whatever you like), have it show all the same fields as the "page viewer" and set the perPage option to 1. Then set that as the src of your iframe.

<iframe src="firstPage.php" ...></iframe>

That's one way to do it, let me know if that works for you.

>Second question:

I don't see an iframe on the test.php page? Are you wanting to open another page with an iframe and load the link in that?

Let me know.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] News items

Yes indeed. on my test.php there is no iFrame. But my link 'meer info' has to link to

http://www.1id.be/pages/NL/news.php

on that page there is an iFrame and the artikel should be shown completly there. On my test.php it's only a summary.

thanks for the help on my first question.
berkowitz