Jump to content

fields from unpublished pages


rareyush
 Share

Recommended Posts

I am using module "FormTemplateProcessor" to get data in a pages but they all are unpublished and when I am trying to display them with relevent pages it not working

 

page1
	p1
	p2
	p3
page2 (FormTemplateProcessor)
	up1 (unpublished page and have p1 id on field knows as "ID")
	up2 (unpublished page and have p3 id on field knows as "ID")
	up3 (unpublished page and have p2 id on field knows as "ID")

now here

up1, ip2, up3 can be created by p1, p2 or p3 and I am saving respectively I'm saving their id in field which is being used by up1,up2,up3, etc template.

 

now I want to show the data from unpublished pages which belongs to p1, p2 and p3 respectively

 

 

anyone has experienced this or knows something which can help me out ?

Link to comment
Share on other sites

try this... this is better.... O0

$str="";
foreach($pages->find("parent=/Availability/, include=all,Studio=$page->id")  as $e){
        $str.= "{$e['Studio']},{$e['Date']},";
        foreach($e['ta'] as $selected){
            $str.= "{$selected->title}|";
        }
        $str.= "\n";
    } 
echo $str;

  • Like 2
Link to comment
Share on other sites

11 hours ago, Yachin said:

try this... this is better.... O0

$str="";
foreach($pages->find("parent=/Availability/, include=all,Studio=$page->id")  as $e){
        $str.= "{$e['Studio']},{$e['Date']},";
        foreach($e['ta'] as $selected){
            $str.= "{$selected->title}|";
        }
        $str.= "\n";
    } 
echo $str;

thanks it worked

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...